Repository navigation
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
Conversation
… 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>
… and coverage run the shipping features Signed-off-by: PQCrypta <contact@pqcrypta.com>
Signed-off-by: PQCrypta <contact@pqcrypta.com>
…hallenge end to end Signed-off-by: PQCrypta <contact@pqcrypta.com>
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.
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