Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read passphrase from AGE_PASSPHRASE env var if available #346

Closed
wants to merge 1 commit into from

Conversation

Kastilo
Copy link

@Kastilo Kastilo commented Oct 19, 2021

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

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

Especially in a pipeline environment this makes sense to me.

@FiloSottile
Copy link
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!

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.

4 participants