Skip to content

fix(docs): remove committed s11-relay spike private keys, regenerate locally - #13614

Merged
dezren39 merged 1 commit into
mainfrom
lane-au19-12150
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-au19-12150

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Removes the committed private-key material from the s11-relay spike (issue #12150):

  • git rm the six tracked private keys (certs/gen/{ca1,ca2,leafA,leafB,leafC}.key, certs/live/leaf.key) and the generation intermediates (*.csr, *.srl).
  • New certs/.gitignore: *.key, *.csr, *.srl are never committed again.
  • New certs/generate-certs.sh: regenerates the whole topology locally with openssl — CA 1 (CN=s11 test CA 1) signs leafA/leafB, CA 2 signs leafC (the wrong-CA/rotation leaf), leafB is installed as live/leaf, EC P-256 keys, leaves CN=localhost with SAN DNS:localhost, IP:127.0.0.1 via the tracked leaf.ext. The public certificates (.pem/.der) stay tracked unchanged, and config/tls-manual.toml / tls-reloading.toml keep pointing at certs/live/leaf.key, which the script installs.
  • New certs/README.md documents the arrangement and the history note.

Verification (laptop worktree, script run end to end): openssl verify passes for leafA/leafB/live against CA 1 and leafC against CA 2, and fails for leafC against CA 1 (the spike's CA-mismatch case); regenerated subjects/issuers/SAN match the originals; live key is byte-identical to the generated leafB key and matches the live cert; git check-ignore confirms keys/intermediates are ignored; git grep "BEGIN PRIVATE KEY" over the tracked spike tree returns nothing.

Scope notes: the keys only ever signed this spike's test chains (no environment trusts CA 1/CA 2; the historical certs are expired). Git history still contains the old keys — a history rewrite/purge is a separate human decision, as the issue states. One other repo-wide BEGIN PRIVATE KEY string hit is a Rust source file under a research directory (dalek source copy), not key material; left untouched.


Get evidence
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…locally

The s11-relay spike tracked six throwaway private keys (two CA keys,
three leaf keys, the live leaf key) plus generation intermediates
(.csr/.srl). Remove them from the tree, cover keys and intermediates
with a certs/.gitignore, and add generate-certs.sh, which recreates
the exact recorded topology locally (CA 1 signs leafA/leafB, CA 2
signs leafC, leafB installed as the live leaf, EC P-256, CN=localhost,
SAN DNS:localhost + IP:127.0.0.1). Public certificates stay tracked;
the configs keep pointing at certs/live/leaf.key, which the script
installs. History is untouched (purge is a separate human decision).

Issue #12150.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 12c8f6d3-5eda-4365-a983-12ced67aa4b1
Commits

Reviewing files that changed from the base of the PR and between 4473da0 and be5222b.

Files ignored due to path filters: 10

  • doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/gen/ca1.key is excluded by !**/gen/**
  • doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/gen/ca1.srl is excluded by !**/gen/**
  • doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/gen/ca2.key is excluded by !**/gen/**
  • doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/gen/ca2.srl is excluded by !**/gen/**
  • doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/gen/leafA.csr is excluded by !**/gen/**
  • doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/gen/leafA.key is excluded by !**/gen/**
  • doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/gen/leafB.csr is excluded by !**/gen/**
  • doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/gen/leafB.key is excluded by !**/gen/**
  • doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/gen/leafC.csr is excluded by !**/gen/**
  • doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/gen/leafC.key is excluded by !**/gen/**
Files selected for processing: 4

  • doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/.gitignore
  • doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/README.md
  • doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/generate-certs.sh
  • doc/2026-10-11T03-44-33Z_design_groups_events_delegation/spikes/s11-relay/certs/live/leaf.key
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit 9b71f74 into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-au19-12150 branch November 23, 2026 18:24
@dezren39 dezren39 added the audit:complete PR fully implemented spawning issue label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant