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 the keyring approach to encrypting the secrets DB #25

Open
RichardBronosky opened this issue Jan 12, 2019 · 4 comments
Open

Use the keyring approach to encrypting the secrets DB #25

RichardBronosky opened this issue Jan 12, 2019 · 4 comments
Assignees
Milestone

Comments

@RichardBronosky
Copy link

This is Python, but I'm sure something similar probably exists for golang. https://pypi.org/project/keyring/#what-is-python-keyring-lib

It is used in https:/jjfalling/TOTP-Generator and it's pretty good, except that you have to choose to either be constantly prompted to "Allow" Python to access your keychain, or to "Always Allow" Python. And the latter means that after that, anything Python can access your keychain if it is unlocked. Not good. Compiling a binary solves this.

@endorama
Copy link

Hello, as I shared your concern I created an authenticator which store secrets in the keyring: https:/endorama/two-factor-authenticator

A bit of shameless self promotion, but obviously the code is fairly simple and could be ported to this project easily :)

Currently supports Gnome Keyring and MacOSX Keychain (mainly due to testing availability), but the library on which is based has wider support (including Windows, KDE, file and even pass).

@figadore
Copy link

Another easy-to-use go module to do cross-platform keychain interactions is https:/zalando/go-keyring

@pcarrier
Copy link
Owner

Hey thanks for the suggestion. I'd suggest putting this into a different binary as this would fall a bit too far on the side of "bloat" for the small portable tool gauth is today, but more than happy to host it in this repo and make their maintainers contributors if they'd like to share the tree and README; PRs welcome! Otherwise feel free to PR this README pointing to an alternative or fork explaining the benefits, we certainly wouldn't want to misguide toward overly simplistic solutions when people already trust a solid secret store.

@pcarrier pcarrier self-assigned this Jan 29, 2021
@pcarrier
Copy link
Owner

pcarrier commented Jan 29, 2021

Oh nevermind go-keyring does not look like a portability mess, worth exploring. Don't know if I'll have any time to think through what the UX should be or study the impact on binary size etc. This could be worth a v2 that lets you manipulate the store interactively (through subcommands and/or its own prompt).

@pcarrier pcarrier reopened this Jan 29, 2021
@pcarrier pcarrier added this to the v2 milestone Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants