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

Add serial_number_source option to PKI role #29369

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

devon-mar
Copy link

@devon-mar devon-mar commented Jan 20, 2025

Fixes #25708

Description

This PR adds the serial_number_source option to PKI roles. This field can be one of two values:

  • json-csr: the value from the JSON serial_number field is used, falling back to the value in the CSR if empty. This is the current behaviour.
  • json: the value from the serial_number JSON field is used, ignoring the value in the CSR`

This allows the user to ignore the serial number value in the CSR like the other fields which can have their values taken from the CSR (CN, SANs, etc).

Copy link
Contributor

@stevendpclark stevendpclark left a comment

Choose a reason for hiding this comment

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

Looks good 👍

Could you add an improvement changelog entry for this PR?

@devon-mar devon-mar requested a review from a team as a code owner January 25, 2025 05:53
@devon-mar devon-mar requested a review from hashneo January 25, 2025 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

use_csr_serial_number option for PKI roles
3 participants