feat(backup-drill): count keycloak realm roles and credentials #652
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra!652
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "ops/keycloak-backup-drill"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Refs #572.
The Keycloak restore drill now also counts realm roles and credentials.
restore-on-scratch.sh.j2countskeycloak_role(realm roles only) andcredential, logs them and emits them as metrics.bitborg_backup_drill_keycloak_realm_rolesandbitborg_backup_drill_keycloak_credentials.Staging check, by hand, because the backup role is prod-only. It used the role's
pg_dump --format=customflags, restored into a scratch DB, then dropped it. Live and restored counts matched: users 15, groups 7, clients 21, realm roles 14, credentials 14. Restore took 2 s.Not yet proven: the scripted drill end to end with image start and
/health/ready. That comes from the first prod weekly drill after cutover.Checked:
scripts/check-metric-names.py,scripts/ruff.sh,scripts/shellcheck.sh,ansible-playbook --syntax-check site.yml, pre-push hooks.