Skip to content

Avoid newlines when writing string secrets#1

Open
JohnLZeller wants to merge 1 commit intoGeoffreyBooth:masterfrom
JohnLZeller:patch-1
Open

Avoid newlines when writing string secrets#1
JohnLZeller wants to merge 1 commit intoGeoffreyBooth:masterfrom
JohnLZeller:patch-1

Conversation

@JohnLZeller
Copy link
Copy Markdown

First of all, thanks for writing this fork! I was literally about to do a number of these things to get the dev container working again, but then I found yours :)

This PR fixes an issue I noticed with string secrets. They are being stored with a newline following the string, like when we store bar, it comes back as bar\n

Comment thread run.sh
if [ $type = 'object' ] || [ $type = 'array' ]; then
echo "$value" | vault write "${path}" -
else
echo "$value" | vault write "${path}" value=-
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Shouldn’t we also update the line above?

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.

2 participants