Skip to content

Strip stdin & gracefully handle interrupt#33

Open
tacerus wants to merge 2 commits into
pmuller:developfrom
tacerus:cli
Open

Strip stdin & gracefully handle interrupt#33
tacerus wants to merge 2 commits into
pmuller:developfrom
tacerus:cli

Conversation

@tacerus

@tacerus tacerus commented May 15, 2026

Copy link
Copy Markdown

fix: strip stdin

When piping tools such as openssl or pwgen into "saltstack-age enc",
the encrypted value would contain a trailing newline, causing unexpected
results in Salt states interpreting the pillar values.

fix: gracefully handle interrupt

When deciding not to proceed with the encryption from stdin, avoid a
traceback upon Ctrl+C.

tacerus added 2 commits May 15, 2026 23:56
When piping tools such as openssl or pwgen into "saltstack-age enc",
the encrypted value would contain a trailing newline, causing unexpected
results in Salt states interpreting the pillar values.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
When deciding not to proceed with the encryption from stdin, avoid a
traceback upon Ctrl+C.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
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.

1 participant