2026-10-24: Alertmanager down after the taskbase receiver merged, waiting for a missing token¶
Kind: reference (incident report)
Severity: critical · Status: mitigated · Resolved by: operator agent · Duration: ~0:02 from detection to mitigation, 13:16–13:18 UTC (fault from 12:10, ~1 h 8 min) · Taskbase task: #1518
Summary¶
Merging #1338 (PR #672) added the taskbase receiver. Its bearer-token Secret was listed in
alertmanagerSpec.secrets, which makes the mount required. The OpenBao key the Secret is synced from
(#1516, a person's step) did not exist yet. The ExternalSecret could not create the Secret, so the
new Alertmanager pod stayed in Init and no alert reached any receiver for about 1 h 8 min. The
operator found this at the start of the post-merge check #1518. It made the token mount optional,
first live and then in Git, and Alertmanager came back. The taskbase receiver stays down until #1516
is done.
Impact¶
- Services: Alertmanager on hetzner-mgmt: 0/1 replicas from 12:10 to 13:18. Prometheus kept evaluating rules, but no notification went out.
- Users: No
#alertsposts in Mattermost during the window. Nobody reported missing alerts. - Data: none
- Duration: fault 12:10–13:18 UTC (~1 h 8 min). It was detected at 13:16 by the #1518 run, not by an alert, because Alertmanager itself was the component that was down.
Timeline¶
All times UTC.
| Time | Event | Source |
|---|---|---|
| 12:09 | ExternalSecret monitoring/taskbase-alertmanager-webhook fails: key: hetzner-mgmt/taskbase/alertmanager-webhook ... Secret does not exist |
ExternalSecret condition and events |
| 12:10 | Helm upgrade of monitoring-kube-prometheus-stack to v162 (PR #672). The new Alertmanager pod fails MountVolume.SetUp ... secret "taskbase-alertmanager-webhook" not found and stays in Init:0/1 |
helm list, pod events |
| 13:16 | Detected: the operator run for #1518 finds the ExternalSecret SecretSyncedError and the StatefulSet at 0/1 |
kubectl get externalsecret, kubectl describe pod |
| 13:18 | The operator patches the Alertmanager CR so the token is an optional volume, after a server-side dry run | kubectl patch ... --patch-file |
| 13:18 | Mitigated: pod 2/2 Running, StatefulSet 1/1, config loaded with routes null / taskbase (continue) / mattermost |
kubectl get pods, /api/v2/status |
Root cause¶
The prometheus-operator mounts each name in alertmanagerSpec.secrets as a required Secret volume,
with no optional flag. The ExternalSecret for the token was merged before its OpenBao key existed.
1338 depended on #1516, but its pull request merged while #1516 was still open. The missing Secret¶
blocked the pod, and with it the Mattermost receiver too. The credentials_file that the webhook
reads is read on every request, so a required mount was never necessary.
What the agent did¶
The ops runbook triage order: the failing object first, then roll forward.
kubectl -n monitoring get externalsecret taskbase-alertmanager-webhook:SecretSyncedError, "Secret does not exist" (the OpenBao key is missing).kubectl -n monitoring describe pod alertmanager-monitoring-kube-prometheus-alertmanager-0:FailedMount ... secret "taskbase-alertmanager-webhook" not found(x40 over 66 m).kubectl -n tasks-prod get externalsecret tasks-alertmanager-webhook: alsoSecretSyncedError. The Taskbase side has no token either.kubectl -n monitoring patch alertmanager monitoring-kube-prometheus-alertmanager --type=merge --patch-file=... --dry-run=server: accepted.- The same patch without
--dry-run(write, recovery). It setssecretsto the Mattermost Secret only and adds the optional volume and its mount. Exit 0, and the pod was2/2 Running43 s later. - Port-forward to the Alertmanager service and
GET /api/v2/status: the config has thetaskbasereceiver and the three routes. The log shows nomattermostnotify errors.taskbasefails withunable to read authorization credentials ... no such file or directory, which is expected until #1516. - The fix pull request makes the same change in
components/prometheus-stack/helmrelease.yaml, so Git matches the live patch. The HelmRelease has no drift detection, so the live patch holds until the next upgrade, which will be this change. - The synthetic incident test of #1518 was not run, because the
taskbasereceiver has no token. It moved to #1530, which depends_on #1516.
Resolution and verification¶
kubectl -n monitoring get statefulset alertmanager-monitoring-kube-prometheus-alertmanager: 1/1.
The pod is 2/2 Running, and /api/v2/alerts lists Watchdog and two KubeJobFailed alerts. The
status is mitigated, not resolved: the taskbase receiver works only after #1516 and #1530.
Follow-ups¶
-
1516: a person stores the token in OpenBao (open, assigned to dunk).¶
-
1530: rerun the synthetic incident test once #1516 is done.¶
References¶
- Alert: none fired. Alertmanager was the component that was down.
- Taskbase incident task: #1518 (post-merge check of #1338)
- Runs: the #1518 operator run of 2026-10-24
- Pull requests: PR #672 (cause); the fix PR referencing #1518
- Runbook sections: ops runbook
Open questions¶
-
1516's check (
thoughcurlwithBearer wronganswers 401, not 503) already answered 401 at 13:17, even¶tasks-prod/tasks-alertmanager-webhookhad not synced. Either the API rejects a wrong token before it checks whether a token is configured, or the token reaches it another way. That check does not prove the token is live. - Nothing alerts on Alertmanager being down when it is the receiver path itself (a dead-man's switch
on
Watchdogoutside the cluster).