unee-t / bz-database

Scripts and schema for the bz database so we can build the BZ FE
GNU Affero General Public License v3.0
0 stars 2 forks source link

Document how to set BUGZILLA_ADMIN_KEY after restore #108

Closed kaihendry closed 5 years ago

kaihendry commented 5 years ago

After a restore user_api_keys is empty. It needs to be set to aws --profile unee-t ssm get-parameters --names BUGZILLA_ADMIN_KEY --with-decryption --query Parameters[0].Value --output text depending on the environment, e.g.

INSERT INTO `user_api_keys` (`user_id`, `api_key`, `description`, `revoked`, `last_used`)
VALUES ('1', '$SECRET', NULL, '0', NULL);

If this is not done correctly, frontend MEFE will fail obviously.

kaihendry commented 5 years ago

Related to https://github.com/unee-t/bz-database/issues/111