Skip to content

Preserve spaces in Vault secret values when exporting to env_vars_to_export - #754

Open
theluckystrike wants to merge 1 commit into
codefresh-io:masterfrom
theluckystrike:fix/vault-secrets-with-spaces
Open

theluckystrike wants to merge 1 commit into
codefresh-io:masterfrom
theluckystrike:fix/vault-secrets-with-spaces

Conversation

@theluckystrike

Copy link
Copy Markdown

Fixes #106.

incubating/vault/script.sh iterated over jq output with unquoted for s in $(...), causing Bash to word-split any secret value containing spaces across multiple lines in /meta/env_vars_to_export. Switching to while IFS= read -r s and quoting the output preserves secret values with spaces intact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

vault plugin: secrets do not parse correctly if they contain spaces

1 participant