Skip to content

Harden k8s secrets and Terraform networking - #4

Open
KARLalpha4768 wants to merge 1 commit into
mainfrom
fix/infra-hardening
Open

KARLalpha4768 wants to merge 1 commit into
mainfrom
fix/infra-hardening

Conversation

@KARLalpha4768

Copy link
Copy Markdown
Owner

Addresses SEC-05 and related infra findings.

  • k8s: removed the committed Secret with literal placeholders and the credentialed POSTGIS_DSN from the ConfigMap; the secret is provisioned externally (kubectl command documented).
  • Terraform: least-privilege security groups scoped to the VPC CIDR; new variables.tf (vpc_id, private_subnets, db_username, ...).

Verified (outside the Codex sandbox, Python 3.13.12 on Windows): python -m py_compile on every changed .py and node --check on every changed .js on this branch: 0 failures. pytest -q: 25 passed (baseline before changes: 25 passed). Secret scan: no hardcoded demo API key, Cesium-style JWT token, or postgres credentials remain once all five PRs are merged (each branch alone only removes its own items).

Not verified: docker build (Docker not available on the dev PC), terraform validate/plan, runtime/deployment tests. The existing tests do not exercise most changed code. Changes drafted with headless Codex and reviewed by hand.

One of five PRs splitting the HIGH findings from antigravity-findings-v2: fix/secrets-env, fix/api-nlp-lockdown, fix/docker-build, fix/infra-hardening, fix/correctness-high.

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.

1 participant