vault-action icon indicating copy to clipboard operation
vault-action copied to clipboard

[BUG] Key transformed to uppercase when exported to env var using wildcard

Open martinsolberg opened this issue 11 months ago • 3 comments

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.

martinsolberg avatar Mar 20 '24 10:03 martinsolberg

https://github.com/hashicorp/vault-action/blob/77efb36ae332b47f07acf52c37a69f5ba6363e2f/src/utils.js#L11-L13

Why?

martinsolberg avatar Mar 20 '24 12:03 martinsolberg

Maintainers, can you please merge the PR from @bagf to resolve this issue?

martinsolberg avatar Jun 24 '24 08:06 martinsolberg

@benashz

martinsolberg avatar Aug 20 '24 07:08 martinsolberg