Skip to content

cli: add -d/--decrypt flag - #167

Open
amaanq wants to merge 1 commit into
yaxitech:mainfrom
amaanq:add-decrypt-flag
Open

cli: add -d/--decrypt flag#167
amaanq wants to merge 1 commit into
yaxitech:mainfrom
amaanq:add-decrypt-flag

Conversation

@amaanq

@amaanq amaanq commented Feb 20, 2026

Copy link
Copy Markdown

agenix supports decrypting secrets to stdout but ragenix had no equivalent. Unlike --edit, --decrypt skips rules validation, needing only a path and an identity. Decryption streams through the age decryptor to stdout with no intermediate temp file.

This PR builds upon #161, as it's been stale for a few months. I addressed the review comments and reworked the implementation to stream directly through the age decryptor instead of round-tripping through a temp file.

agenix supports decrypting secrets to stdout but ragenix had no equivalent.
Unlike `--edit`, `--decrypt` skips rules validation, needing only a path and
an identity. Decryption streams through the age decryptor to stdout with
no intermediate temp file.

Co-authored-by: Alexandre Rosenfeld <arsfeld@gmail.com>
@amaanq

amaanq commented Mar 25, 2026

Copy link
Copy Markdown
Author

Friendly ping @veehaitch

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