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

Passage? #10

Open
huyz opened this issue Jan 23, 2025 · 5 comments
Open

Passage? #10

huyz opened this issue Jan 23, 2025 · 5 comments

Comments

@huyz
Copy link

huyz commented Jan 23, 2025

Can the README give sample commands to set up passage with age-plugin-se?

@huyz
Copy link
Author

huyz commented Jan 24, 2025

This is what I seem to have figured out so far. I think this works—I guess there is no need for "armor".

❯ age-plugin-se keygen --access-control=any-biometry-or-passcode -o ~/.age/passage.key-se.age
Public key: age1se1qv3z7fv3puagp039udc5lymlpnta7fjm6c86992xlnpg84kt7glsgv73ksl
❯ mkdir -p ~/.passage/store
❯ <~/.age/passage.key-se.age >>! ~/.passage/identities
❯ <~/.age/passage.key-se.age age-plugin-se recipients >>! ~/.passage/store/.age-recipients
❯ chmod -R go-rwx ~/.passage

@remko
Copy link
Owner

remko commented Jan 24, 2025

@huyz On first sight, that looks correct.

I suggest you also create a regular age key as a backup, and add the recipient to .age-recipients (and re-encrypt whatever you already encrypted). In case your machine breaks, or you lose access, or you want to access your secrets from another machine.

I'll look into adding a tutorial in the README.

@huyz
Copy link
Author

huyz commented Jan 24, 2025

Great suggestion!

@huyz
Copy link
Author

huyz commented Jan 24, 2025

Hmm it seems that in the ~/.passage/identities file, we can't mix-and-match armored regular age keys and age keys protected by age-plugin-se. Either one will work, but not both in the same file—just won't parse

@remko
Copy link
Owner

remko commented Jan 24, 2025

You typically don’t need multiple identities, as these are only used for decryption, and you should have enough with only your age-plugin-se private key set as an identity. As long as you encrypt to multiple recipients.

If you have different .age-recipient files with different combinations of keys, this may be an issue. There’s a ticket (with a PR) for this: FiloSottile/passage#51

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

No branches or pull requests

2 participants