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

pki: Preserve ordering of submitted SAN names #50

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

cipherboy
Copy link
Member

@cipherboy cipherboy commented Jan 17, 2024

As discussed upstream, this preserves ordering of the DNS SANs submitted by the caller, giving them control over the ordering on the final certificate. Previously, these were sorted: this resulted in stable ordering (independent of request ordering), but can sometimes result in unexpected behavior if a SAN is unsupported by the browser.

While this is a breaking change (insofar as this can change SAN ordering, which in turn means that there is a potential for newly issued leaf certificates to behave differently when reissued via the same API call), this change also gives more control to the caller to resolve any issues they may currently be running into due to the automated re-ordering.

Thus, on balance, this change is a net benefit to users.

See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1757758
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1196364

Resolves: #49

cipherboy pushed a commit to cipherboy/openbao that referenced this pull request Jan 21, 2024
…penbao#50)

* CreateOperation should only be implemented alongside ExistenceCheck

See hashicorp/vault#18492

* Change CreateOperation to UpdateOperation in tests, too
cipherboy pushed a commit to cipherboy/openbao that referenced this pull request Jan 21, 2024
Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
@naphelps naphelps self-requested a review February 5, 2024 15:34
@naphelps naphelps added this to the Alpha milestone Feb 7, 2024
As discussed upstream, this preserves ordering of the DNS SANs submitted
by the caller, giving them control over the ordering on the final
certificate. Previously, these were sorted: this resulted in stable
ordering (independent of request ordering), but can sometimes result in
unexpected behavior if a SAN is unsupported by the browser.

While this is a breaking change (insofar as this can change SAN
ordering, which in turn means that there is a potential for newly
issued leaf certificates to behave differently when reissued via the
same API call), this change also gives more control to the caller to
resolve any issues they may currently be running into due to the
automated re-ordering.

Thus, on balance, this change is a net benefit to users.

See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1757758
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1196364
See also: openbao#49

Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
@naphelps naphelps merged commit d06a3f7 into openbao:main Feb 12, 2024
5 of 9 checks passed
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.

bug: OpenBao reorders PKI SAN list
3 participants