2026-11-11: webshop demo shop's checkout refused by Stripe after the nightly seed reset¶
Kind: reference (incident report)
Severity: warning (alert severity critical; shop-demo is the staging shop, with no customers) · Status: resolved · Resolved by: operator agent (eloro #2808, #2809), with eloro/webshop-platform#696 and Skatzi/platform#1351; deployed by #2814, confirmed after the next reset by #2813 · Duration: 6 h 4 min (first failed check 03:07:58 until both shop pods ran v1.137.10 at 09:12:27; alerts 03:17:01 until 08:58) · Taskbase task: eloro #2808, eloro #2809
Summary¶
After the demo shop's nightly seed-reset at 03:00 on 11-11, every synthetic checkout on webshop got 503 from POST /api/v1/checkout. Stripe refused the Checkout session because its idempotency key checkout:<order-id>:<attempt> repeated a key from the day before, now with other parameters. The reset starts the order ids again. eloro #2783 fixed the key on main (released in v1.137.8), but shop-demo still runs v1.112.0. The fix raises the demo's image to v1.137.10 behind the shop's backup gate, and it was not merged when this run ended.
Impact¶
- Services:
shop-demoonwebshop: Stripe Checkout for every new order, both the synthetic check and any visitor. The storefront pages and Stripe event processing stayed within their SLOs. - Users: none outside the platform. The demo shop is staging; the staging gate's checkout journey would fail on the same error.
- Data: none. Orders are created and then fail at Stripe, and the next nightly reset removes them.
- Duration: from the first failed check at 03:07:58 (alert 03:17:01) until both shop pods ran v1.137.10 at 09:12:27. The checks after the next reset, on 11-12, succeeded.
Timeline¶
All times UTC, 2026-11-11.
| Time | Event | Source |
|---|---|---|
| 02:00 | Daily backup shop-demo-db-daily-20261111020000 completed |
kubectl get backups.postgresql.cnpg.io -n shop-demo |
| 03:00:00 | CronJob seed-reset runs shop seed --reset (Job seed-reset-29906100, done 03:00:05) |
Job status |
| 03:07:58 | First failed check: web-primary logs Try using a key other than 'checkout:11:1'; the worker logs POST /api/v1/checkout: status 503 |
pod logs |
| 03:12:58, 03:17:58, 03:22:58 | Same error for orders 12, 13 and on | pod logs |
| 03:17:01 | Detected: ShopErrorBudgetBurnFast fires (eloro #2808) |
Alertmanager on webshop |
| 03:18 | operator agent confirms that the alert fires and is not silenced, and finds the SLI and the cause |
Alertmanager and Prometheus through the Service proxy |
| 03:23:01 | ShopSyntheticCheckoutFailing fires as well (eloro #2809, opened 03:24) |
Alertmanager |
| 03:23 | eloro/webshop-platform#696 (image v1.137.10) opened, then this pull request (gate target_version, report) |
pull requests |
| 04:13 | eloro/webshop-platform#698 (runbook only) merges; its merge closes eloro #2809 while the alert still fires. Flux rolls shop to revision 183 and restarts the worker (worker-6754b9d84f-722w9), still on v1.112.0 |
Gitea, flux get helmreleases |
| 04:18:38–04:33:38 | The new worker's checks fail the same way (orders 26–28 in the web-primary logs that remain, checkout:<id>:1) |
pod logs |
| 04:33:31 | ShopSyntheticCheckoutFailing fires again for the new worker (fingerprint aa3faaab9faf07e6); eloro #2809 reopens 04:34 |
Alertmanager, Taskbase |
Root cause¶
The demo shop's seed-reset CronJob (0 3 * * *, eloro/webshop-platform deploy/demo/helmrelease.yaml) resets the database, so order ids start again each night. Up to v1.137.7 the shop built Stripe's idempotency key from the order id and attempt alone (checkout:%d:%d, internal/orders/payment.go). Stripe keeps a key for at least 24 hours, and the same key with other parameters is refused: Keys for idempotent requests can only be used with the same parameters they were first used with. The shop turns that into 503 (no payment possible). eloro #2783 (eloro/webshop-platform commit 7579d20) adds the order's creation time to the key, checkout:<order-id>:<created>:<attempt>, and first shipped in v1.137.8.
The fix did not reach the demo. Its image.tag is pinned in Git. The release workflow's demo job, which raises it in a chore(demo) pull request, arrived with eloro #2439 at about 16:02 on 11-10, after the last release (v1.137.10 at 10:37). Renovate's earlier bump (eloro/webshop-platform#568, v1.115.0) was abandoned while the demo had no backup gate.
What the agent did¶
Read-only, against webshop with --context webshop (ops runbook, rules of engagement, rule 8), following the alert's runbook docs/runbooks/shoperrorbudgetburnfast.md in eloro/webshop-platform:
- Alertmanager
api/v2/alerts?filter=alertname="ShopErrorBudgetBurnFast"through the Service proxy returnedstate: activewithcluster=webshop, no silence and no inhibition. - Prometheus, each SLI of the rule: synthetic checkout over 5 minutes
1(all checks failed, workerworker-66c65c6d69-klstl), and the v1.112.0 fallback over 1 hour0.175(above0.144), becauseshop_synthetic_checkout_checks_totaldoes not exist on v1.112.0. Page latency over 5 minutes and 1 hour was0. There were no Stripe event series. kubectl logsof the worker and ofweb-primary: the 503s, and the Stripe idempotency error for orders 11, 12 and 13.kubectl get pods,jobs -n shop-demo: Jobseed-reset-29906100ran 03:00:00–03:00:05. The worker image iswebshop-platform:v1.112.0, running for 10 hours, with no restarts.- Checked eloro #2783, done 11-10, and its commit
7579d20, first in tag v1.137.8. The Harbor manifest of v1.137.10 returned200. - Backup gate, read-only: Kustomization
shop-demo-preupgradeReady, withtarget_version: v1.112.0. ConfigMappreupgrade-demolastSuccess: 2026-11-10T09:01:53Z.drill-demolastSuccess: 2026-11-08T04:01:57Z. Clustershop-demo-dbContinuousArchiving=True. - Migrations 000042–000052 in the range v1.112.0..v1.137.10: expand-only. None has a
DROP, a rewrite or a data change, and the chart has nowebshop.skatzi.com/backup-gateannotation. The demo's gate still asks for a backup before any migration-bearing image, so the bump is paired. - eloro/webshop-platform#696:
image.tagv1.112.0 → v1.137.10, and the demo README's gate section and a live check. - This pull request:
cluster/webshop/shop-demo/kustomization.yamltarget_version→"v1.137.10", so the Jobcnpg-drill/preupgrade-shop-demo-dbbacks up v1.112.0 and restores it before the new image.
The agent made no write to the cluster, and set or expired no silence.
For eloro #2809 (ShopSyntheticCheckoutFailing, the same cause), following docs/runbooks/shopsyntheticcheckoutfailing.md, read-only:
- At 03:51 Alertmanager
api/v2/alerts?filter=alertname="ShopSyntheticCheckoutFailing"through the Service proxy returnedstate: active,cluster=webshop, podworker-66c65c6d69-klstl, with no silence. - Prometheus (
external_labels.cluster: webshop):shop_synthetic_checkout_success{namespace="shop-demo"}was0. - The worker logged
POST /api/v1/checkout: status 503on every check from 03:07:58 to 03:47:58.web-primarylogged the Stripe idempotency error for orders 11 to 19.https://demo.eloro.dk/and the synthetic product page/p/tandboerstningreturned200. - A read-only
SELECTonorders.customer_order: ten synthetic orders (ids 11–20) inpending_payment, one per failed check, and no non-synthetic order since the reset. They hold no stock once their 38-minute reservation lapses, and the next reset removes them. - Opened no second fix. eloro/webshop-platform#698 adds this failure mode to the alert's runbook.
When eloro #2809 reopened, the second run checked the following at 04:35, read-only, with --context webshop:
- Alertmanager
api/v2/alerts?filter=alertname="ShopSyntheticCheckoutFailing"through the Service proxy returnedstate: active,cluster=webshop, podworker-6754b9d84f-722w9, with no silence. kubectl get deploy -n shop-demo:web-primaryandworkerstill runwebshop-platform:v1.112.0.flux get kustomizations -A --status-selector ready=falsereturned nothing. HelmReleaseshop-demo/shopis Ready at0.1.0+cc88ff085b2b. Kustomizationshop-demo-preupgradeis Ready atmain@sha1:dd2d376, so its target is still v1.112.0.- Logs: the worker logged
POST /api/v1/checkout: status 503on each check from 04:18:38 on.web-primaryloggedKeys for idempotent requests can only be used with the same parameters they were first used withforcheckout:26:1,checkout:27:1andcheckout:28:1. This is the same cause. - eloro/webshop-platform#696 has its content approved and is mergeable. It waits for this pull request and for eloro/webshop-platform#699 (Go 1.26.11, eloro #2810), whose
securityjob now passes.
The run made no write to the cluster and opened no new fix. The alert resolves only once #696 is deployed.
Resolution and verification¶
Resolved: v1.137.10 deployed at 09:12:27 on 11-11, and the checks after the 03:00 reset on 11-12 succeeded (see the updates below). The plan as written in the first run: merge this pull request first. Then check that the Job cnpg-drill/preupgrade-shop-demo-db completed, and that kubectl --context webshop -n cnpg-drill get configmap preupgrade-demo shows targetVersion: v1.137.10 with a lastSuccess after the merge. Merge eloro/webshop-platform#696 after that. Done is shown by:
kubectl --context webshop -n shop-demo get deploy worker -o jsonpath='{..image}'ends in:v1.137.10;shop_synthetic_checkout_successreturns to1on the next check;- both alerts resolve, and the check after the next 03:00 reset succeeds.
Update, 09:13. The gate passed: lastSuccess 07:43:43, targetVersion: v1.137.10. #696 merged at 08:08:18, but its upgrade stalled on the chart's seed hook until 08:57 (webshop demo shop's upgrade to v1.137.10 stalled, #2814). By 09:12:27 web-primary and worker ran v1.137.10. At 09:13 shop_synthetic_checkout_success was 1 and neither alert fired. The check after the next 03:00 reset is still to come, so the status is mitigated.
Update, 2026-11-12 03:31 (#2813). Checked read-only on webshop (--context webshop, Prometheus external_labels.cluster: webshop), through the Service proxy. The demo now runs webshop-platform:v1.138.0 (HelmRelease shop-demo/shop revision 211, Ready, deployed 02:24:47 by a later demo release bump), which still carries the key fix of v1.137.8.
- CronJob
seed-resetran Jobseed-reset-2990754003:00:00–03:00:04,succeeded: 1. shop_synthetic_checkout_success{namespace="shop-demo"}from 02:30 to 03:31 was1on every sample of workerworker-7f988777f5-chqhd, except its first minutes 02:26–02:30, before its first check (checks_total0).shop_synthetic_checkout_checks_totalrose by one every 5 minutes, 5 at 02:55 to 12 at 03:30, andshop_synthetic_checkout_failures_totalandshop_synthetic_checkout_consecutive_failuresstayed0. Each other0since 11-11 09:13 is the same first minutes of a new worker pod after a rollout.- After the reset the order ids started again: synthetic orders 10000–10005 were created at 03:04:58, 03:09:58 and on to 03:29:58. The reset starts the ids again, so these repeat the ids of the checks after the reset the day before (Job
seed-reset-2814, 11-11 08:57), within Stripe's 24 hours. Every check that went through Stripe passed. The logs ofweb-primary(both pods) andworkersince 02:55 have no idempotency error, no5xxand no error. - Alertmanager
api/v2/alertsreturned onlyWatchdog(active) and the suppressedInfoInhibitorandCPUThrottlingHigh, allcluster=webshop, and no silence is active. PrometheusALERTSfrom 11-11 03:00 to 11-12 03:35 showsShopErrorBudgetBurnFastandShopErrorBudgetBurnSlowfiring last at 08:10 on 11-11,ShopSyntheticCheckoutFailingat 08:58, and neither pending nor firing since.
The checkout survives the nightly reset, so the incident is resolved.
Follow-ups¶
- eloro/webshop-platform#696: the image bump (eloro #2808).
- eloro #2768: removes the burn alerts' v1.112.0 fallback once
shop-demoruns v1.137.1 or later, which #696 makes possible.
References¶
- Alerts:
ShopErrorBudgetBurnFast,ShopSyntheticCheckoutFailing(runbooks in eloro/webshop-platformdocs/runbooks/) - Taskbase: eloro #2808 and eloro #2809 (incidents), eloro #2783 (key fix), eloro #2779 (where the collision was first seen in the staging gate)
- Pull requests: eloro/webshop-platform#696; the gate: Skatzi/platform#1351
- Related report: 2026-11-09: webshop demo shop's synthetic checkout got 403 from its own gateway
Open questions¶
- Whether the collisions would have stopped on their own during the day. Each order id is reused at about the same time of day as the day before, close to Stripe's 24-hour minimum, so this was not relied on.
- Whether the staging gate's soak, which runs on the merge of #696, stays red while the 6-hour
ShopErrorBudgetBurnSlowwindow still holds this morning's failed checks. If it does, dispatchstaging-gateagain once the alerts have cleared.