Repository navigation
docs(plans): record the thrust-pg-dev authenticated-TLS results (Q-0094.9) - #96
Merged
Merged
Conversation
…94.9) ApiraTech/infrastructure PR #1008 (the mechanism, switched off) and PR #1009 (the dev canary, merged 2026-11-06 20:42Z) put a Cloudflare Origin CA server certificate on thrust-pg-dev and moved its Workers VPC service to verify_ca. The four questions the round-29 plan left open were measured there, so the pages that said "untested" or "disabled" now say what ran and what did not. What ran on thrust-pg-dev: - spec.certificates did not restart the instance (pod uid, startTime and restartCount identical; one instance, so thrust-pg is measured separately); - the served chain verifies against the vendored Origin CA root, with a throwaway-CA control that was rejected (21, not the expected 20); - Workers VPC accepted the chain over TCP/Postgres under verify_ca: a Hyperdrive config created on the dev service succeeded and was deleted; - the mode discriminates: the same create on a verify_ca service pointed at the private-CA host failed with CERTIFICATE_VERIFY_FAILED, which is direct evidence for the round-27 inference that the private CA caused the 2026-10-18 failure. What this does not say, and the pages keep it in view: thrust-pg (production) is still on the private CA with verification disabled; the smoke Worker has not read ssl = true through the dev Hyperdrive config; verify_ca against the Origin CA root excludes a self-signed or private-CA server but does not prove the peer is Thrust's database. Q-0094.9 and issue #41 stay open and the deadline stands: closed before Thrust holds real data. Edited: - QUESTIONS.md Q-0094.9: "Both are untested" becomes a pointer, and the dev result is appended after the earlier text, the way Q-0040.1 records its "Applied" note. - ADR-0094: a dated update (2026-11-06) after the round-29 update, in the existing bullet style with [tested] tags and a "Not done" paragraph. - research/0010: a new section 13. Sections 1 to 12 are untouched. - docs/src/architecture/infra.md: the Postgres hosting bullet now says which cluster is authenticated and which is not, in the present tense the book uses. - PLAN.md row #41, spikes/README.md and ADR-0040 (the FR-09 line, which said the link was still unauthenticated): a dated pointer each. Left as written, because they record what was true when the decision was made: ADR-0040 lines 127 and 182, Q-0040.1, spike 0002, the round-27 notes, and the point-in-time review files. Checked: PR #1008 and #1009 merge times and commits against GitHub; each result against the merged infra runbook section 10; the as-built issue-origin-cert.sh (key in a 0700 temp dir, secret put as file://, body on stdin); the table rows still have the same cell count as their neighbours; `mdbook build docs` has 0 ^ERROR lines and the new infra.md text is in the built page. Refs: #41 Refs: plane-byd.9 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
aRustyDev
marked this pull request as ready for review
November 6, 2026 22:37
aRustyDev
added a commit
that referenced
this pull request
Nov 7, 2026
…oo (Q-0094.9) (#98) The previous docs pass (#96) said "dev done, production pending". Production was switched on 2026-11-07 and ApiraTech/infrastructure PR #1010 (merged 2026-11-07 04:24Z) set the code defaults to match, so every page that carried the pending wording now says what ran. What ran on thrust-pg, as the infrastructure runbook section 10 records it: - adding spec.certificates restarted nothing: both instances kept uid, startTime and restartCount (0), the primary stayed thrust-pg-1, Cluster generation 1 to 2; - both instances serve the issued certificate and it verifies (return code 0, TLSv1.3, peer certificate present), with the throwaway-CA control rejected (21); - Workers VPC accepted it under verify_ca: a throwaway Hyperdrive config created through the production VPC service succeeded and was deleted; - the VPC change went through `tofu apply` with Admin on the tunnels token, which worked (the provider's known created_at error appeared; a re-plan was clean); - after PR #1010 a plain plan shows No changes in the cloudflare and kube roots. Edited: - QUESTIONS.md Q-0094.9: the 2026-11-06 text keeps its wording with "was not switched yet" and "Open on 2026-11-06"; the production result is appended after it. - ADR-0094: the "Not done" paragraph of the dev update is dated, and a new update of 2026-11-07 follows it in the same bullet style with [tested] tags. - research/0010 section 13: the heading, the "what was built" bullet (PR #1010, the live defaults), a "what ran on thrust-pg" bullet and a narrowed "not verified". - docs/src/architecture/infra.md: the Postgres hosting bullet, in the present tense. - PLAN.md row #41, spikes/README.md and ADR-0040 (the FR-09 line): a dated pointer each. Left as written, because they record what was true when the decision was made: ADR-0040 lines 127 and 182, Q-0040.1, spike 0002, the round-27 notes and the point-in-time review files. What the pages still say, on purpose: verify_ca against the shared Origin CA root excludes a self-signed or private-CA server but does not prove the peer is Thrust's database, and verify_full is a separate decision (infra ADR 0023, still Proposed). Not run: the smoke Worker reading ssl = true through the live Hyperdrive configs, and the private-CA control on production, which cannot fail now that every Service of thrust-pg serves the Origin CA certificate. The Origin CA root expires 2029-08-15. Checked: each result against the merged infrastructure runbook section 10 and the live runs; the table rows have the same cell count as their neighbours; a search of docs and the plan for the old "pending" wording finds none outside dated records; `mdbook build docs` has 0 ^ERROR lines and the new infra.md text is in the built page. Refs: #41 Refs: plane-byd.9 Co-authored-by: Claude Sonnet 5.5 <[email protected]>
aRustyDev
added a commit
that referenced
this pull request
Nov 8, 2026
…s (Q-0094.9) (#100) The previous passes (#96, #98) listed "the smoke Worker reading ssl = true through the live Hyperdrive configs" as not done. It ran on 2026-11-08 and passed on both configs, and the infrastructure runbook now records it (ApiraTech/infrastructure, docs PR for the same run). Run: a throwaway Worker (pg 8.16.3, nodejs_compat, random path, temp tables only, deleted afterwards) queried both live Hyperdrive configs, which were created on 2026-10-18 while the VPC services were disabled. For thrust-pg and for thrust-pg-dev: role thrust, ssl true over TLSv1.3 from pg_stat_ssl, on the primary, commit control 2 rows, the temp table gone after the commit and after a rollback, connect 7 ms, select 1 p50 7 to 8 ms from colo IAD. A wrong path returned 404 and the deletion was verified. What it shows, and the text says so: the existing configs work end to end through the verify_ca services. What it does not show: which certificate was verified, because no SQL exposes the server certificate. That evidence stays the s_client runs and the Hyperdrive creates. Edited: - QUESTIONS.md Q-0094.9: "Not done: the smoke Worker" becomes a "Smoke test 2026-11-08" result; what is left under "Not done" is verify_full (bead infra-4ee1) and the 2029-08-15 root expiry (bead infra-182d). The 2026-11-06 "Open on" sentence keeps its wording as a dated record. - ADR-0094: the production update's "Not run" sentence drops the smoke Worker and points at a new dated addendum after it, which carries the result. - research/0010 section 13: a "smoke test" bullet, and "Not verified" keeps only the private-CA control on production. Left as written: the dated 2026-11-06 and 2026-11-07 records. No docs/src page mentions the smoke test, so the book is unchanged. Checked: the Q-0094.9 row has the same cell count as its neighbours, and a search of docs and the plan finds no remaining "not done", "not verified" or "not run" smoke claim. Refs: #41 Refs: plane-byd.9 Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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
Records the
thrust-pg-devresults of issue #41 (authenticated TLS to CNPG) in the plan and the book. The code is inApiraTech/infrastructure: PR #1008 (the mechanism, switched off, merged 2026-11-06 06:04Z) and PR #1009 (the dev canary, merged 2026-11-06 20:42Z). This PR changes docs only.This does not close #41.
thrust-pg(production) is still on CNPG's private CA with its VPC service atdisabled. The deadline stands: closed before Thrust holds real data. The PR saysRefs #41for that reason.What was measured on
thrust-pg-devspec.certificatesrestart the instance?uid,startTime,restartCountidentical). One instance:thrust-pghas two and is measured separately.21, not the20the plan expected).verify_ca?verify_caservice pointed at the private-CA host failed withCERTIFICATE_VERIFY_FAILED(self signed certificate in certificate chain).The fourth row is direct evidence for the round-27 inference (ADR-0094) that the private CA caused the 2026-10-18 failure; that error text had not named TLS.
Files
QUESTIONS.mdQ-0094.9: the dev result appended after the earlier text, as Q-0040.1 does for its "Applied" note; "Both are untested" becomes a pointer.[tested]tags and a "Not done" paragraph.research/0010: a new section 13; sections 1 to 12 untouched.docs/src/architecture/infra.md: the Postgres hosting bullet says which cluster is authenticated and which is not.PLAN.mdrow chore(infra): authenticated TLS to CNPG through a Cloudflare Origin CA server certificate andverify_ca(infra repo work, tracked here) #41,spikes/README.md, ADR-0040 (the FR-09 line): a dated pointer each.Left as written, because they record what was true at the time: ADR-0040 lines 127 and 182, Q-0040.1, spike 0002, the round-27 notes and the point-in-time review files.
Worth a reviewer's eye
verify_caproves. The Origin CA root is shared by every Cloudflare customer, so the check excludes a self-signed or private-CA server but does not prove the peer is Thrust's database. Every page that says "authenticated" says this too.verify_fullis a separate decision (infra ADR 0023, Proposed).ssl = truethrough the dev Hyperdrive config, and anything on production.Checks
issue-origin-cert.shread to confirm the key stays in a 0700 temp dir and the secret is put asfile://.QUESTIONS.mdandPLAN.mdhave the same cell count as their neighbours.mdbook build docs: 0^ERRORlines, and the newinfra.mdtext is in the built page. Themdbook-mermaidpreprocessor warns about an mdBook version mismatch (built against 0.5.0, run from 0.5.4); the build exits 0.gate.Refs #41
🤖 Generated with Claude Code