feat: back up, drill, scrape and alert on keycloak behind keycloak_enabled #601
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!601
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/keycloak-backup-monitoring"
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?
Backup, restore drill, scrape, probe and alerts for Keycloak. Everything is gated on
keycloak_enabled. With it false (prod), all 10 changed templates render identical tomain, checked with a jinja2 stand-in. Kanidm's backup, drill, probe and alerts are untouched.Merge after #571 is applied to staging. The probe targets the realm's well-known URL, which returns 404 until the realm exists.
#572 backup and drill
pg_dumpof thekeycloakdatabase. The weekly verify runspg_restore --list.start --optimized) and waits for/health/ready;bitborg_backup_drill_keycloak_{status,users,groups,clients}.BackupDrillFailed.#573 monitoring
keycloak:9000/metricsby container name on thebitborgnetwork, so nothing is published. Checked on staging:keycloak:9000answers from another container.https://<keycloak_domain>/realms/<realm>/.well-known/openid-configuration.keycloakjoins the core units (active, restarts, container health).bitborg_unit_memory_{current,max}_bytesfor the keycloak unit.KeycloakNotReady: health check failing for 3 minutes, critical.KeycloakMemoryHigh: above 80% ofMemoryMaxfor 10 minutes, warning. That is belowMemoryHigh(87.5%), so it fires before throttling.KeycloakOOMKilled: a Loki rule on the journal OOM line, warning.event-metrics-user-enabledfirst.scripts/check-alert-rules.pyalso checks the rule set withkeycloak_enabledon, so CI parses the gated rules.Checks
promtoolaccept all 56 rules.Not verified
Refs #572
Refs #573