Repository navigation
Conversation
…zes, weak signature, minimum protocol and counterpart options; key check names type and size #1259 Signed-off-by: Nik Cubrilovic <[email protected]>
…te shape #1259 Signed-off-by: Nik Cubrilovic <[email protected]>
…519, DSA, RSA-PSS, P-521); key message wording; pipeline test for the new checks #1259 Signed-off-by: Nik Cubrilovic <[email protected]>
This was referenced Oct 31, 2026
fix(cli): a broken start-URL certificate is reported as security/tls-certificate failing #1259
#1401
Closed
Merged
Contributor
Author
|
Landed in v0.0.147 as nik |
10 tasks done
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.
Refs #1259 (PR 2 of 2; the start-URL report is #1401)
Spike first, as the issue asks: on the pinned Bun the probe reads the leaf's key type, size and signature algorithm (
X509Certificateon the peer's DER) and the negotiated protocol (getProtocol()). All seven options ship. What the runtime cannot reach is stated in the docs, the CHANGELOG and the option text:Bun's client refuses below TLS 1.2, so a server that only speaks TLS 1.0 or 1.1 is
not checked(a handshake alert), never a protocol warning. With the defaultmin_tls_version = TLSv1.2the protocol check cannot fire; onlyTLSv1.3against a server that tops out at TLS 1.2 warns.Ed25519, Ed448, DSA, RSA-PSS, P-521 and secp256k1 leaves fail Bun's handshake, so live those sites are
not checked; the key naming andkey_typeshandling for them are covered by fact-based tests only. RSA and ECDSA P-256/P-384 are judged live.Options under
[rule_options."security/tls-certificate"], each validated (the option named in the error):key_types,rsa_min_bits,ecdsa_min_bits,dsa_min_bits,reject_weak_signature,min_tls_version,check_counterpart.warn_days,error_daysand their check are unchanged.tls-certificate-keynames the type and size and warns on a disallowed type or size under the minimum; newtls-certificate-signature(leaf only) andtls-certificate-protocol. No new rule id;metais unchanged (itssolutiontext is still accurate).Tests: 10 rule tests, a rule-stage test through
rule_options(config reaches all three checks and the counterpart switch), a real-handshake probe test (RSA 2048 and 1024, P-256, SHA-256 signature, protocol), utils key facts.Docs: checks, options with defaults and limits, a
squirrel.tomlexample. CHANGELOG. Skill change: none. Conflicts with fix(cli): a broken start-URL certificate is reported as security/tls-certificate failing #1259 #1401 only in CHANGELOG (keep both bullets).nik