Skip to content

docs(infra): add infrastructure overview - #6

Merged
gonzafg2 merged 3 commits into
mainfrom
docs/infrastructure-overview
May 11, 2026
Merged

gonzafg2 merged 3 commits into
mainfrom
docs/infrastructure-overview

Conversation

@gonzafg2

Copy link
Copy Markdown
Owner

Summary

Adds docs/infrastructure.md (421 lines): a public overview of the project's supporting infrastructure (DNS, TLS, email, signing, repository hardening, CI scaffolding) with explicit rationale for 11 non-obvious configuration choices. Cross-linked from README.md and docs/operations.md.

Where docs/operations.md describes how to verify the configurations externally, this new document describes what is configured and why. The two are complementary, not duplicative.

Why

The Phase 0 closure produced ~570 lines of internal operational notes (DNS records, decisions, recovery procedures, chronology). The bulk of that is genuinely public-safe — service choices, rationale, externally-observable state — and keeping it in a local-only file contradicted the manifesto's "open source, really" commitment in practice. This PR extracts the public-safe portion into a versioned, auditable document and trims the private file to only what is genuinely personal/machine-specific (continues to live outside the repo, gitignored).

The 11 rationales (DNS host choice, registrar, HSTS preload deferral, DMARC p=none, PGP 2-year expiry, SSH commit signing, CAA whitelist scope, branch protection 0-review, virtual workspace, toolchain pinning, CI guard implementation) were drafted as the maintainer's reconstruction of decisions and approved in the planning phase.

What's in this PR

File Change
docs/infrastructure.md NEW — 421 lines, English, 11 rationale paragraphs, service-topology Mermaid
docs/operations.md +3 lines: one cross-reference paragraph after the lead
README.md +2 lines: one cross-reference under Status block
CHANGELOG.md +6 lines: bullet under [Unreleased] → Changed

Not in this PR:

  • MANIFIESTO.es.md — has a pre-existing authorial edit by the maintainer (Por qué → Porqué + emphasis style); deliberately kept out of this docs-only PR using targeted git add.
  • claudedocs/QUANTUMSSH-OPS.md trim — happened in the same working session but the file is gitignored.

Verification

Performed locally before pushing:

  • Zero leakage: grep -rE 'FIF|FTC|FIFTECH|Falabella|gaflemingg' docs/ README.md CHANGELOG.md SECURITY.md GOVERNANCE.md CONTRIBUTING.md MANIFIESTO.es.md returns empty.
  • Zero personal paths in docs/infrastructure.md: grep -E '/Users/|~/\.gnupg|~/\.ssh|~/\.git-hooks|~/\.gitignore_global|password manager|gonzafg2@gmail\.com' returns empty.
  • MANIFIESTO.es.md not staged: git diff --name-only main...HEAD does NOT list it.
  • All 3 commits signed (SSH Ed25519) and DCO-signed-off.
  • CI workspace-empty guards intact (no Cargo.toml change, no workflow change).

To verify after merge:

  • Required status checks pass: build (ubuntu-latest), build (macos-latest), cargo deny.
  • Mermaid renders on github.com Files changed view.
  • Internal relative links resolve in PR preview.

Risks acknowledged

  • Rationale-publication risk: the 11 rationale paragraphs are the executor's reconstruction; mitigated by maintainer review during the planning phase before this PR was opened.
  • Cross-reference drift: each rationale lives in exactly one location in docs/infrastructure.md; other sections link by anchor, so future rewrites propagate by reference.

Checklist

  • All commits signed (SSH) and DCO sign-off present.
  • Conventional Commits subjects (docs(infra): / docs:).
  • CHANGELOG.md updated under [Unreleased] → Changed.
  • No secrets, no panel URLs, no personal paths in any public file.
  • No cargo/CI changes; required status checks pass via existing guards.

gonzafg2 added 3 commits May 10, 2026 21:05
Introduces `docs/infrastructure.md`, a public overview of the project's
supporting infrastructure (DNS, TLS, email, signing, repository
hardening, CI scaffolding). Where `docs/operations.md` describes how to
verify these configurations externally, this document describes what
is configured and the reasoning behind each non-obvious choice.

Covers eleven decisions explicitly:

  1. DNS host: Cloudflare (free plan; DNSSEC + Email Routing + Redirect
     Rules + Universal SSL anycast)
  2. Registrar: Namecheap (self-service DS submission; wholesale-floor
     renewal pricing)
  3. HSTS: preload directive set, list submission deferred until 60 days
     of observation are complete
  4. DMARC: p=none during the observation window before tightening
  5. Project PGP key: two-year expiry as the balance between rotation
     overhead and compromise blast radius
  6. Commit signing: SSH, not GPG (trust root already public via GitHub's
     ssh_signing_keys API; PGP stays for embargoed disclosure)
  7. CAA whitelist: keep Cloudflare's auto-injected pool to avoid silent
     Universal SSL renewal failures
  8. Branch protection: required signatures + linear history + zero
     required reviews (solo maintainer; count rises with team size)
  9. Workspace with no member crates during Phase 0: locks in structural
     decisions before any crate exists; CI guards self-disable when the
     first crate lands
 10. Toolchain pinning: resolver 3 + edition 2024 + MSRV 1.92
 11. CI workspace-empty guards: Python tomllib, not bash regex

