Skip to content

2026-11-09: webshop prometheus-gate certificate not issued, its DNS record not applied

Kind: reference (incident report)

Severity: warning · Status: resolved · Resolved by: the owner's DNS apply (#2750), handed over by the operator agent (#2755); checked by the run of #2748 · Duration: 13 h 51 min 16 s from detection to resolution, 16:50:03–06:41:19 UTC next day (fault from 15:48:17, 14 h 53 min 2 s) · Taskbase task: #2755

Summary

PR #1331 (#2742) added the Certificate gateway-system/prometheus-gate-tls for prometheus.webshop.eloro.dk on webshop, and added that name to the webshop DNS Terraform. The DNS apply is the owner's step and has not run, so the name does not resolve. cert-manager's HTTP-01 self check fails, and CertificateNotReady fired after an hour. The cause is the one already handed to the owner in #2750 (step 3) and reported for #2748 in PR #1334. The operator changed nothing. The owner ran the DNS apply on 2026-11-10 and the certificate was issued at 06:41:19.

Impact

  • Services: Certificate gateway-system/prometheus-gate-tls was not issued, so the Gateway listener prometheus-gate-https on shared-gateway was not Programmed. The other listeners, the demo shop's Certificate shop-demo-tls and both ClusterIssuers are Ready.
  • Users: none. The only consumer of the route is eloro CI's staging gate (eloro #2439), which waits for it anyway. The gate's pod also waits for its token (#2748, #2749).
  • Data: none
  • Duration: fault from 15:48:17 UTC (the Certificate was created), alert firing from 16:49:03, detected at 16:50:03, resolved at 06:41:19 on 2026-11-10 when the certificate became Ready.

Timeline

All times UTC, 2026-11-09 unless the row says 11-10.

Time Event Source
15:45:25 PR #1331 merged: read-only Prometheus query route for eloro CI (#2742), with prometheus.webshop in terraform/environments/hetzner-webshop-cluster/5-dns/variables.tf Git 220ccc39
15:48:17 Certificate prometheus-gate-tls created, Ready=False: Issuing certificate as Secret does not exist Certificate conditions
15:48:21 Challenge prometheus-gate-tls-1-1115112619-794474727 presented; self check fails: lookup prometheus.webshop.eloro.dk on 10.96.0.10:53: no such host Challenge status
16:07:17 The owner's steps for the gate, the DNS apply among them, handed over in #2750 (from #2748) Taskbase
16:49:03 CertificateNotReady firing for gateway-system/prometheus-gate-tls Alertmanager
16:50:03 Detected: Taskbase #2755 opened Taskbase
~16:51 Operator run: alert still active, no silence; the cause traced to the missing DNS record, already in #2750 Alertmanager /api/v2/alerts, the checks below
11-10 The owner runs Terraform Apply - Webshop DNS (run 10838), which creates prometheus.webshop.eloro.dk #2748
11-10 06:41:19 Resolved: Certificate prometheus-gate-tls Ready=True (Certificate is up to date and has not expired), valid until 2027-02-08 Certificate conditions
11-10 ~06:44 Operator run of #2748: no CertificateNotReady alert in Alertmanager, listener prometheus-gate-https Programmed=True, the name resolves to 167.233.187.133 Alertmanager /api/v2/alerts, kubectl, getent

Root cause

cert-manager issues prometheus-gate-tls with HTTP-01 on shared-gateway (cluster/webshop/gateway-system/gateway/certificate.yaml). Before it asks Let's Encrypt to validate, it checks that it can fetch the challenge token itself at http://prometheus.webshop.eloro.dk/.well-known/acme-challenge/<token>. The name has no A record: the 5-dns stage that creates it (hcloud_zone_rrset.shop, from shop_domains) is applied only by the owner, with Terraform Apply - Webshop DNS, and that has not run since #1331 merged. The other eloro.dk names already resolve to the floating IP 167.233.187.133, so the zone and its delegation work; only the new record is missing.

The cluster side is correct: the Gateway answers the token with 200 on the floating IP.

What the agent did

The agent ran only read-only checks. It made no writes to the cluster and set no silence. It followed CertificateNotReady.

  1. kubectl --context webshop -n monitoring port-forward svc/alertmanager-operated 19093:9093, then curl -sG http://localhost:19093/api/v2/alerts --data-urlencode 'filter=alertname="CertificateNotReady"': one alert, gateway-system/prometheus-gate-tls, state: active, no silencedBy or inhibitedBy. /api/v2/silences has no active silence.
  2. kubectl -n gateway-system get certificate,certificaterequest,order,challenge and describe certificate prometheus-gate-tls: Certificate Ready=False (DoesNotExist), CertificateRequest waiting on Order prometheus-gate-tls-1-1115112619 (pending), Challenge pending with dial tcp: lookup prometheus.webshop.eloro.dk on 10.96.0.10:53: no such host. Secret prometheus-gate-tls not found.
  3. kubectl get clusterissuers: letsencrypt-prod and letsencrypt-staging Ready.
  4. getent ahostsv4 prometheus.webshop.eloro.dk: no address (exit 2). getent ahostsv4 demo.eloro.dk: 167.233.187.133.
  5. kubectl -n gateway-system get gateway shared-gateway -o jsonpath='{.status.addresses[*].value}': 167.233.187.133. curl -s -o /dev/null -w '%{http_code}\n' -H 'Host: prometheus.webshop.eloro.dk' http://167.233.187.133/.well-known/acme-challenge/<token>: 200. Listener prometheus-gate-https Programmed=False, every other listener True.
  6. flux get kustomizations -A --status-selector ready=false: only prometheus-gate (Deployment/monitoring/prometheus-gate status: 'Failed', the token cause of #2748). flux get helmreleases -A --status-selector ready=false: none.
  7. Read #2742, its links, and the open tasks of the Platform project: owner tasks #2750 and #2752 already include the DNS apply, and #2754 tracks the duplicate incidents for this one change. The agent did not create another owner task.

Resolution and verification

Resolved by step 3 of #2750: the owner dispatched Terraform Apply - Webshop DNS (run 10838; see terraform/environments/hetzner-webshop-cluster/README.md, Shop DNS). The workflow is dispatched only by the owner; agents never trigger an apply. On 2026-11-10 the run of #2748 checked that:

  • getent hosts prometheus.webshop.eloro.dk gives 167.233.187.133;
  • kubectl --context webshop -n gateway-system get certificate prometheus-gate-tls shows READY True (issued by cert-manager's own retry; no cmctl renew was needed);
  • the listener prometheus-gate-https is Programmed, Alertmanager has no CertificateNotReady alert and no active silence, and https://prometheus.webshop.eloro.dk serves the Let's Encrypt certificate.

Follow-ups

  • 2750 — the owner's Webshop DNS apply (with the token steps); done.

  • 2754 — one change that waits for owner steps raised several incidents; this one is the fourth.

References

  • Alert: CertificateNotReady, runbook
  • Taskbase incident task: #2755; same cause: #2748, #2749, #2751
  • Runs: the operator run of #2755; the check in the run of #2748 on 2026-11-10
  • Pull requests: #1331 (the change), #1334 (the report for #2748)
  • Runbook sections: CertificateNotReady, read-only checks