You are browsing a read-only backup copy of Wikitech. The live site can be found at

MariaDB/Changing user passwords

From Wikitech-static
Jump to navigation Jump to search

How to rotate user passwords. Under construction.

wikiuser and wikiadmin

  • clone in cumin
  • Pick a new username and passowrd, usually the year you are doing it. Like wikiuser2023, if that's taken, add the month, like wikiuser202305.
  • Run to get new report of grants.
  • Run to duplicate the user and all the grants (edit it beforehand to set the users)
  • Update the username and password in mediawiki. In deploy1002, /srv/mediawiki-staging/private/PrivateSettings.php
    • Sync it with 'scap sync-file private/PrivateSettings.php 'Rotating wikiuser
  • Make patches to update username in operations/software
  • Make patch in puppet to update the username
  • Merge the puppet change with a patch made in private puppet to update the passwords
  • (not needed for wikiadmin) Update query killer events via running
  • Wait for a while and then run (update the username in the code)
  • update labstestwiki