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

Add support for the kwallet keyring #27

Merged
merged 2 commits into from
Oct 5, 2015
Merged

Add support for the kwallet keyring #27

merged 2 commits into from
Oct 5, 2015

Conversation

vektah
Copy link
Contributor

@vektah vektah commented Oct 1, 2015

Adds support for the KDE wallet. CLI/Gnome would require their own backends.

When first creating the wallet it will prompt for a new password:
new-wallet

If the wallet is not open it will prompt for the password:
open-wallet

Unlike the OSX keyring the KDE wallet 'entries' are purely key value stores. To fit the entire Item I added a second layer of json encoding.

I'm not sure of the best way to automatically test this. I guess I could stub the dbus connection or the wrapper?

see #23

@lox
Copy link
Collaborator

lox commented Oct 1, 2015

Nice one @vektah, Godeps need updating.

@lox
Copy link
Collaborator

lox commented Oct 4, 2015

Mind rebasing master and updating Godeps?

@lox
Copy link
Collaborator

lox commented Oct 4, 2015

So just to clarify, Kwallet doesn't have libsecret support? That would be the vastly better option IMO:
https://developer.gnome.org/libsecret/unstable/

@vektah vektah force-pushed the add-kwallet-support branch from 101a1e2 to f2e2a99 Compare October 5, 2015 00:54
@vektah vektah force-pushed the add-kwallet-support branch from f2e2a99 to a9d6bdf Compare October 5, 2015 01:06
@vektah
Copy link
Contributor Author

vektah commented Oct 5, 2015

I've rebased and added godeps. The gitignore for vendor threw me off.

https://github.com/tmc/keyring/blob/master/keyring_linux.go uses the libsecret dbus api via org.freedesktop.Secret.Service but it didn't prompt for a wallet password at all and ended up being stored somewhere else.

lox added a commit that referenced this pull request Oct 5, 2015
Add support for the kwallet keyring
@lox lox merged commit 27a0956 into master Oct 5, 2015
@lox lox deleted the add-kwallet-support branch October 5, 2015 01:23
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.

2 participants