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

Allow issuer/:issuer_ref/sign-verbatim/:role, add error on missing role #15543

Merged
merged 4 commits into from May 23, 2022

Conversation

cipherboy
Copy link
Contributor

In #15277, we missed that the new /issuer/issuer_ref/sign-verbatim path lacked a role-allowed variant (like /sign-verbatim/:role does). Add the missing parameter.

Additionally, I noticed that sign-verbatim (since early versions), wouldn't warn or err on a missing role when one was requested. Since we don't currently err, we can't now err, so add a warning instead.

@cipherboy cipherboy added bug Used to indicate a potential bug secret/pki rotation labels May 20, 2022
@cipherboy cipherboy added this to the 1.11.0-rc1 milestone May 20, 2022
@cipherboy cipherboy requested review from kitography, stevendpclark and a team May 20, 2022 17:36
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
@cipherboy cipherboy force-pushed the cipherboy-allow-issuer-sign-verbatim branch from 91af569 to 4f7275b Compare May 20, 2022 19:47
changelog/15543.txt Outdated Show resolved Hide resolved
builtin/logical/pki/path_issue_sign.go Outdated Show resolved Hide resolved
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
@cipherboy cipherboy force-pushed the cipherboy-allow-issuer-sign-verbatim branch from 6628b03 to 9603194 Compare May 20, 2022 21:52
Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
@cipherboy cipherboy changed the title Allow issuer/:issuer_ref/sign-verbatim/:role, add warning on missing role Allow issuer/:issuer_ref/sign-verbatim/:role, add error on missing role May 23, 2022
@cipherboy cipherboy requested a review from a team May 23, 2022 15:24
Copy link
Contributor

@kitography kitography left a comment

Choose a reason for hiding this comment

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

LGTM

@cipherboy
Copy link
Contributor Author

Thanks all! Merging...

@cipherboy cipherboy merged commit 4f21baa into main May 23, 2022
Gabrielopesantos pushed a commit to Gabrielopesantos/vault that referenced this pull request Jun 6, 2022
…le (hashicorp#15543)

* Allow role-based sign-verbatim with chosen issuer

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add warning with missing requested verbatim role

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add changelog

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Update builtin/logical/pki/backend.go

Co-authored-by: Steven Clark <steven.clark@hashicorp.com>

Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
@cipherboy cipherboy deleted the cipherboy-allow-issuer-sign-verbatim branch June 16, 2022 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug secret/pki
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants