auth-db backups: cutover to workload identity #27
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/auth!27
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/auth-db-backup-wi-chart"
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?
Second half of the connection-string → workload-identity migration (PR #26 was the tofu side; this is the chart cutover).
Cluster spec changes
serviceAccountTemplate.metadata.annotations.azure.workload.identity/client-id=4d3946f7-3845-4cb4-84f7-f6210dda6f01(UAMI client_id from #26)inheritedMetadata.labels.azure.workload.identity/use: "true"so the azwi mutating webhook projects the SA token volume onto every pod the Cluster owns (primary + standby)backup.barmanObjectStore.azureCredentialsswapped fromconnectionString→inheritFromAzureAD: truetemplates/externalsecret-cnpg-backups.yamldeleted (no longer consumed)Tofu changes
azurerm_key_vault_secret.auth_db_backup_connection_string. Tofu apply destroys the KV entry; Azure soft-delete retains it 30 days as a recovery floor.Migration discipline
Per
docs/migration-policy.md, no parallel auth paths. If WI fails after merge, fix forward — don't restore the connection-string flow. Soft-deleted KV entry is the worst-case fallback for the 30-day window.Verification plan (post-merge)
kubectl exec auth-db-1 -- cat /var/run/secrets/azure/tokens/azure-identity-token | head -c 20returns a JWT prefix (token volume projected)kubectl apply -fa Backup CR; expectphase: completedwithin 60sauth-dbcontainer ofauthdbbackupspjbrsdAlso in this PR
.gitignoreupdated to add.claude/so future commits in this repo don't accidentally embed the local Claude Code worktrees (the first amend on this branch cleaned up two accidental gitlink entries).🤖 Generated with Claude Code
OpenTofu Plan
Click to expand plan output