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

Use gpg to encrypt secrets #3

Open
sunng87 opened this issue Jan 3, 2023 · 4 comments
Open

Use gpg to encrypt secrets #3

sunng87 opened this issue Jan 3, 2023 · 4 comments

Comments

@sunng87
Copy link
Contributor

sunng87 commented Jan 3, 2023

Instead of stored plain-text secrets in filesystems, a handy solution is to encrypt it with gpg.

@ylxdzsw
Copy link
Owner

ylxdzsw commented Jan 3, 2023

Do you have a more concret plan? Linking to GPG seems to be hard and calling the commandline interface feels fragile. Further, if we use asymmetric encryption, the user needs to choose a keyfile to use and it may be protected by a passphrase. If we use the symmetric encryption, we need to find a way to ask for the key. The only sane method I can think of (and used by gnome-keyring) is to use a pam module to get user's login password and derives the AES key from it, which I feels too complex.

@sunng87
Copy link
Contributor Author

sunng87 commented Jan 4, 2023

gpg seems to be the only reliable and viable asymmetric encryption solution on desktop. However, because gpg pinentry uses libsecret to remember its password, it might has cyclic dependency between gpg and dssd.

I checked some other implementations of libsecret, one solution is to use a pre-configured master password for symmetric encryption.

Let's keep this open until we come up with a good solution.

Repository owner deleted a comment Jan 1, 2024
@ivoshm
Copy link

ivoshm commented Jan 10, 2024

I think it would be a great idea to integrate PASS (https://www.passwordstore.org/) - it solves all the GPG "magic" and integration would be quite simple.

Repository owner deleted a comment from karandakave Feb 2, 2024
@github-staff github-staff deleted a comment Apr 26, 2024
@TheAifam5
Copy link

Hey, I think @sunng87 and @ivoshm might find that interesting:

https://github.com/mdellweg/pass_secret_service

I choose dssd, because is simple and I wanted to have a Secret Service daemon just only for apps that require it (Discord or 1Password for example).

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

4 participants