Repository navigation
feat(infra): prod deploy path — TargetGroupBinding, prod deploy leg (#556) - #928
Merged
Merged
Conversation
athvin
force-pushed
the
issue/556-prod-deploy
branch
from
November 8, 2026 22:44
d7fd38e to
7d6841d
Compare
athvin
marked this pull request as ready for review
November 8, 2026 22:53
This was referenced Nov 8, 2026
Merged
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #556
What
The prod half of the deploy path: a
TargetGroupBindingtemplate (eks.amazonaws.com/v1— Auto Mode's controller, NOT upstreamelbv2.k8s.aws) joining live Serviceer-webto Terraform'sedge_target_group_arn; a committedvalues-prod.yaml; adeploy-prodjob indeploy.ymlreusing the blue/green scripts; and the script seams that carries (DEPLOY_ENV=proddiscover-not-create provisioning,bootstrap.enabled=false, the ALB NetworkPolicy hole, aPLATFORM_VALUES+TARGET_GROUP_ARNpair both colour phases must carry, and the §3.5 sha256-only refusal).Why
https://dupezero.comis 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/appEFS 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.pypasses with a new (3b) assertion rendering the TargetGroupBinding ON and checking it bindser-web:3000;charts-render-validate.shandhelm-lint.shgreen;workflow-shell-check.shandscripts-home-check.shgreen; prod render (-f values-prod.yaml+ ARN set) emits a correct TGB;deploy-inactive-colour.shfedNEW_API=latestexits 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
mainby design and fix-forward. Rollback:git revert; the TGB disappears whenedge.targetGroupArnis 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:00Zmainis green with this change on it — merge SHAb5f2cbab: rust, frontend, devcontainer, infra, images all completed/successimagesran 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 deploydeployconverged — 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 grouper-prod-webreports healthy for pod target 10.1.164.6:3000;curl -s https://dupezero.com/api/healthzreturns{"ready":true,"upstream":"ok"}; the apex serves HTTP 200deployis 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/kindunchanged by this diffscripts/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 indeploy-cutover.sh's header with the TARGET_GROUP_ARN seamSpecific to this change
fsap-05ba9d7f29cf2773everified live before this mergedescribe-target-healthoner-prod-web/8dafed16b4f190f6: target 10.1.164.6:3000healthy(2026-11-08 23:00Z)https://dupezero.comserves the app — HTTP 200, 54KB body. §3.5: tag-refusal exercised (deploy-inactive-colour.shfedlatestexits 1); missing/stale-digest block exercised (deploy-resolve-digests.shwith DEPLOY_SHA=db7ccc5e exits 1, "would ship older code"); the resolved-digest deploys case is the green run itselfContext — plan, discoveries, measurements, files
Plan
Discoveries
Measurements
Files