Includes a service-topology Mermaid diagram showing Namecheap →
Cloudflare → GitHub with the external-observer verification path
flowing through `docs/operations.md`.

Sanitised: no personal paths, no panel URLs, no email destinations, no
employer references. The local-only operational notes for the
maintainer's machine continue to live outside the repository.

Signed-off-by: Gonzalo Fleming <[email protected]>
`docs/operations.md` gains a one-paragraph pointer in its lead block
explaining that `docs/infrastructure.md` describes what is configured
and why, complementing this file's "how to verify" recipes. The
existing structure and DNSSEC Mermaid in operations.md are unchanged.

`README.md` gains a one-line pointer just below the Phase 0 status
block, surfacing both `docs/infrastructure.md` and `docs/operations.md`
to readers landing on the project for the first time. The "Open source,
really" commitments and the rest of the README remain untouched.

Signed-off-by: Gonzalo Fleming <[email protected]>
Adds a `[Unreleased]` → `Changed` bullet for the new
`docs/infrastructure.md`, the cross-links from `README.md` and
`docs/operations.md`, and the service-topology Mermaid diagram.

Signed-off-by: Gonzalo Fleming <[email protected]>
Copilot AI review requested due to automatic review settings May 11, 2026 01:06
@gonzafg2
gonzafg2 merged commit 1e90412 into main May 11, 2026
8 checks passed
@gonzafg2
gonzafg2 deleted the docs/infrastructure-overview branch May 11, 2026 01:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a public, versioned infrastructure overview document that explains QuantumSSH’s Phase 0 supporting services/configuration and the rationale behind key operational choices, and cross-links it from existing docs for discoverability.

Changes:

  • Added docs/infrastructure.md describing DNS/TLS/email/signing/repo hardening/CI scaffolding (with Mermaid topology) and rationale for non-obvious choices.
  • Added cross-references to the new infrastructure doc from README.md and docs/operations.md.
  • Updated CHANGELOG.md to note the new documentation.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
README.md Adds a pointer to infrastructure vs. operations verification docs.
docs/operations.md Adds a short cross-reference to the new infrastructure rationale doc.
docs/infrastructure.md New infrastructure/rationale overview (service topology, posture, and rationale).
CHANGELOG.md Records the addition of the new infrastructure overview doc.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/infrastructure.md
Comment on lines +355 to +360
later. MSRV 1.92 is what the project's `rust-toolchain.toml` pins to
stable as of the project's creation; the project has no downstream
consumers to negotiate a lower floor with, and a 1.92 baseline gives
access to all stabilised features the project will need for the
cryptographic implementations of Phase 1+ without conditional
compilation.
Comment thread docs/infrastructure.md
Comment on lines +369 to +377
The three CI workflows (`ci.yml`, `audit.yml`, `deny.yml`) skip their
cargo invocations when the workspace has no members. The skip
predicate is implemented as a four-line Python script that reads
`Cargo.toml` with the standard-library `tomllib` module and counts
`workspace.members`. The alternative — parsing TOML with bash + regex
or installing `jq`/`tomlq` — was rejected because Python 3.11+ is
preinstalled on all GitHub-hosted runners, `tomllib` is stdlib (zero
install step, zero supply-chain surface), and the four-line script
reads almost as plainly as English.
gonzafg2 added a commit that referenced this pull request Nov 3, 2026
…cedure, DNSSEC anchor, five-then-six assets

opencode, sixth review of #250 (of e0088c1):

- ADR-0057's compromise section is now an ordered procedure:
  1. revoke in keys/security.asc on main via an SSH-signed commit, and
     update the manifest, SECURITY.md and the tap pin, with a negative
     test proving a revoked key fails verify-download.sh and the tap CI;
  2. every PGP check then fails after re-import;
  3. classification is exhaustive, by immutable publication record:
     every release not on the advisory's digest list is untrusted, with
     no signature-time denylist;
  4. the successor is authenticated by an SSH-signed commit (independent
     only of a PGP-key compromise) and by a DNSSEC-signed TXT record,
     _release-key.quantumssh.org, behind the separate Cloudflare
     credential;
  5. the fix ships as a new release.
  quantumssh.org is no longer called an independent origin, since it
  redirects to GitHub. The residual risk of an endpoint plus Cloudflare
  compromise is stated. Rotation also updates the TXT record and the tap
  pin.
- ADR-0054 §4: the draft must hold exactly five assets before signing
  and exactly six before publishing, compared for equality.
- ADR-0056 §4: the tap CI imports the whole pin set and runs
  scripts/verify-download.sh, retired-key branch included.
- Suggestions:
  - RFC-0017 gets an ADR-0052 erratum: its bare `gpg --verify` commands
    fail open, and each is to be read as ADR-0054 §7's check;
  - docs/infrastructure.md now records PGP's release-signing role.

Claude-Session: https://claude.ai/code/session_01QpBZ4pLj7mjenN8SXpJehu
Signed-off-by: Gonzalo Fleming <[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.

2 participants