Rotate offsite backup GPG keys
To encrypt our offsite backups, we use GPG keys which are valid for a year. For good security practice we rotate these keys each year.
Generate a new key
- Pull the deployment repo.
gpg2 --batch --gen-key gpg_templates/offsite_backup_gpg_template.txt
- Ensure you make a copy of the password you use.
- Get the key ID you just generated with
gpg2 --list-keys --fingerprint, and make a copy of the full fingerprint ID.
- Copy the output of
gpg2 --export-secret-key --armor <key id>
What do I need to update?
The following files need to be updated with the new key details:
Update the govuk-puppet hieradata,
_: &offsite_gpg_key key with the new fingerprint value
Update the encrypted deployment repo hieradata,
the relavant values.