Repository navigation
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
Conversation
… 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
force-pushed
the
bestpractices
branch
from
December 6, 2026 02:04
1ea8de3 to
86a8703
Compare
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.
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 lintreports the tree compliant with REUSE 3.3.🤖 Generated with Claude Code