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

Allow issuance of root certs no AIA when templating is enabled #21209

Merged
merged 4 commits into from
Jun 14, 2023

Conversation

cipherboy
Copy link
Contributor

When templating is enabled in config/urls, with a URL that includes the best-practice suggestion of {{issuer_id}}, we fail to generate root CAs because there is no issuer ID yet. While this is true, the best practice is to include {{issuer_id}} on the AIA info, but Root CAs need not specify AIA info; indeed, most public root CAs do not.

Instead of erring, allow this issuance to silently succeed with no AIA information; if AIA information is necessary, it can be manually specified (e.g., using enable_templating=false or without {{issuer_id}}, such as with a fixed, manually-specified name for this one root certificate).

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
@cipherboy cipherboy added bug Used to indicate a potential bug secret/pki backport/1.13.x labels Jun 13, 2023
@cipherboy cipherboy added this to the 1.13.4 milestone Jun 13, 2023
@cipherboy cipherboy self-assigned this Jun 13, 2023
@cipherboy cipherboy requested a review from a team June 13, 2023 20:41
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug secret/pki
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants