-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Vault 5917 allow patch operations to pki roles issuers #15510
Vault 5917 allow patch operations to pki roles issuers #15510
Conversation
…y roles after migration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This largely looks good! I have passing tests for role based patching but I think we can add this in a separate PR.
Thank you @kitography!
// When the new name is in use but isn't this name, throw an error. | ||
return logical.ErrorResponse(err.Error()), nil | ||
} | ||
if newName != issuer.Name { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verify if we are writing a new name, if non-zero, that it matches nameMatcher.MatchString(newName)
so that we have valid names to be use within URLs.
I'm okay with deferring this to another PR as we are missing it here and within the pathUpdateIssuer
handler.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
* Add a warning when Issuing Certificate set on a role does not resolve. * Ivanka's requests - add a warning on deleting issuer or changing it's name. * Fix nil checks; reduce number of roles to iterate through; only verify roles after migration. * Fix semgrep failure, ignore roles deleted behind our back. * Patch functionality for roles * Make Patch Roles work again, add back patch issuers. * Add changelog. * Fix nil-reversion on empty response. * Panics are bad. don't do that.
PATCH functionality for Roles and Issuers