UI does not properly handle URL-encoded components in secrets path #28759
Labels
bug
Used to indicate a potential bug
reproduced
This issue has been reproduced by a Vault engineer
ui
Describe the bug
I wanted to use an URL as a single component of a secret path (to uniquely identify the data for which the secret is a decryption key); to make it a valid path component, I URL-encoded the URL. This works fine in the API, but when trying to browse to the secret in the UI, the URL escapes get unescaped at some point and the UI is unable to browse to the secret.
To Reproduce
Steps to reproduce the behavior:
vault kv put -mount=secret 'test%2Fwith%2Fpercents/data' foo=bar
https://HOST/ui/vault/secrets/secret/kv/list
test%2Fwith%2Fpercents/
https://HOST/ui/vault/secrets/secret/kv/list/test%2Fwith%2Fpercents/
Expected behavior
I expect to see a list of the secrets under the
test%2Fwith%2Fpercents
tree (namely thedata
secret written in step 2).Environment:
vault status
): 1.17.6vault version
): Vault v1.17.6 (cgo)Vault server configuration file(s):
(other Vault servers in the cluster are the same except for node_id and retry_join blocks)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: