Skip to content

Read passphrase from AGE_PASSPHRASE env var if available#346

Closed
KasteloShep wants to merge 1 commit into
FiloSottile:mainfrom
KasteloShep:main
Closed

Read passphrase from AGE_PASSPHRASE env var if available#346
KasteloShep wants to merge 1 commit into
FiloSottile:mainfrom
KasteloShep:main

Conversation

@KasteloShep
Copy link
Copy Markdown

From jjlin's own forked commit of age that allows env var to supply the passphrase for automated encryption processes

https: //github.com/jjlin/age/commit/2afaf7fda78117f1e0b784a8c41f9dea15028316
Co-Authored-By: Jeremy Lin 203380+jjlin@users.noreply.github.com

From jjlin's own forked commit of age that allows env var to supply the passphrase for automated encryption processes

https: //github.com/jjlin/age/commit/2afaf7fda78117f1e0b784a8c41f9dea15028316
Co-Authored-By: Jeremy Lin <203380+jjlin@users.noreply.github.com>
@jjlin
Copy link
Copy Markdown

jjlin commented Oct 19, 2021

I didn't send a PR for this because @FiloSottile seems undecided on whether he wants to add this capability. And if it were really to be implemented, there are a few other places that should read from env var, like the decryption paths.

@tbugfinder
Copy link
Copy Markdown

Especially in a pipeline environment this makes sense to me.

@FiloSottile
Copy link
Copy Markdown
Owner

I've decided we won't provide alternative password input methods in cmd/age, but we'll ship them all in a separate plugin, like sshpass. I'll make sure to support an environment variable there, and I'll update discussion #256 when it's ready. See #256 (comment) for a bit more details. Thank you!

@mirql
Copy link
Copy Markdown

mirql commented Apr 1, 2025

also ill put it here, in case anyone searching also

using "expect"

#520 (comment)

FiloSottile added a commit that referenced this pull request Dec 24, 2025
…ption

Fixes #603
Closes #641
Closes #520
Updates #256
Updates #182
Updates #257
Updates #275
Updates #346
Updates #386
Updates #445
Updates #590
Updates #572
@FiloSottile
Copy link
Copy Markdown
Owner

The new batchpass plugin handles non-interactive passphrase encryption. See #256 (comment) for usage and a warning.

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.

5 participants