-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow adding connect-src entries #5293
Allow adding connect-src entries #5293
Conversation
574dee9
to
3e582b3
Compare
Bitwarden allows to use self-hosted forwarded email services. But for this to work you need to add custom URL's to the `connect-src` CSP entry. This commit allows setting this and checks if the URL starts with `https://` else it will abort loading. Fixes dani-garcia#5290 Signed-off-by: BlackDex <black.dex@gmail.com>
3e582b3
to
e59472b
Compare
I wonder how Bitwarden handles this, do we have a more strict CSP than they do? A bit annoying that this is an admin config while the option to configure email forward generator is user level. Would it make sense to allow |
https://domsignal.com/test/lxyiipdn09ju7rzi5vh8oq2pw885ym5i Bitwarden included addy in their CSP |
We also have addy in our CSP. I have not checked this my self btw. |
Judging by their CSP it might not be possible then |
Looking at the cloud version, that does not support self-hosted forwarded instances. There is no easy way to fix this in Self-Hosted Bitwarden besides overwriting the nginx config, which is possible, but not easy. I would not allow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice thanks for the info, LGTM
While this isn't an issue for people who host a small private instance (ex: for their family only) it unnecessarily worsens the CSP for all users. |
And even impossible since we do not know the user when loading the index page, and thus can not filter on that too change headers per user. |
Nice. I hadn't noticed that you couldn't use this from the web vault, because the browser extension just works, but it is nice to be able to use it from the web vault, so that you can use the generator while updating logins in bulk from a regular email address to a self-hosted simple login generated email address. |
Bitwarden allows to use self-hosted forwarded email services. But for this to work you need to add custom URL's to the
connect-src
CSP entry.This commit allows setting this and checks if the URL starts with
https://
else it will abort loading.Fixes #5290