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

Vault 11799 Vault CLI Re-Issue (Templating based on existing certificate) #18499

Merged

Conversation

kitography
Copy link
Contributor

No description provided.

@kitography kitography added this to the 1.13.0-rc1 milestone Feb 10, 2023
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.

Overall great stuff! We can either fix some of the comments here or merge and address in another PR.

parentIssuer := sanitizePath(args[0]) // /pki/issuer/default
intermediateMount := sanitizePath(args[2])

templateCertificateResp, err := client.Logical().Read(sanitizePath(args[1]))
Copy link
Contributor

Choose a reason for hiding this comment

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

I'll fix this up across various commands, just be aware that it is possible that we get a nil, nil response here if the URL passed in wasn't a valid path. The list-intermediates has the same issue.

command/pki_reissue_intermediate.go Show resolved Hide resolved
@kitography kitography enabled auto-merge (squash) February 10, 2023 20:16
@kitography kitography merged commit d08de3e into main Feb 10, 2023
@kitography kitography deleted the VAULT-11799-vault-cli-re-issue-intermediate-templating branch February 10, 2023 20:28
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