Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issuance: add CRLDistributionPoints to certs #7974

Merged
merged 9 commits into from
Jan 30, 2025
Merged

issuance: add CRLDistributionPoints to certs #7974

merged 9 commits into from
Jan 30, 2025

Conversation

jsha
Copy link
Contributor

@jsha jsha commented Jan 24, 2025

The CRLDP is included only when the profile's IncludeCRLDistributionPoints field is true.

Introduce a new config field for issuers, CRLShards. If IncludeCRLDistributionPoints is true and this is zero, issuance will error.

The CRL shard is assigned at issuance time based on the (random) low bits of the serial number.

Part of #7094.

Base automatically changed from crls-in-revocation-test to main January 24, 2025 02:49
@jsha jsha marked this pull request as ready for review January 27, 2025 19:37
@jsha jsha requested a review from a team as a code owner January 27, 2025 19:37
@jsha jsha requested a review from beautifulentropy January 27, 2025 19:37
Copy link
Contributor

@jsha, this PR appears to contain configuration and/or SQL schema changes. Please ensure that a corresponding deployment ticket has been filed with the new values.

@jsha jsha marked this pull request as draft January 28, 2025 18:31
@jsha jsha changed the base branch from main to add-includecrldistributionpoints January 29, 2025 20:08
@jsha jsha changed the title ca: set CRLDP when CRLShards > 0 issuance: add CRLDistributionPoints to certs Jan 29, 2025
@jsha jsha marked this pull request as ready for review January 29, 2025 21:11
issuance/issuer.go Outdated Show resolved Hide resolved
@jsha jsha requested a review from a team January 30, 2025 18:39
@jprenken jprenken requested a review from aarongable January 30, 2025 19:47
jprenken
jprenken previously approved these changes Jan 30, 2025
jsha added a commit that referenced this pull request Jan 30, 2025
To achieve this without breaking hashes of deployed configs, create a
ProfileConfigNew containing the new field (and removing some deprecated
fields).

Move the CA's profile-hashing logic into the `issuance` package, and
gate it on the presence of IncludeCRLDistributionPoints. If that field
is false (the default), create an instance of the old `ProfileConfig`
with the appropriate values and encode/hash that instead.

Note: the IncludeCRLDistributionPoints field does not yet control any
behavior. That will be part of #7974.

Part of #7094
Base automatically changed from add-includecrldistributionpoints to main January 30, 2025 19:48
@jsha jsha dismissed jprenken’s stale review January 30, 2025 19:48

The base branch was changed.

jsha added 8 commits January 30, 2025 11:50
The CRLDP is included only when the profile's IncludeCRLDistributionPoints
field is true.

Introduce a new config field for issuers, CRLShards. If this is zero
and IncludeCRLDistributionPoints is true, issuance will error.

The CRL shard is assigned at issuance time based on the (random) low bits of the
serial number.
@aarongable aarongable merged commit f11475c into main Jan 30, 2025
12 checks passed
@aarongable aarongable deleted the ca-sets-crldp branch January 30, 2025 22:39
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.

3 participants