Replies: 1 comment
|
This is intentional. The preferred key management strategy is documented at https://pkg.go.dev/filippo.io/age#hdr-Key_management. Encryption keys are different from e.g. SSH keys in that there is not much value in having the same key across applications and services, because there is no identity to bind. Encryption keys also can't be rotated (with respect to existing files) so it's important to be able to manage keys with different purposes and lifetimes separately. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
@
Version
age v1.3.1 (Windows binary).
Problem
On Unix, the community convention is to store the identity file at
~/.age/key.txt(or similar under$XDG_CONFIG_HOME). On Windows there is no analogous guidance in the README or man page, so users invent their own conventions — I have seen%USERPROFILE%\.age\,%APPDATA%\age\,%LOCALAPPDATA%\age\, and ad-hoc paths inside project folders in the wild.This matters because:
-i <path>— so the lack of a documented convention has zero code cost to fix; it is a docs-only ask.Suggestion
Add a short section to the README (or the
age(1)man page) recommending:%USERPROFILE%\.age\key.txtas the mirror of the Unix convention, OR%APPDATA%\age\key.txtif you prefer the Known Folder route (matches gpg4win, git-credential-manager)Either is fine — the value is picking one so ecosystem tools can rely on it. If age eventually grows a default-identity lookup (analogous to
ssh -ifallbacks), the same path would be the natural default.Alternatives considered
Happy to open a docs PR if the maintainers pick a path.
@
All reactions