Skip to content

Replace RejectRoots and RejectIntermediates with SPKI-only BlockedSPKIs - #1017

Open
phbnf wants to merge 1 commit into
transparency-dev:mainfrom
phbnf:rejectspki
Open

phbnf wants to merge 1 commit into
transparency-dev:mainfrom
phbnf:rejectspki

Conversation

@phbnf

@phbnf phbnf commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Drop certificate DER fingerprint matching and PEMCertPool root filtering in favor of a single SPKI-only BlockedSPKIs / --blocked_spkis option, enforced across every certificate in a verified chain (leaf, intermediate, and root).

This unifies the API, and paves the way to using sunlight/chain.

Specifying --roots_reject_fingerprints and --intermediates_reject_fingerprints will prevent the binary from starting. These flags are sensitive enough that we don't want an operator to think they are blocking submissions, when they are not. I tried to forward the old flags to the new one, but that doesn't work well since --roots_reject_fingerprint used to accept DER SHA256, and --blocked_spkis doesn't.

Towards #1010.

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.
@phbnf
phbnf requested a review from AlCutter December 3, 2026 18:14
@phbnf
phbnf marked this pull request as ready for review December 3, 2026 18:15
@phbnf
phbnf requested a review from a team as a code owner December 3, 2026 18:15
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