Skip to content

Respect passage env variables for passage.el based age.el operations.#4

Merged
anticomputer merged 2 commits intomainfrom
respect_passage_env
Feb 28, 2025
Merged

Respect passage env variables for passage.el based age.el operations.#4
anticomputer merged 2 commits intomainfrom
respect_passage_env

Conversation

@anticomputer
Copy link
Owner

Passage.el only relies on age.el for find-file operations. As such passage.el should respect passage environment variables specifying identities and recipients independent from age.el configurations for users that prefer to setenv their passage configurations.

This PR introduces this behavior in a way that is buffer local to passage.el buffers only and does not conflict with emacs-wide age.el configurations.

Users will now be able to set PASSAGE_IDENTITIES_FILE, PASSAGE_RECIPIENTS_FILE or PASSAGE_RECIPIENTS through setenv in their passage.el configurations or broader system environments and expect passage.el to respect these without having to rely on ~/.passage/identities and ~/.passage/store/.age_recipients.

Fixes #2

@anticomputer anticomputer merged commit a9795e7 into main Feb 28, 2025
@anticomputer anticomputer mentioned this pull request Feb 28, 2025
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.

A few suggestions

1 participant