Skip to content

fix(admin): the canary action reads its body with the JSON extractor; fix(security): keys, nonces and tokens from AWS-LC's DRBG - #359

Merged
PQCrypta merged 1 commit into
mainfrom
bestpractices
Dec 6, 2026
Merged

PQCrypta merged 1 commit into
mainfrom
bestpractices

Conversation

@PQCrypta

@PQCrypta PQCrypta commented Dec 6, 2026

Copy link
Copy Markdown
Owner

admin: POST /pools/{pool}/servers/{id}/canary has its own route, matched ahead of the other pool actions, and reads {"weight": n} through axum's JSON extractor: only as application/json, only the fields the request names; no body is still the pool's ramp. The other actions read no body.
security: src/secure_random.rs draws every key, nonce and token (the generated admin token, signing nonces, challenge secrets, request and session IDs, DNS message IDs, WebSocket keys) from AWS-LC's CTR-DRBG, the generator the TLS stack uses; rand stays for choices that protect nothing, through rand::random_range, and clippy refuses rand::random and rand::fill.
licensing: REUSE 3.3: LICENSES/ and REUSE.toml name every file's licence and copyright, each vendored fork its upstream's; CI checks it.
ci: a Coverage job (cargo-llvm-cov, the proxy's own code); CI and CodeQL run on each release PR, which Release Please opens with a token that starts no workflow; the unused release job, which uploaded archives without provenance, is gone.
docs: docs/SECURE-DESIGN.md (principles, common errors and their countermeasures) and docs/CRYPTOGRAPHY.md (libraries, defaults, key lengths, randomness, protocol-mandated legacy algorithms); CONTRIBUTING.md states the test policy and the checks; SECURITY.md links the advisories and the design; .github/SECURITY.md, an older policy GitHub showed in place of SECURITY.md, is removed; each release that fixed a published advisory lists it under Security in CHANGELOG.md; .bestpractices.json holds the OpenSSF Best Practices answers.

BEGIN_COMMIT_OVERRIDE
fix(admin): the canary action has a route of its own and reads its body with the JSON extractor, as application/json with known fields only
fix(security): every key, nonce and token is drawn from AWS-LC's DRBG (secure_random); rand is kept for choices that protect nothing
END_COMMIT_OVERRIDE

Tests: the full suite passes with all features (1227 passed, 0 failed), clippy with -D warnings, and reuse lint reports the tree compliant with REUSE 3.3.

🤖 Generated with Claude Code

Comment thread src/secure_random.rs Fixed
… fix(security): keys, nonces and tokens from AWS-LC's DRBG

admin: POST /pools/{pool}/servers/{id}/canary has its own route, matched ahead of the other pool actions, and reads {"weight": n} through axum's JSON extractor: only as application/json, only the fields the request names; no body is still the pool's ramp. The other actions read no body.
security: src/secure_random.rs draws every key, nonce and token (the generated admin token, signing nonces, challenge secrets, request and session IDs, DNS message IDs, WebSocket keys) from AWS-LC's CTR-DRBG, the generator the TLS stack uses; rand stays for choices that protect nothing, through rand::random_range, and clippy refuses rand::random and rand::fill.
licensing: REUSE 3.3: LICENSES/ and REUSE.toml name every file's licence and copyright, each vendored fork its upstream's; CI checks it.
ci: a Coverage job (cargo-llvm-cov, the proxy's own code); CI and CodeQL run on each release PR, which Release Please opens with a token that starts no workflow; the unused release job, which uploaded archives without provenance, is gone.
docs: docs/SECURE-DESIGN.md (principles, common errors and their countermeasures) and docs/CRYPTOGRAPHY.md (libraries, defaults, key lengths, randomness, protocol-mandated legacy algorithms); CONTRIBUTING.md states the test policy and the checks; SECURITY.md links the advisories and the design; .github/SECURITY.md, an older policy GitHub showed in place of SECURITY.md, is removed; each release that fixed a published advisory lists it under Security in CHANGELOG.md; .bestpractices.json holds the OpenSSF Best Practices answers.

BEGIN_COMMIT_OVERRIDE
fix(admin): the canary action has a route of its own and reads its body with the JSON extractor, as application/json with known fields only
fix(security): every key, nonce and token is drawn from AWS-LC's DRBG (secure_random); rand is kept for choices that protect nothing
END_COMMIT_OVERRIDE
@PQCrypta
PQCrypta merged commit 41e762e into main Dec 6, 2026
33 checks passed
@PQCrypta
PQCrypta deleted the bestpractices branch December 6, 2026 02:44
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.

3 participants