bitw icon indicating copy to clipboard operation
bitw copied to clipboard

Feature request: Store passwords

Open Mic92 opened this issue 4 years ago • 5 comments

Right now the DBUS api does not allow to store secrets:

(gnome-calendar:15788): e-data-server-ui-WARNING **: 09:12:46.451: credentials_prompter_store_credentials_cb: Failed to store source credentials: Object does not implement the interface

Mic92 avatar May 19 '20 08:05 Mic92

Sure. I only implemented the bare minimum to get queries over dbus working.

mvdan avatar May 19 '20 09:05 mvdan

If this would be implemented using synchronous API calls it should be comparable simple. With offline support this becomes a lot harder.

Mic92 avatar May 19 '20 10:05 Mic92

The bitwarden APIs are always the source of truth. The dbus daemon mode might gain the ability to sync with the server automatically in the future. I don't think you need to worry about an offline mode.

mvdan avatar May 19 '20 10:05 mvdan

The commit above adds support for encrypting data, so the crypto part is now done. This issue would just need to wire up the logic: some way to update a secret (probably via d-bus), and then some way to sync that with the API server.

mvdan avatar Nov 27 '20 10:11 mvdan

some way to update a secret (probably via d-bus)

Assuming the org.freedesktop.secrets interface, that would be org.freedesktop.Secret.Collection.CreateItem() and maybe org.freedesktop.Secret.Item.SetSecret(). Most client apps would be using libsecret to talk to org.freedesktop.secrets, so you should check which DBus methods it uses.

michaelk83 avatar May 03 '21 22:05 michaelk83