Page MenuHomePhabricator

Wikibugs should not accidentally ping SREs by sending text "# page"
Closed, ResolvedPublicFeature

Description

don't let people make mistakes like T281055#7032879

Event Timeline

I'm not entirely convinced this should be solved by Wikibugs -- isn't this better solved at the client side by ignoring bots when it comes to alerts?

Assuming it should be solved by Wikibugs: how should the text '# page' be handled? Should there be a form of 'bad word replacements' where '# page' is replaced by some specified value? (And if so, should that be applied on all channels? That is probably the best effort/value tradeoff when implemented by Wikibugs).
This should probably also apply to gerrit messages, but that would be automatically solved if this is implemented in the IRC layer. (should probably make sure this doesn't break messaging to any channels that start with 'page')

Legoktm triaged this task as Lowest priority.Apr 26 2021, 4:23 PM
Legoktm subscribed.

I'm not entirely convinced this should be solved by Wikibugs -- isn't this better solved at the client side by ignoring bots when it comes to alerts?

Yes...but effort ;)

I think a late message.replace('hashpage', '#_page') would be good enough. Would be nice but I'd treat it as lowest priority. I also haven't ever seen anyone use !_admin or !_ops in Phab before.

Change 697161 had a related patch set uploaded (by Legoktm; author: Legoktm):

[labs/tools/wikibugs2@master] Upgrade irc3 dependency, connect over TLS, auth over SASL

https://gerrit.wikimedia.org/r/697161

Change 697161 merged by jenkins-bot:

[labs/tools/wikibugs2@master] Upgrade irc3 dependency, connect over TLS, auth over SASL

https://gerrit.wikimedia.org/r/697161

Sorry, used the wrong phab bug in that patch, ignore.

bd808 changed the subtype of this task from "Task" to "Feature Request".Feb 17 2024, 1:56 AM
bd808 raised the priority of this task from Lowest to Low.Mar 10 2024, 4:03 AM
bd808 moved this task from Backlog to Ready to Go on the Wikibugs board.
bd808 subscribed.

Rather than overthink this, how about just adding .replace("#page", "# page") to the existing transforms in IRCMessageBuilder.escape() and making sure both Phorge and Gerrit title and comment text gets passed through that function? Seems like that would catch all of the most likely causes.

bd808 changed the task status from Open to In Progress.Mar 11 2024, 11:17 PM
bd808 claimed this task.
bd808 moved this task from Ready to Go to Doing on the Wikibugs board.