-
Notifications
You must be signed in to change notification settings - Fork 1
Freedesktop Secrets API provider (libsecret dbus provider) #3
Comments
I hadn't heard of libsecret before -- sounds interesting! How would this work, though? I'm under the impression that using libsecret means that secrets are stored in DBus and not |
In this case, various services can startup and register themselves as providing certain dbus interfaces. That way an application, say So, at runtime on a users' desktop, they are likely to be running a libsecret provider. On gnome, it's So, not too much like what you described. This is just putting another facade on top of the same storage backend, and re-uses the code you have already written for handling fs/encryption/git/gpg stuffs. If you were to use this, an example usage would look like this:
|
Ah, OK. I'm extremely uninformed about how things like DBus work and got confused by the docs showing things that look like paths. When you say "store the secret under Either way, this sounds cool; feel free to PR it! |
I would suggest thinkging less filesystem and more java-style namespacing, hence the
That's just an example implementation detail. Fractal wants to store secret, I'll keep chipping away at wiring up the generated dbus. |
I think it would be nice to be able to run
passrs libsecret
in a systemd user unit and have it provide the Freedesktop Secrets API for various applications to use for secret storage/retrieval.This would give me a nice way of using Fractal, for example, which only uses libsecret to store credentials, without needing to use Gnome-keyring.
The only thing in this area I've found is a python bridge, but that's a bit of a non-starter for me for multiple reasons: https://github.com/mdellweg/pass_secret_service
WIP: I have a branch where I did less than the bare minimum. It autogens some dbus code, but I didn't actually wire anything up: https://github.com/colemickens/passrs/commits/libsecret
Thoughts? It's already implemented as an optional feature (albeit on by default at the moment).
The text was updated successfully, but these errors were encountered: