<#5 flyte-deploy-aws: hardened auth/JWT + make the...
# flyte-github
a
#5 flyte-deploy-aws: hardened auth/JWT + make the happy path runnable by a fresh Claude Pull request opened by pingsutw What Refines the
flyte-deploy-aws
skill so a fresh deploy is hands-off — anyone who installs the skill should be able to deploy without their Claude having to stop and debug. Captures issues that required live triage during a real end-to-end deploy, plus a fresh-eyes review pass. Correctness fixes 1. Real ALB JWT validation. The skill described the API-JWT ingress abstractly and called it "no auth action" — but the Flyte binary does not validate tokens (no auth interceptor; trusts forwarded identity). A Bearer-match ingress without validation leaves the API wide open (any
Bearer anything
→ 200). Adds the concrete
alb.ingress.kubernetes.io/jwt-validation
annotation (
jwksEndpoint
+
issuer
), the controller-version requirement (ALB native JWT, Nov 2025+), a callout that the
conditions.*
match alone validates nothing, and the 401-not-200 verification. 2. New gotcha 9 — `missing destination name … in *[]*models.Action`: root cause (image vs DB schema mismatch), diagnosis query, the
DROP SCHEMA
+ re-migrate fix, and a reminder to exercise
ListActions
after deploy (a green install +
/v2
302 don't prove run-listing works). 3. Image selection stays on the chart default
:latest
(CI publishes it on every merge to
main
, so code and migrations stay in sync). Just `pullPolicy: Always`; pin a digest for demos. Gotcha 9 framed as the remaining edge case (older/pinned/rolled-back image vs a DB a newer image migrated). Usability fixes (so a fresh Claude can run it end-to-end) From a fresh-eyes review simulating a Claude that follows only this doc: • Obtain the chart — explicit
git clone flyteorg/flyte && cd flyte
step, since every command hardcodes
./charts/flyte-binary
(incl. the TaskAction CRD). • Persist derived values to an env file sourced each step — the random
DBPW
is unrecoverable and was being lost on shell reset / token re-auth. • Split the 5432-from-node-SG rule into its own step gated on nodes Ready (the parallel-with-Step-1 path left
NODESG
empty and errored) — this is gotcha 2. • Scope the DB to RDS (dropped the undocumented "in-cluster Postgres" decision). • Step 5 values — substitution guidance for the placeholders/region, and
pullPolicy: Always
folded into the example. • Verify — note the ingress name derives from
fullnameOverride
and
flytesnacks
is seeded on first boot (empty ≠ failure). Testing Doc-only change to
SKILL.md
, self-reviewed + an independent fresh-eyes review pass for cross-reference coherence and runnability. Code fences balanced;
$ENVF
defined before use. The auth/schema fixes were validated against a live EKS deploy (fake Bearer → 401; schema-mismatch fix resolved a real
ListActions
failure). flyteorg/skills