Page MenuHomePhabricator

Set OATHSecretKey value within Wikimedia production and migrate older 2fa data within oathauth_devices
Closed, ResolvedPublic

Description

With the completion of T145915, we should properly enable this functionality within Wikimedia production:

  • Set OATHSecretKey on the beta cluster.
  • Wait for Jenkins to deploy this.
  • Run UpdateSecretsToEncryptedFormat.php to migrate older oathauth_devices data on the beta cluster.
  • Set OATHSecretKey within PrivateSettings.php within Wikimedia production.
  • Run UpdateSecretsToEncryptedFormat.php to migrate older oathauth_devices data within Wikimedia production.

Details

Other Assignee
sbassett

Event Timeline

sbassett renamed this task from Set OATHSecretKey value in production and migrate older 2fa data within oathauth_devices to Set OATHSecretKey value within Wikimedia production and migrate older 2fa data within oathauth_devices.Sep 11 2025, 2:34 PM

I'm strongly feeling we should get T405235: Create MediaWiki maintenance script to migrate older TOTP devices to modern TOTP + Recovery Codes configuration done before we do this...

It reduces the edge cases that that script has to deal with, and would be more reflective of an upgrade path we would see with someone upgrading to MW 1.45.

That's fine, I can bump out the config meeting by a couple weeks.

Mentioned in SAL (#wikimedia-operations) [2026-03-18T19:49:46Z] <reedy@deploy2002> Synchronized private/PrivateSettings.php: Set $wgOATHSecretKey T404363 (duration: 05m 51s)

Mentioned in SAL (#wikimedia-operations) [2026-03-18T19:50:10Z] <Reedy> running mwscript extensions/OATHAuth/maintenance/UpdateSecretsToEncryptedFormat.php --wiki=metawiki T404363

Mentioned in SAL (#wikimedia-operations) [2026-03-18T19:51:30Z] <Reedy> running foreachwikiindblist private.dblist extensions/OATHAuth/maintenance/UpdateSecretsToEncryptedFormat.php T404363

Mentioned in SAL (#wikimedia-operations) [2026-03-18T19:51:43Z] <Reedy> running foreachwikiindblist fishbowl.dblist extensions/OATHAuth/maintenance/UpdateSecretsToEncryptedFormat.php T404363