Repository navigation
Conversation
Drop certificate DER fingerprint matching and PEMCertPool root filtering in favor of a single SPKI-only BlockedSPKIs / --blocked_spkis option (and blocked_spkis in the Terraform modules), enforced across every certificate in a verified chain (leaf, intermediate, and root). Unlike --reject_extension, --roots_reject_fingerprints and --intermediates_reject_fingerprints are intentionally removed rather than kept as deprecated flags: because a SHA-256 of a certificate DER and a SHA-256 of an SPKI are indistinguishable (and intermediates are not known at startup), ignoring or SPKI-forwarding old configs would silently fail open for anyone passing certificate DER fingerprints. Failing closed at startup forces callers to migrate explicitly to --blocked_spkis with SPKI SHA-256 hashes.
Replace internal/lax509 with filippo.io/sunlight/chain v0.11.0 and remove crypto/x509 parsing from the submission hot path: - Back x509util.PEMCertPool with immutable chain.Roots snapshots swapped atomically on root updates, validating roots via chain.Roots.Add. - Update ChainValidator, handlers, requestLog, and CTStorage.AddIssuerChain to work on raw DER certificates and chain.Verified (NotBefore, NotAfter, TBSCertificate, IssuerKeyHash). - Add x509util.EntryFromVerified to build log entries directly from chain.Verified without re-parsing or re-marshaling TBSCertificate. - Delegate BlockedSPKIs directly to Verifier.BlockedKeys. - Restrict ExtKeyUsages to "" (default, allow all), "ServerAuth", and "BrandIndicatorForMessageIdentification" (accepting "Any" as a deprecated alias that logs an error). - Remove AcceptSHA1 from ChainValidationConfig and the GCE Terraform flag, keeping --accept_sha1_signing_algorithms as a deprecated no-op flag that logs an error now that filippo.io/sunlight/chain unconditionally verifies SHA-1 signatures. - Reject precertificates issued by Precertificate Signing Certificates as enforced by filippo.io/sunlight/chain (allowed by static-ct-api@v1.1.0 and sunset by CA/B Forum Ballot SC-092). - Remove internal/lax509 and update docs and linter config.
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.
Replaces our forked internal/lax509 package with filippo.io/sunlight/chain https://pkg.go.dev/filippo.io/sunlight/chain (v0.11.0) for chain validation and precertificate handling, removing crypto/x509 from the submission path and deleting internal/lax509/.
Behavioral & flag changes:
--roots_reject_fingerprintsand--intermediates_reject_fingerprintswith a single--blocked_spkisflag, blocking by SPKI SHA-256 anywhere in the chain (leaf, intermediate, or root). Blocked roots remain in get-roots, while submissions chaining to them are rejected. This make the API much simpler.--reject_extension: was the last remaining dependency on crypto/x509 in chain validation.--accept_sha1_signing_algorithms: now a no-op since filippo.io/sunlight/chain always accepts SHA-1 signatures.--ext_key_usagesnow only accepts an empty value,ServerAuth, andBrandIndicatorForMessageIdentification.Towards #1010.