vault-action
vault-action copied to clipboard
[BUG] Key transformed to uppercase when exported to env var using wildcard
Vault server version
v1.15.5
vault-action version
v3
Describe the bug
When getting multiple keys in a path using wildcard, the resulting environment variables have their case transformed to uppercase.
To Reproduce
with:
secrets: |
secret/data/ci/aws * | MYAPP_ ;
The key accessKey
will be created as MYAPP_ACCESSKEY
.
Expected behavior
The exported environment variable should retain the key case, e.g. MYAPP_accessKey
.
https://github.com/hashicorp/vault-action/blob/77efb36ae332b47f07acf52c37a69f5ba6363e2f/src/utils.js#L11-L13
Why?
Maintainers, can you please merge the PR from @bagf to resolve this issue?
@benashz