Open nobwyn opened 2 years ago
Snap applications are sandboxed. Not sure if there is a way to get the certificates into the snap container.
According to the documentation, the path(s) can be whitelisted, like for example:
name: foo
...
plugs:
dot-config-foo:
interface: personal-files
read:
- $HOME/.config/foo
apps:
foo:
plugs:
- dot-config-foo
...
So in my understanding it could be possible to give an access to $HOME/.pki/nssdb
. But as I've never build a snap myself - it's just a guess...
Steps To Reproduce
Trying to login to self-hosted Bitwarden instance (with self-signed certificate) from the Desktop App installed as Snap.
Expected Result
Login should work
Actual Result
Login does not work and "Failed to fetch" error message is displayed.
Screenshots or Videos
No response
Additional Context
I have imported own intermediate CA certificate as described by the documentation:
This works when the application is installed "natively" - by installing the
Bitwarden-amd64.deb
from the website, but does not work when installed as Snap (snap install bitwarden
).Can it be that Snap is missing the rights to read the NSS Shared DB?
My guess is that
home
-interface allows the application to access non-hidden files only, while NSS Shared DB is located under$HOME/.pki/nssdb
and would requirepersonal-files
-interface configuration?Operating System
Linux
Operating System Version
Ubuntu 22.10
Installation method
Snap
Build Version
2022.10.1
Issue Tracking Info