Repository navigation
Remove RejectExtensions - #1016
Merged
Merged
Conversation
Remove the unused RejectExtensions config field, --reject_extension CLI flag, ParseOIDs helper, and extension-OID filtering from chain validation.
phbnf
force-pushed
the
rejectextensions
branch
from
December 3, 2026 14:56
8543f07 to
e92290a
Compare
phbnf
marked this pull request as ready for review
December 3, 2026 14:58
AlCutter
approved these changes
Dec 3, 2026
| rejectExpired = flag.Bool("reject_expired", false, "If true then the certificate validity period will be checked against the current time during the validation of submissions. This will cause expired certificates to be rejected.") | ||
| rejectUnexpired = flag.Bool("reject_unexpired", false, "If true then TesseraCT rejects certificates that are either currently valid or not yet valid.") | ||
| extKeyUsages = flag.String("ext_key_usages", "Any", "If set, will restrict the set of such usages that the server will accept. By default, 'Any' accepts all chains. Accepted values are defined in internal/ct.") | ||
| rejectExtensions = flag.String("reject_extension", "", "A list of X.509 extension OIDs, in dotted string form (e.g. '2.3.4.5') which, if present, should cause submissions to be rejected.") |
Collaborator
There was a problem hiding this comment.
Should we leave the flag present to avoid startup crashes for anyone who has it in their configs, but mark it deprecated and cause it to log an error?
AlCutter
approved these changes
Dec 3, 2026
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.
Remove the unused
RejectExtensionsconfig field,--reject_extensionCLI flag, ParseOIDs helper, and extension-OID filtering from chain validation.I don't think it's used, and it's not supported by
sunlight/chain.Towards #1010.