Skip to content

Conversation

@aarongable
Copy link
Contributor

@aarongable aarongable commented Sep 26, 2025

Change how the CA determines which issuer to use (the pickIssuer helper), to take into account the requested profile alongside the CSR's key algorithm. This simple loop allows us to greatly simplify how the CA has to track its set of issuers, resulting in some wider-reaching changes to the NewCertificateAuthorityImpl constructor, the unit tests, and boulder-ca/main.go.

Make the recently-added Issuer.Profiles config field required, and add checks to ensure that all profiles are listed by at least one issuer, and that all profiles listed by an issuer are actually configured.

Fixes #8390


Warning

Do not merge before #8424
Do not merge before #8423 has been deployed
Do not merge before IN-11840 has been completed

Copy link
Contributor

@jsha jsha left a comment

Choose a reason for hiding this comment

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

Generally looks good! Some small comments.

@aarongable aarongable force-pushed the use-issuer-profiles branch from fb42e7f to a1e2343 Compare October 2, 2025 00:43
@aarongable aarongable changed the base branch from main to ca-refactor October 2, 2025 00:46
@aarongable aarongable force-pushed the use-issuer-profiles branch from a1e2343 to 8337e76 Compare October 2, 2025 00:52
Base automatically changed from ca-refactor to main October 16, 2025 17:17
@aarongable aarongable changed the title WIP: Allow issuers to configure specific profiles Bind issuers to only issue for specified profiles Oct 17, 2025
@aarongable aarongable marked this pull request as ready for review October 17, 2025 23:10
@aarongable aarongable requested a review from a team as a code owner October 17, 2025 23:10
Copy link
Contributor

@jsha jsha left a comment

Choose a reason for hiding this comment

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

Looks nice!

@aarongable aarongable merged commit febd9f5 into main Oct 22, 2025
16 of 21 checks passed
@aarongable aarongable deleted the use-issuer-profiles branch October 22, 2025 17:20
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.

Support issuer<->profile mappings

4 participants