refactor: shared Neon (drop ACK-RDS); tb-prod tailnet+branch validation overlay#5
Merged
Merged
Conversation
…on overlay Customer Auth uses a SHARED Neon Postgres DB (source ECS and EKS target), not RDS, so the ACK-RDS machinery was vestigial and the tb-prod overlay's public/RDS shape did not match the running tailnet+branch validation instance. Base: - Remove bases/aws/* (DBInstance/DBSubnetGroup/FieldExport) and the rds-endpoint ConfigMap; the StatefulSet now takes KC_DB_URL_HOST from the overlay (sentinel value) instead of a FieldExport ConfigMap; port defaults to 5432. Overlays: - tb-dev: drop the now-dangling aws/* patches (DB host already overridden to the Neon branch in #4); render is otherwise unchanged. - tb-prod: reshape to the running VALIDATION state -- tailnet-only hostname (keycloak-customer-tb-prod), Neon branch mzla-tb-prod (ep-red-grass, sslmode), 2 replicas / 500m, dedicated SecurityGroupPolicy [eks-cluster-sg, pod SG], and a tailnet Ingress. The public-cutover files (cloudflare-*, tailscale-admin-ingress, pdb minAvailable-2, 3 replicas) are kept but unreferenced until the cutover (#142). Docs: README + base StatefulSet header updated to the shared-Neon reality. Implements #579; part of #139. NOTE: merge only AFTER platform-infrastructure prune:false lands so the tb-dev sync does not auto-delete the idle dev RDS. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
What
Customer Auth uses a shared Neon Postgres DB (source ECS and EKS target), not RDS — so the ACK-RDS machinery was vestigial, and the
overlays/tb-prodpublic/RDS shape did not match the running tailnet + Neon-branch validation instance.Base
bases/aws/*(DBInstance/DBSubnetGroup/FieldExport) + therds-endpointConfigMap. The StatefulSet now takesKC_DB_URL_HOSTfrom the overlay (sentinelvalue:) instead of a FieldExport ConfigMap; port defaults to5432.Overlays
aws/*patches (DB host was already overridden to the Neon branch in feat(tb-dev): repoint Keycloak DB to the Neon branch mzla-tb-dev #4). Rendered output is otherwise unchanged.keycloak-customer-tb-prod), Neon branchmzla-tb-prod(ep-red-grass,?sslmode=require), 2 replicas / 500m, dedicatedSecurityGroupPolicy[sg-08711… eks-cluster-sg, sg-08319… pod SG], tailnetIngress. The public-cutover files (cloudflare-*,tailscale-admin-ingress,pdbminAvailable-2, 3 replicas) are kept but unreferenced until the cutover (#142).Docs: README + base StatefulSet header updated to the shared-Neon reality.
Validated locally:
kubectl kustomize overlays/{tb-dev,tb-prod}→ 11 objects each, no DBInstance/FieldExport/ConfigMap/Tunnel; tb-prod renders the branch DB host + correct SGs + ExternalSecrets →mzla/tb-prod/*.Implements platform-infrastructure#579; part of platform-infrastructure#139.
🤖 Generated with Claude Code