Description
Details
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T189531 All Wikimedia developer services should use single sign-on | |||
| Resolved | None | T161859 Make Wikitech an SUL wiki | |||
| Resolved | BUG REPORT | Ladsgroup | T376188 OAuth consumers registered locally at Wikitech are no longer configured to be used | ||
| Resolved | BUG REPORT | bd808 | T376190 toolsadmin.wikimedia.org login fails because of missing OAuth grant at Wikitech |
Event Timeline
Created new grant at https://meta.wikimedia.org/wiki/Special:OAuthListConsumers/view/b79c42dc7b90712aaeb8541efb587c88.
Put secrets in mwmaint2002.codfw.wmnet:/home/bd808/striker-sul-oauth-secrets.txt so that @taavi can transfer them to profile::wmcs::striker::docker::instances_secret_env in the private repo.
'The authorization headers in your request are for a user that does not exist here' -- The StrikerBot account on Wikitech needs to be attached to the SUL StrikerBot account I think.
mwclient.errors.APIError: ('permissiondenied', "You don't have permission to check OATH status.", None) happening now because I foolishly thought that would not be a hard error. I could hack the grant in the database, but it is probably a better idea to turn off OATH (TOTP 2FA) checking in Striker.
I hacked the grant in the database, but the API is still claiming that StrikerBot does not have the rights needed. I will try toggling the user right off and on again at Wikitech to see if that shakes loose some cached data somewhere.
Still getting mwclient.errors.APIError: ('permissiondenied', "You don't have permission to check OATH status.", None). I'm going to step away to eat lunch and maybe things will look different when I return either because a cache entry has expired somewhere or because my newly refueled brain will see the problem more clearly.
Still no joy. I think that ripping out the OATH check on the Striker side is probably the best thing to work on next.
Change #1077091 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):
[labs/striker@master] auth: Disable OATH (2FA) checking
Change #1077091 merged by jenkins-bot:
[labs/striker@master] auth: Disable OATH (2FA) checking
Change #1077095 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):
[operations/puppet@production] hieradata: Bump striker-tools to 2024-10-01-204613-production
Change #1077095 merged by Ladsgroup:
[operations/puppet@production] hieradata: Bump striker-tools to 2024-10-01-204613-production
Logins work again. The changes:
- Attached Wikitech StrikerBot account to SUL
- Generated new OAuth grant
- Updated credentials
- Hacked OATH checking out of Striker workflows by hardcoding return False for the OATH enabled check
Change #1077444 had a related patch set uploaded (by Majavah; author: Majavah):
[labs/striker@master] auth: Properly remove OATHAuth support
Change #1077444 merged by jenkins-bot:
[labs/striker@master] auth: Properly remove 2FA support