Skip to content

feat(infra): prod deploy path — TargetGroupBinding, prod deploy leg (#556) - #928

Merged
athvin merged 2 commits into
mainfrom
issue/556-prod-deploy
Nov 8, 2026
Merged

athvin merged 2 commits into
mainfrom
issue/556-prod-deploy

Conversation

@athvin

@athvin athvin commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Closes #556

🚧 Claimed by an agent session — 2026-11-08T22:17:30Z, codex session on Mac.
The claim is this open draft PR: closing it releases the ticket.

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

The prod half of the deploy path: a TargetGroupBinding template (eks.amazonaws.com/v1 — Auto Mode's controller, NOT upstream elbv2.k8s.aws) joining live Service er-web to Terraform's edge_target_group_arn; a committed values-prod.yaml; a deploy-prod job in deploy.yml reusing the blue/green scripts; and the script seams that carries (DEPLOY_ENV=prod discover-not-create provisioning, bootstrap.enabled=false, the ALB NetworkPolicy hole, a PLATFORM_VALUES + TARGET_GROUP_ARN pair both colour phases must carry, and the §3.5 sha256-only refusal).

Why

https://dupezero.com is a valid-cert 503 with nothing behind the ALB; this is the change that puts pods there. Prod provisioning differs from dev by decision (Terraform owns the §9 secrets and, after #930, the /app EFS access point), so the deploy discovers rather than creates. Depends on #930 — the role and access entry must exist before this job runs, which is why the identity is its own PR (the dev precedent).

Proof

python3 scripts/ci/charts-check.py passes with a new (3b) assertion rendering the TargetGroupBinding ON and checking it binds er-web:3000; charts-render-validate.sh and helm-lint.sh green; workflow-shell-check.sh and scripts-home-check.sh green; prod render (-f values-prod.yaml + ARN set) emits a correct TGB; deploy-inactive-colour.sh fed NEW_API=latest exits 1 with the §14.2 refusal. Live acceptance (TGB healthy, apex serves, second-IP login) runs post-merge per the ledger items below.

Risk & rollback

Risk: the first prod deploy fires automatically on this merge (images completes with builds skipped) — watched per the ledger; a failure there is red on main by design and fix-forward. Rollback: git revert; the TGB disappears when edge.targetGroupArn is unset, and dev is untouched (every new seam defaults off).

Post-merge ledger

Closed by: agent · codex session on Athvins-MacBook-Pro · 2026-11-08T23:15:00Z

  • main is green with this change on it — merge SHA b5f2cbab: rust, frontend, devcontainer, infra, images all completed/success
  • images ran on b5f2cba (the diff touches the charts and deploy.yml, both in its push paths) with both build jobs correctly skipped — no rust/frontend change — conclusion success, which is what fired the deploy
  • deploy converged — first the merge's own run 42532531109 went RED on the prod leg (no matches for kind "ExternalSecret": er-prod had no ESO controller, hand-installed on dev since 2026-10-10 and never captured); hand-installed ESO 2.12.0 + the ClusterSecretStore (store validates Ready, Pod Identity working), re-ran via dispatch as 42532909229 — both legs green. Proof from the running system, not the conclusion: target group er-prod-web reports healthy for pod target 10.1.164.6:3000; curl -s https://dupezero.com/api/healthz returns {"ready":true,"upstream":"ok"}; the apex serves HTTP 200
  • the push-only surface — deploy is green after the attributed fix above (the red was this change's own gap: prod lacked what the chart's hooks need; the permanent fix is ci(cluster): apply infra/k8s cluster objects from CI, one code path with make (#927) #931's cluster_objects.sh ESO stanza). drift/kind unchanged by this diff
  • the board card — Prod deploy path #556 closed by this merge; its acceptance evidence is on the issue (comment below) with two items deferred to filed tickets
  • follow-ups — ci(cluster): apply infra/k8s cluster objects from CI, one code path with make (#927) #931 (cluster-objects CI, carries the ESO fix); apex/www TTL raise and the second-IP login probe deferred — tickets filed and linked from the Prod deploy path #556 comment
  • what was learned — two, both written where they bite: (1) the ESO gap, now in scripts/cluster_objects.sh's header and fixed by ci(cluster): apply infra/k8s cluster objects from CI, one code path with make (#927) #931; (2) the cutover re-render hazard (a value set at inactive-phase and omitted at cutover is reverted at cutover) is documented in deploy-cutover.sh's header with the TARGET_GROUP_ARN seam

Specific to this change

Context — plan, discoveries, measurements, files

Plan

Discoveries

Measurements

Files

@athvin athvin mentioned this pull request Nov 8, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prod deploy path

2 participants