refactor(secrets): OBJECT_STORAGE_* -> LINODE_OBJECT_STORAGE_* #269
Loading…
Reference in a new issue
No description provided.
Delete branch "jfraeys/refactor/linode-object-storage-names"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Do not merge until the operator steps below are done: the code reads only the new names. Stacked on #268 (merge that first; until then this PR also shows its commits).
Renames
OBJECT_STORAGE_ACCESS_KEY_ID,_SECRET_ACCESS_KEY,_REGIONtoLINODE_OBJECT_STORAGE_*, matchingOVH_OBJECT_STORAGE_*: the backups role,setup/terraform backend,manage backup, the provisioner defaults, staging workflows,ci-secrets.yml(Forgejo secret names; the vault sideCI_STATE_BACKEND_*is unchanged),gen-auth-secrets.sh, manifest and docs.docs/incidents.mdkeeps the old names (history). New:vault-set.py rename OLD NEW(moves the value, prints names only), with a test.Operator steps (in order, on this branch)
git fetch && git checkout jfraeys/refactor/linode-object-storage-namesfor k in ACCESS_KEY_ID SECRET_ACCESS_KEY REGION; do scripts/secrets/vault-set.py rename OBJECT_STORAGE_$k LINODE_OBJECT_STORAGE_$k; donescripts/secrets/gen-staging-secrets.pygit add secrets/vault.sops.yml secrets/staging.sops.yml && git commit -m "chore(secrets): rename OBJECT_STORAGE_* keys" && git pushCI_STATE_BACKEND_*):./infra secrets syncto see what is missing, then./infra secrets sync --apply --force --vault-key CI_STATE_BACKEND_ACCESS_KEY_ID --vault-key CI_STATE_BACKEND_SECRET_ACCESS_KEY.envif it hasOBJECT_STORAGE_REGION../infra approve. Delete the old Forgejo secretsOBJECT_STORAGE_*afterwards.Until step 7 is done, a checkout of this branch against the old vault (or the reverse) fails with missing keys: that is the reason for merging only after steps 2-5.
Tests:
test-vault-rename.sh(new),test-backups-credentials.sh,test-infra-cli.sh,test-setup-var-file.sh,test-state-snapshot.shpass locally.🤖 Generated with Claude Code
https://claude.ai/code/session_01Ge5tovcwdEUBtPwUktsZZZ
WIP: refactor(secrets): OBJECT_STORAGE_* -> LINODE_OBJECT_STORAGE_*to refactor(secrets): OBJECT_STORAGE_* -> LINODE_OBJECT_STORAGE_*