Skip to content

docs(plans): record the thrust-pg-dev authenticated-TLS results (Q-0094.9) - #96

Merged
aRustyDev merged 1 commit into
mainfrom
docs/thrust-41-dev-results
Nov 6, 2026
Merged

aRustyDev merged 1 commit into
mainfrom
docs/thrust-41-dev-results

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

What

Records the thrust-pg-dev results of issue #41 (authenticated TLS to CNPG) in the plan and the book. The code is in ApiraTech/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 at disabled. The deadline stands: closed before Thrust holds real data. The PR says Refs #41 for that reason.

What was measured on thrust-pg-dev

Question Result
Does spec.certificates restart the instance? No (pod uid, startTime, restartCount identical). One instance: thrust-pg has two and is measured separately.
Does the served chain verify? Yes against the vendored Origin CA root, TLSv1.3. The throwaway-CA control was rejected (21, not the 20 the plan expected).
Does Workers VPC accept the Origin CA chain over TCP/Postgres under verify_ca? Yes: a Hyperdrive config created on the dev VPC service succeeded and was deleted.
Does the mode discriminate? Yes: the same create on a verify_ca service pointed at the private-CA host failed with CERTIFICATE_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

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

  • What verify_ca proves. 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_full is a separate decision (infra ADR 0023, Proposed).
  • Not run yet: the smoke Worker reading ssl = true through the dev Hyperdrive config, and anything on production.
  • Rotation deadline: the vendored Origin CA root expires 2029-08-15, which is earlier than the 15-year leaf.

Checks

  • PR #1008 and #1009 merge times and commits read from GitHub; each result compared with the merged infra runbook section 10; the as-built issue-origin-cert.sh read to confirm the key stays in a 0700 temp dir and the secret is put as file://.
  • Table rows in QUESTIONS.md and PLAN.md have the same cell count as their neighbours.
  • mdbook build docs: 0 ^ERROR lines, and the new infra.md text is in the built page. The mdbook-mermaid preprocessor warns about an mdBook version mismatch (built against 0.5.0, run from 0.5.4); the build exits 0.
  • A docs-only change skips the Rust jobs and reports the one required check, gate.

Refs #41

🤖 Generated with Claude Code

…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
aRustyDev marked this pull request as ready for review November 6, 2026 22:37
@aRustyDev
aRustyDev merged commit 41e87b1 into main Nov 6, 2026
13 checks passed
@aRustyDev
aRustyDev deleted the docs/thrust-41-dev-results branch 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]>
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.

chore(infra): authenticated TLS to CNPG through a Cloudflare Origin CA server certificate and verify_ca (infra repo work, tracked here)

1 participant