keepassxc-browser icon indicating copy to clipboard operation
keepassxc-browser copied to clipboard

make it possible to autoprovision settings for KeePassXC-Browser add-on

Open tuxcrafter opened this issue 4 years ago • 2 comments

KeePassXC-Browser 1.7.6 KeePassXC 2.6.4

  1. Please make it possible to fully auto provision the settings for the KeePassXC-Browser add-on from a system-wide json/ini file.

Example let the plugin do a lookup at: /usr/lib/firefox/native-messaging-hosts/org.keepassxc.keepassxc_browser_settings.json? and import any changed settings from this file. This way I can mange organization wide settings

  1. Please make it possible to also import a JSON file to automate the creation of the database connection from Firefox (with for example firefox01) and Chrome (connection name: chrome01) with maybe predefined keys when needed.

I will donate an other 150 euro if the above features get implemented in the next KeePassXC-Browser Chrome and Firefox release.

Jelle de Jong

tuxcrafter avatar Feb 18 '21 17:02 tuxcrafter

For this we should use https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/storage (requires a new permission).

The biggest problem implementing this one would be what default path should the plugin read as default on each OS? This should be configurable which already makes the feature a bit complicated if anyone wants this to be fully automatic. Also, I can imagine a lot of users don't want the extension to access local disk at all, which already makes this kind of feature harder to do if the option is disabled by default. But, this is doable if the setting is totally disabled by default and the path has to be configured by the user(s).

Also, should the extension update the settings from that file with each browser restart if the content is changed?

varjolintu avatar Feb 18 '21 19:02 varjolintu

Point 2: at this point there is no support for importing/exporting any of the database connection keys. Automating the connection would mean we'd have to implement a way to put connection key to KeePassXC database manually (yes, keys are stored in the encrypted database, not in the application itself), and adding support for importing encryption keys to the browser extension.

varjolintu avatar Feb 20 '21 06:02 varjolintu