Repository navigation
Observatory: internal PQC-readiness probe worker (ADR 0007) - #32
Merged
Merged
Conversation
Adds packages/observatory (private, unpublished): a monthly worker that probes a fixed panel of public hosts for PQC-hybrid key exchange (X25519MLKEM768) and certificate posture, writing idempotent per-month results and a rollup to Postgres for the site's public /observatory page. Reuses qProbe's un-gated TLS primitives (probeHybridSupport, extractNegotiated) by internal source import. It deliberately does NOT use runProbe, which is ownership-gated (authorizeTargets) and would refuse hosts we do not own. The restrained policy is enforced in code: sequential probing, a min interval between hosts, a hard per-connection timeout, no retries, read-only handshakes, and opt-out honored before any connection. See docs/adr/0007. The published packages are untouched: qprobe unchanged, zero-runtime-dependency and offline-boundary invariants still hold. pg is a devDependency of the observatory package only.
leonacostaok
enabled auto-merge
July 25, 2026 02:38
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.
Adds
packages/observatory(private, unpublished) — the monthly probe worker behind the site's public/observatorypage.What it does
Probes a fixed panel of public hosts (
hosts.txt, ~67 domains) once a month for PQC-hybrid key exchange (X25519MLKEM768) and certificate posture, writing idempotent per-month results + a rollup to Postgres.Design
probeHybridSupport,extractNegotiated) by internal source import. It deliberately does not userunProbe, which is ownership-gated (authorizeTargets) and would refuse hosts we don't own.docs/adr/0007.pgis a devDependency of the observatory package only.CLI
npm run observatory -- run --month 2026-07(flags:--hosts,--optout,--timeout,--interval,--dry-run). Month =--month>OBS_MONTH> current UTC month, resolved insiderun()(noDateat module top level).Verification
tsc -p packages/observatory/tsconfig.jsonclean.check-zero-depsandcheck-offline-boundarypass; root build ignores observatory.hybrid=true, GitHubhybrid=false; cert fields captured.Needs a human (ops)
dl-latestrunning the CLI (no separate VM, per ADR).DATABASE_URLin the worker's env (the website migration owns the tables; the workerCREATE TABLE IF NOT EXISTSes them defensively).hosts.txtseed list before the first real run.Also includes a small doc commit preserving
docs/openssf-best-practices.md(was a local-only file, kept so nothing is lost).