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

Backport of Correctly distinguish empty issuer names in PKI into release/1.11.x #18646

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #18466 to be assessed for backporting due to the inclusion of the label backport/1.11.x.

WARNING automatic cherry-pick of commits failed. Commits will require human attention.

merge conflict error: POST https://api.github.com/repos/hashicorp/vault/merges: 409 Merge conflict []

The below text is copied from the body of the original PR.


When using client.Logical().JSONMergePatch(...) with an empty issuer name, patch incorrectly reports:

issuer name contained invalid characters

In this case, both the error in getIssuerName(...) is incorrect and patch should allow setting an empty issuer name explicitly.

Signed-off-by: Alexander Scheel <[email protected]>


Notably, while this also affects vault write, the new error message should be clearer and users can simply elide the issuer_name parameter (with empty value) and the the same behavior (clearing the name). However, for vault patch there is no equivalent and thus they have to have this bug fix.


Overview of commits

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/cipherboy-fix-name-on-empty-but-provided-issuer-name/explicitly-fleet-cougar branch from 818cd7f to ab6a7f4 Compare January 10, 2023 15:06
@hashicorp-cla
Copy link

hashicorp-cla commented Jan 10, 2023

CLA assistant check
All committers have signed the CLA.

@cipherboy cipherboy force-pushed the backport/cipherboy-fix-name-on-empty-but-provided-issuer-name/explicitly-fleet-cougar branch from c2cbbd2 to 5ab88bc Compare January 10, 2023 19:57
@cipherboy cipherboy marked this pull request as ready for review January 10, 2023 19:57
@cipherboy cipherboy enabled auto-merge (squash) January 10, 2023 20:20
@cipherboy cipherboy merged commit d82f629 into release/1.11.x Jan 10, 2023
@cipherboy cipherboy deleted the backport/cipherboy-fix-name-on-empty-but-provided-issuer-name/explicitly-fleet-cougar branch April 21, 2023 13:04
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.

3 participants