Skip to content

Remove RejectExtensions - #1016

Merged
phbnf merged 2 commits into
transparency-dev:mainfrom
phbnf:rejectextensions
Dec 3, 2026
Merged

phbnf merged 2 commits into
transparency-dev:mainfrom
phbnf:rejectextensions

Conversation

@phbnf

@phbnf phbnf commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Remove the unused RejectExtensions config field, --reject_extension CLI 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.

@phbnf
phbnf requested a review from AlCutter December 3, 2026 14:20
Remove the unused RejectExtensions config field, --reject_extension CLI
flag, ParseOIDs helper, and extension-OID filtering from chain
validation.
@phbnf
phbnf marked this pull request as ready for review December 3, 2026 14:58
@phbnf
phbnf requested a review from a team as a code owner December 3, 2026 14:58
Comment thread cmd/tesseract/aws/main.go
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.")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@phbnf
phbnf merged commit cecbaae into transparency-dev:main Dec 3, 2026
14 checks passed
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