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

Adjust MarshalSubjectAltName to allow SANs to be critical #367

Merged
merged 1 commit into from
Mar 26, 2024

Conversation

liamjm
Copy link
Contributor

@liamjm liamjm commented Mar 25, 2024

For both AKs and EKs the Subject Alt Name extension may be critical, or non-critical, based on the presence of the subject field.

So we need to expose control over this criticality to the caller, as detailed more in #366 .

This PR adds a new method MarshalSubjectAltNameWithCriticality that accepts a bool to control the criticality. The existing method (MarshalSubjectAltName) that specifies the extension non-critical is left untouched to maintain compatibility.

@liamjm
Copy link
Contributor Author

liamjm commented Mar 25, 2024

@brandonweeks

Copy link
Member

@brandonweeks brandonweeks 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, can you please squash the commits?

@liamjm liamjm changed the title Add MarshalSubjectAltNameWithCriticality to allow SANs to be critical Adjust MarshalSubjectAltName to allow SANs to be critical Mar 26, 2024
@liamjm
Copy link
Contributor Author

liamjm commented Mar 26, 2024

Squashing done, and update from master branch.

@brandonweeks brandonweeks enabled auto-merge (squash) March 26, 2024 23:33
@brandonweeks brandonweeks merged commit 5b37630 into google:master Mar 26, 2024
8 checks passed
@liamjm liamjm deleted the san_criticality branch March 27, 2024 22:02
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