Repository navigation
feat(pg): verify database TLS with the RDS CA bundle - #989
Merged
Merged
Conversation
Contributor
terraform plan
|
14 tasks done
athvin
force-pushed
the
issue/553-pg-verify-full
branch
from
November 9, 2026 02:55
b04730d to
b17fe96
Compare
athvin
marked this pull request as ready for review
November 9, 2026 03:01
4 of 6 tasks
This was referenced Nov 9, 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 #988
Adds verified PostgreSQL TLS to the Rust control plane and entity CLI, with a checksum-pinned RDS CA bundle in both runtime images. URI
sslmode=verify-fullnow requires an explicitsslrootcertand verifies certificate trust and hostname. Existing require/prefer/disable connections retain their behavior.The installed postgres.js already handles these DSNs for both the app and migration job; tests pin that behavior. Records the owner's decision to retain production backups for 14 days. Production DSNs and the remaining live acceptance probes stay on #553 until these images deploy.
Validation: local
make checkpassed in full (965 passing tests),make frontendpassed (569 functional tests passed, 139 skipped), andcargo deny checkpassed. A disposable TLS PostgreSQL passed migrations and all five frontend driver tests; both frontend and Rust CLI rejected wrong-hostname connections, and the frontend rejected an untrusted CA. Rust tests cover trust, hostname rejection, malformed configuration, and preservation of Postgres URI encoding.make check-e2epassed in full (403 passing tests) against a disposable local PostgreSQL.The first CI run caught an unmaintained PEM dependency and a telemetry text-scanner false positive on the parser variable name. Both fixes passed locally and are now pushed together, rebased onto current main.
Risk: changing the Rust connection error type and parsing TLS URI options affects every control-plane connection. The production cutover is separate. Rollback: revert this commit before switching DSNs, or revert the cutover first after it ships.
Post-merge ledger
Closed by: agent · session
Codex:01a1be1a-66a7-72f3-8e78-32c20c5e0da9onMac-28.lan· 2026-11-09T14:32:57.417844+00:00Last verified: Codex:01a1be1a-66a7-72f3-8e78-32c20c5e0da9 on Mac.lan at 2026-11-09T06:07:24Z; post-merge watch ran from 05:18Z through 2026-11-09T06:07:24Z.
mainis green with this change on it — verified descendant316935918b8d8816b48f81b726c87f057a283189: Rust 42629666009, frontend 42629665975, infra 42629666008, images 42629665974, devcontainer 42629666015 and deploy 42630440508 all success. Git ancestry confirms this merge is included. The earlier release-download outage has recovered; no old failed run is represented as passing.images— repaired images published in 42566717558, including non-root startup/CA-read assertions. Explicit workflow dispatch after the merge-bus push-event gap already tracked in The merge bus lands a commit with no push event, so images/deploy never run for it #782.deploy— 42567188752 succeeded for both dev and prod after retrying the dev Helm-chart HTTP 504 download failure. The new prod API emitteder-server listeningat 2026-11-09T05:25:58.716270Z; dev emitted it at 05:30:15.345608Z. Prod web-api-green 2/2 and dispatcher 1/1; public site HTTP 200. The original feat(pg): verify database TLS with the RDS CA bundle #989 ADD directory-permission failure is repaired by fix(images): preserve non-root access to the RDS CA bundle #1005.er-server listeningat 05:52:14.945251Z. Scheduled kind 42455973323 remains green. New scheduled drift 42570659369 is knowingly red outside this diff: dev/core provider downloads failed HTTP 504; prod Cloudflare reads lacked auth headers (HTTP 400/code 9106), tracked in Restore Cloudflare authentication in the scheduled Terraform drift workflow #1030. No drift conclusion is claimed from that failed refresh. Existing collector DNS failure predates this change and remains Prod observability install: span-store topology decision + prod shipper values #944..tools/prod-553/operator-steps.mdrecords the exact rejected operation, safe operator continuation, immutable image pins, isolated probe and remote-ADD directory-mode failure. No secret payload is retained.Specific to this change