Repository navigation
feat(tts-audio): add the Gateway the route points at - #284
Merged
Merged
Conversation
`tts-audio.sredevops.org` returned Cloudflare 1016 because the HTTPRoute named `tts-audio-gateway` and no such Gateway existed: every other manifest was present and healthy, so the deployment looked complete while nothing could reach the receiver. The receiver has never received a webhook. Investigated against the live cluster rather than assumed: - the tunnel routes to `traefik.kube-system.svc.cluster.local:443`, and the Traefik `websecure` entrypoint listens on **8443 in the container**; the Service maps it to 443. The working `sredevops-gateway` declares 8443, so the listener uses 8443. - every working Gateway uses `allowedRoutes: Same` because its routes sit in the same namespace. Ours does not — route in `tts-audio`, Gateway in `kube-system` — so `Same` would leave it unattached. It uses `All`, pinned by the listener hostname. - TLS reuses `security-feed/security-feed-sredevops-tls`, a Cloudflare Origin wildcard for `*.sredevops.org` valid to Sep 2027, copied into the Gateway's namespace by the new `make tls-secret`. The Gateway is rendered outside the kustomization: `namespace: tts-audio` there would rewrite it, and kustomize has no per-resource namespace override. `make test` now asserts the Gateway's namespace, name, 8443 port, `All` routes and hostname — each verified to fail when reverted. All 18 rendered objects pass `kubectl apply --dry-run=client` against the live cluster's own schemas, including the Gateway and the corrected NetworkPolicy.
ngeorger
approved these changes
Nov 27, 2026
ngeorger
approved these changes
Nov 27, 2026
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 the last gap between what the repo ships and what the cluster needs.
The finding
Every object the repo declared was present and healthy in
tts-audio— namespace, SAs, Role/RoleBinding, both ConfigMaps, Deployment (2/2), Service, PDB, HPA, 4 NetworkPolicies, Secret, HTTPRoute. The one thing missing was the Gateway the route points at:So the deployment looked complete while no webhook could ever arrive, and no worker Job has ever been created from one.
The manifest
overlay/gateway.yaml, with each field measured against the live cluster rather than assumed:kube-system(GATEWAY_NAMESPACE)traefik.kube-system.svc.cluster.local:443; every working Gateway sits beside Traefikportwebsecureentrypoint listens on 8443 in the container; the Service maps it to 443. The workingsredevops-gatewaydeclares 8443.allowedRoutesAllSamebecause its routes sit beside it. Ours does not (route intts-audio, Gateway inkube-system), soSamewould silently leave the route unattached — the exact bug being fixed.hostnameTTS_HOSTAllisn't "any namespace may claim any hostname"security-feed/security-feed-sredevops-tls*.sredevops.org, valid to Sep 2027It is rendered outside the kustomization:
namespace: tts-audiothere rewrites it and kustomize has no per-resource namespace override.Also added
make tls-secret— a Gateway can only reference a cert in its own namespace, so this copies the wildcard intoGATEWAY_NAMESPACEasTLS_SECRET(defaulttts-audio-tls). It is a snapshot; re-run on renewal.WITH_GATEWAY=0to skip creating one when the cluster already publishes the receiver through an existing Gateway.make testassertions for the Gateway's namespace, name, 8443 port,Allroutes and hostname. I verified each fails when reverted (Same→ fail,443→ fail).Verification
All 18 rendered objects pass
kubectl apply --dry-run=clientagainst the cluster's own schemas:Server-side dry-run is not possible for me (read-only service account,
forbiddenon create) — the client-side validation is against the same schemas.To finish going live
CORS on
tts-sredevopsorgis still needed (make gcp-bootstrap) for ranged seeking in the browser.