keepassxreboot / keepassxc-browser

KeePassXC Browser Extension
GNU General Public License v3.0
1.68k stars 172 forks source link

[Request] Connect KeePassXC-Browser to Docker Image #2271

Open Querzion opened 1 week ago

Querzion commented 1 week ago

I have just been using a local install for years, now but I tend to install and delete VM's very often, it's come to the point off irritation that I can't just connect directly to my unRaid docker image (that has the latest KeePassXC installed), that I started to look up how to install Brave & KeePassXC into the docker. I haven't found any guides, so I suppose it's not possible atm. (To connect the extension to a docker image. I think It has to be an official image though since it becomes isolated. "/ )

varjolintu commented 1 week ago

FYI: This is something I have not investigated or even tried. So cannot really help here. Maybe someone else has?

Related: #394.

droidmonkey commented 1 week ago

Running gui applications in docker containers really defeats the purpose of docker since you have to basically deisolate to make them work properly. You are much better off using a proper isolation technique like apparmor, snap, flatpak, etc. Docker is not a same-system isolation technique, it is meant for self contained services that expose a defined interface (ideally via tcp/ip). Wayland might be a controlled way to expose gui in docker, but certainly not X11.

If you really want to talk to a host-based keepassxc from inside a container, then you need to share the native messaging socket that keepassxc creates. You also need to ensure keepassxc-proxy is installed within the container and write the appropriate native messaging configuration file for Firefox to use.