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 SecretsManagerUnavailable pages (s2). The rest are s3, 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 promtool tests
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 SecretsManagerNoActiveNode fires there until the rules get a per-site option
  • A pod that unseals and dies again within 5 min fires neither SecretsManagerUnavailable nor SecretsManagerNoActiveNode
  • Outside Dedicated, the openbao scrape job has to add type: secrets-manager, or SecretsManagerUnavailable fires
  • The promtool tests don't run in CI, same as the rest of test/mimir-rules/
  • Nothing fires on more than one active node. gitlab.com covers it in SecretsManagerGkeActiveNodeCountNotOne (!11953). Query for here, checked with promtool - !12006 (comment 4261330683)
  • No alert for one pod restart-looping while another stays active (gitlab.com: SecretsManagerGkeContainerRestartLoop in !12004 (merged)). Query for here, but kube_pod_container_status_restarts_total labels still need checking on a tenant - !12006 (comment 4261330789)
  • SecretsManagerLeadershipLost stays 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

Edited by Jayakrishnan Mallissery

Merge request reports

Loading
Loading