Skip to content

fix(tls): HTTP/3 serves the configured primary certificate; feat(challenge): the interstitial in the browser's language; ShellCheck; end-to-end tests - #369

Open
PQCrypta wants to merge 7 commits into
mainfrom
quality-round
Open

PQCrypta wants to merge 7 commits into
mainfrom
quality-round

Conversation

@PQCrypta

@PQCrypta PQCrypta commented Dec 6, 2026 •

Copy link
Copy Markdown
Owner

tls: the SNI resolver behind QUIC and the rustls TCP listener loads tls.cert_path/key_path itself. A primary not named {domain}.crt (the default cert.pem among them) is served under its file's name and every DNS name it carries that the directory has no certificate for; before, it was served only by the OpenSSL TCP listener, and an HTTP/3 handshake found no certificate.
challenge: security.challenge.translations gives the interstitial in other languages, chosen by Accept-Language (weights, a region taking its language and a language its region's), each message falling back to English; the page carries lang and dir, the script its messages, numbers are formatted for the language, and the response is Vary: Accept-Language. Translations are validated at load.
security: security.crawler_ranges_cache names where the published crawler ranges are cached (the default unchanged), as the other state paths are named.
cli: --test-certificates creates its directory, readable by its owner alone.
pentests: every finding is written to the summary and counted ([VULN] throughout; an if/else in place of A && B || C | tee, which kept the first outcome off the summary); the old-TLS test offers TLS 1.0 and 1.1 and tells a server's refusal from a client that could not offer them; the SSTI payloads, the PDF signature, the gRPC frames and the external-script pattern are what they were meant to be; the timing test reads its settings, times with curl's own clock and its statistics run; concurrent requests count their statuses.
shell: every script is ShellCheck-clean, checked in CI against a pinned release; deploy.sh sends a step's arguments in its standard input, not its command line.
tests: tests/e2e.rs runs the binary on loopback in front of a backend of its own and asks it over HTTP/1.1, HTTP/2 and HTTP/3, through the admin API and the command line, then stops it with SIGTERM. Through a PROXY header from the trusted loopback address, a test is a client from outside: the WAF refuses its injection, and the challenge is solved in the browser's language and lets it through. docs/challenge-translations/ holds the English template, held to the code by a test.
ci: the tests and coverage run every feature a build ships with, not --all-features, whose measurement features take the middleware chain out of the build under test; release PRs run every required check's workflow.

BEGIN_COMMIT_OVERRIDE
fix(tls): HTTP/3 and the rustls TCP listener serve the configured primary certificate whatever its files are named, under every name it carries
feat(challenge): the interstitial in the browser's language, from operator translations (security.challenge.translations), with Vary: Accept-Language
feat(security): crawler_ranges_cache names where the published crawler ranges are cached
fix(cli): --test-certificates creates its directory, readable by its owner alone
fix(pentests): every finding is recorded and counted, and the old-TLS, SSTI, file-upload, gRPC, SRI and timing tests test what they name
END_COMMIT_OVERRIDE

Checked on api3: clippy -D warnings (all targets, all features); the whole suite with the shipping features, 1244 passed and 0 failed, the end-to-end tests (9) among them; ShellCheck clean on 81 scripts; zizmor (pedantic, online) and reuse lint clean.

🤖 Generated with Claude Code

… in CI

Signed-off-by: PQCrypta <contact@pqcrypta.com>
…rator translations

Signed-off-by: PQCrypta <contact@pqcrypta.com>
…mmand line

Signed-off-by: PQCrypta <contact@pqcrypta.com>
Signed-off-by: PQCrypta <contact@pqcrypta.com>
… and coverage run the shipping features

Signed-off-by: PQCrypta <contact@pqcrypta.com>
…hallenge end to end

Signed-off-by: PQCrypta <contact@pqcrypta.com>
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