Loading
feat(get-hybrid): add Secrets Manager (OpenBao) alerts
Why this MR ?
- A Dedicated tenant with Secrets Manager enabled has no alert that fires when OpenBao is down
- The generic Kubernetes alerts either don't fire (scaled to zero) or don't carry
type: secrets-manager, so nothing reaches the Secrets Manager team - Routing these alerts to the Secrets Manager team is a mandatory mitigation for general availability (GA) on Dedicated, due before the first tenant window on 2026-11-24 - https://gitlab.com/gitlab-com/gl-infra/gitlab-dedicated/team/-/work_items/13749#note_4235249534
What does this MR do ?
- Adds 5 OpenBao alerts to the get-hybrid reference architecture, all with
type: secrets-manager - Only
SecretsManagerUnavailablepages (s2). The rest ares3, like the gitlab.com alerts in !11953 - Holds the unseal and leadership alerts quiet for 10 min after a rollout or a first install
- Adds
promtooltests
Alerts
| Alert | Severity | Fires when |
|---|---|---|
SecretsManagerUnavailable |
s2, pages |
No OpenBao node is unsealed for 5 min |
SecretsManagerNoActiveNode |
s3 |
Nodes are unsealed but none is active for 5 min |
SecretsManagerLeadershipLost |
s3 |
The active node lost the high availability (HA) lock and stepped down |
SecretsManagerSealUnreachable |
s3 |
The active node has had no successful seal check for 60 s, for 5 min |
SecretsManagerScrapeMissing |
s3 |
Prometheus has no up{job="openbao"} series for 20 min (10 min on a first install) |
Until the incident.io route in https://gitlab.com/gitlab-com/gl-infra/gitlab-dedicated/team/-/work_items/13749 exists, s2 goes to PagerDuty and s3 goes to Slack.
Follow-ups
- Geo: OpenBao runs standby on a Geo secondary, so
SecretsManagerNoActiveNodefires there until the rules get a per-site option - A pod that unseals and dies again within 5 min fires neither
SecretsManagerUnavailablenorSecretsManagerNoActiveNode - Outside Dedicated, the
openbaoscrape job has to addtype: secrets-manager, orSecretsManagerUnavailablefires - The
promtooltests don't run in CI, same as the rest oftest/mimir-rules/ - Nothing fires on more than one active node. gitlab.com covers it in
SecretsManagerGkeActiveNodeCountNotOne(!11953). Query for here, checked withpromtool- !12006 (comment 4261330683) - No alert for one pod restart-looping while another stays active (gitlab.com:
SecretsManagerGkeContainerRestartLoopin !12004 (merged)). Query for here, butkube_pod_container_status_restarts_totallabels still need checking on a tenant - !12006 (comment 4261330789) SecretsManagerLeadershipLoststays silent on a step-down in a replacement pod's first 10 min, and on a lock loss after an in-place restart when the new step-down count matches the old one- No error-rate or latency SLO yet. That belongs in
services/secrets-manager.jsonnet, next to !11983
References
- Dedicated work item - https://gitlab.com/gitlab-com/gl-infra/gitlab-dedicated/team/-/work_items/13749
- Original alerts and review app tests by @vihangk, thanks Vihang
- Dedicated runbook update - https://gitlab.com/gitlab-com/gl-infra/gitlab-dedicated/team/-/merge_requests/2317
- gitlab.com alerts - !11953
- Which Secrets Manager alerts page - gitlab-org/gitlab#611251
Edited by Jayakrishnan Mallissery