2026-10-20: external-secrets upgrade froze Flux¶
Kind: reference (incident report)
Severity: warning · Status: resolved · Resolved by: a person with Claude Code (before the operator agent existed) · Duration: detection not recorded; fault window ~1 h 35 min, 14:30–16:05 UTC · Taskbase task: #1313 (the upgrade; no incident task, the incident pipeline of ADR 0018 did not exist yet)
Summary¶
Upgrading the external-secrets chart from 0.10.7 to 0.16.2 failed on hetzner-mgmt, and Helm's automatic rollback failed too. The external-secrets HelmRelease flip-flopped, and about 20 Flux Kustomizations that wait on external-secrets-config stopped applying changes; nothing that was running went down. A person with Claude Code repaired the CRDs by hand, rolled forward to 0.16.2, and every Kustomization became Ready again.
Impact¶
- Services: External Secrets Operator stuck between two chart versions. About 20 Kustomizations behind
external-secrets-configfrozen: no change merged to them was applied until the end. - Users: none noticed. Running workloads kept their existing
Secrets. - Data: none lost. The custom resources (66 objects) stayed readable throughout.
- Duration: the detection time is not recorded, so the detection-to-resolution duration is unknown. The fault window was ~1 h 35 min, from the merge at 14:30 to all Kustomizations Ready at 16:05 UTC.
Timeline¶
All times UTC, 2026-10-20.
| Time | Event | Source |
|---|---|---|
| 14:02 | Renovate opens platform#473, external-secrets chart 0.10.7 → 0.20.4 | 35cdb4a |
| 14:06 | An agent cuts platform#473 down to 0.10.7 → 0.16.2, step 1 of 3, because 0.17.0 stops serving v1beta1 |
fb7f69b, task #1313 |
| 14:30 | platform#473 merged by an agent. The Helm upgrade fails; the automatic rollback to 0.10.7 fails too | 2e58537, task #1348 |
| 14:33 | 9 generator CRDs get NamesAccepted=False |
task #1348 |
| 14:40 | platform#479 moves every manifest to external-secrets.io/v1, step 2 of 3 |
2416321, task #1315 |
| after 14:40 | A person with Claude Code suspends the HelmRelease, stops the old cert-controller and sets spec.conversion to None on 14 CRDs |
task #1348 |
The HelmRelease is resumed: 0.16.2 pods come up, but Helm reports failed on the stale NamesAccepted=False |
task #1348 | |
| The stale condition is cleared; a forced reconcile makes the HelmRelease Ready | task #1348 | |
| 16:05 | Resolved: all Kustomizations Ready | task #1348 |
| later | Storage migration: all 66 objects rewritten, storedVersions: ["v1"], ahead of step 3 (0.20.4, task #1316) |
task #1348 |
The times of the individual repair steps are not in the record.
Root cause¶
The chart installs its CRDs from templates/ (installCRDs: true), so Helm upgrades and rolls back the CRDs with the release. Two CRD changes in 0.16.2 met live state that the chart did not expect:
- Conversion webhook removed. The 0.10.7 CRDs convert between versions through a webhook, whose CA the old cert-controller injects into the live CRDs. The 0.16.2 CRDs render no
spec.conversion, and the API server rejected the upgraded CRDs:spec.conversion.strategy: Required value, webhookClientConfig: Forbidden. 0.16 drops the conversion webhook that the cert-controller had injected (task #1348). See CRD conversion-webhook trap. - Rollback blocked by
storedVersions. Part of the upgrade had already been accepted, sov1was instatus.storedVersionsof theclusterexternalsecretsCRD. The 0.10.7 CRDs have nov1, and the API server refuses a CRD that drops a stored version, so the rollback failed. See Failed Helm rollback withstatus.storedVersions.
After the repair a third, smaller problem held the release: 9 generator CRDs kept a NamesAccepted=False condition from 14:33. Flux's health check counts that as failed even when the CRD is Established. See Stale NamesAccepted condition.
Everything with dependsOn on external-secrets or external-secrets-config then waited: the generic Flux freeze.
Why it reached the cluster: an ordinary developer agent merged an upgrade of an operator that brings CRDs, with no check of the live CRDs first. Follow-up #1334 sends these upgrades to the operator class.
What the agent did¶
The operator agent did not exist yet. A person with Claude Code did every step below by hand on hetzner-mgmt. The exact commands of that session are not in the record; where the ops runbook (written afterwards, task #1327) covers a step, the step links to it and that section has the commands.
- Suspended the HelmRelease, so Helm stopped flip-flopping between upgrade and rollback while the CRDs were repaired. The runbook's command:
flux -n external-secrets suspend helmrelease external-secrets. - Scaled the old (0.10.7) cert-controller to 0, so it could not write the conversion webhook back into the CRDs.
- Set
spec.conversiontoNoneon the 14 external-secrets CRDs. Safe here because 0.16'sv1andv1beta1have the same schema. Runbook: conversion-webhook trap, Roll forward, Case B. - Resumed the HelmRelease. The 0.16.2 pods came up, but Helm still reported the release failed on the stale
NamesAccepted=Falseof 9 generator CRDs. - Cleared the stale condition by adding a category to each CRD's
spec.namesand removing it again. Aspec.nameschange makes the API server's naming controller run its name check again, and it wroteNamesAccepted=True. The runbook's StaleNamesAcceptedsection now has this method with its commands (task #1360), next to a requeue annotation and a status patch. - Forced a reconcile of the HelmRelease (the runbook's command:
flux -n external-secrets reconcile helmrelease external-secrets --reset --force): it became Ready, and the waiting Kustomizations followed. Runbook: Generic Flux freeze. - Migrated storage to
v1after the incident: rewrote all 66 external-secrets objects so they are stored asv1, then setstatus.storedVersionsto["v1"]on the CRDs. This lets step 3 (0.20.4, task #1316) dropv1beta1without hitting thestoredVersionscheck. It follows the Kubernetes stored-version procedure; the runbook's roll back section runs the same procedure towards the old version.
Resolution and verification¶
At 16:05 the external-secrets HelmRelease was Ready on 0.16.2 and every Kustomization on hetzner-mgmt was Ready again (task #1348). The runbook's checks for this state are flux get kustomizations -A --status-selector ready=false (empty) and kubectl get externalsecrets -A (lists without conversion errors, READY True).
Follow-ups¶
-
1334: send CRD-bringing operators (external-secrets, cert-manager, CNPG, prometheus-operator, MetalLB, Cilium, Flux) to the
operator-routed Renovate class.¶ -
1327 (done): the ops runbook for CRD operator upgrades and Flux freezes, written from this incident.¶
-
1316: step 3, external-secrets 0.16.2 → 0.20.4.¶
-
1360: add the category method from step 5 to the runbook's stale
NamesAcceptedsection.¶ - Epic #66: the
operatoragent that will work incidents like this one.
References¶
- Alert: none; Flux error events reached Taskbase only as deploy failures, and Alertmanager reached nobody on
hetzner-mgmtat the time (ADR 0018). - Taskbase tasks: #1313 (step 1), #1315 (step 2), #1316 (step 3), #1327 (runbook), #1348 (this report).
- Pull requests: platform#473 (0.16.2), platform#479 (
v1manifests), platform#497 (runbook). - Runbook sections: Triage order, CRD conversion-webhook trap, Failed Helm rollback with
status.storedVersions, StaleNamesAcceptedcondition, Generic Flux freeze.
Open questions¶
- How and when the failure was detected, and the times of steps 1–6, are not in the record.
- The error texts, the 14 and 9 CRD counts, the 66 objects and the 16:05 end time come from the person's session as recorded in task #1348; the commands and their output are not in the record.
- The runbook says the person's repair has no Git record; this report is now the only written account of it.