-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
UI HMAC Never Base64 encoded #18071
Labels
Comments
Thank you @BHanq for reporting this issue. I just posted a PR for a fix that will backport the fix as far back as 1.11. |
This was referenced Mar 6, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Vault UI HMAC feature in ui/vault/secrets/transit/actions/?action=hmac is bugged and consider the input as “not base64 encoded”. Even if the base 64 checkbox is ticked.
To Reproduce
Steps to reproduce the behavior:
vault server -dev
vault secrets enable transit
vault write -f transit/keys/my-key
https://127.0.0.1:8200/ui/vault/secrets/transit/actions/my-key?action=hmac
Expected behavior
Outputs shouldn't be identical since a base64 should occurs in one case and not in the other
Environment:
Vault Server Version:
Vault CLI Version : 1.11.2
Server Operating System/Architecture: Ubuntu on WSL
Vault server configuration file(s):
None (Vault Dev Server)
Additional context
Image, without ticking the checkbox
Image, while ticking the checkbox
The text was updated successfully, but these errors were encountered: