Page MenuHomePhabricator

wikibugs IRC bot can see private commits in Gerrit?
Closed, ResolvedPublic

Description

wikibugs just reported this in #wikimedia-dev:

[16:10]	<wikibugs> (PS1) Siddparmar: Update numbers [wikimedia/TransparencyReport-private] - https://gerrit.wikimedia.org/r/406780
[16:14]	<wikibugs> (CR) Siddparmar: [V: 2 C: 2] Update numbers [wikimedia/TransparencyReport-private] - https://gerrit.wikimedia.org/r/406780 (owner: Siddparmar)

I can't access https://gerrit.wikimedia.org/r/406780 and https://gerrit.wikimedia.org/r/#/q/project:wikimedia/TransparencyReport-private has no results, so this is probably supposed to really be private.

wikibugs should not be able to see these commit's messages, and must not report them on IRC.

Event Timeline

Legoktm added a subscriber: demon.

I didn't realize Gerrit had actual private repositories. For whatever reason https://gerrit.wikimedia.org/r/#/admin/projects/wikimedia/TransparencyReport-private,access includes https://gerrit.wikimedia.org/r/#/admin/groups/758,members which includes "non-interactive users" (of which suchabot - the account wikibugs uses - is a member).

I would much prefer if this could be handled at the Gerrit ACL level instead of depending upon wikibugs to filter out private info (at which point the private info has already made it into Toolforge)

I didn't realize Gerrit had actual private repositories. For whatever reason https://gerrit.wikimedia.org/r/#/admin/projects/wikimedia/TransparencyReport-private,access includes https://gerrit.wikimedia.org/r/#/admin/groups/758,members which includes "non-interactive users" (of which suchabot - the account wikibugs uses - is a member).

I would much prefer if this could be handled at the Gerrit ACL level instead of depending upon wikibugs to filter out private info (at which point the private info has already made it into Toolforge)

And people wonder why I don't like hosting private repos in Gerrit. But yes, the ACL fix should be pretty straightforward.

I would much prefer if this could be handled at the Gerrit ACL level instead of depending upon wikibugs to filter out private info (at which point the private info has already made it into Toolforge)

Also, this. Wikibugs cannot possibly know what "private" means unless it checks against the ACL which is far beyond its scope. Configuration really is the right fix here.

demon claimed this task.

Fixed by removing "Non-Interactive Users" from the Transparency group. It has no business being there.

Legoktm changed the visibility from "Custom Policy" to "Public (No Login Required)".Feb 28 2018, 4:50 AM

Please note that the user used for pulling the repo to production falls under that category too, and this change just broken the update procedure in production.

Joe triaged this task as Medium priority.Feb 28 2018, 9:03 AM

Well then the should be in the existing transparency group or we create a new group and add it to the ACL. Using "Non Interactive Users" is a mistake as this bug shows.

Added "private-static-site" to the ACL.