TLS mutual authentication #2267
Replies: 7 comments 10 replies
-
I do not think we will implement this for several reasons.
If you still want something like this, i suggest to use a reverse proxy which has this functionality, like Caddy, Nginx, Haproxy, traefik etc.. |
Beta Was this translation helpful? Give feedback.
-
I was looking into this myself, but for very different reasons. I agree with @BlackDex - if this breaks the clients, then there's no point in implementing this. You're best bet is to use the owasp/modsecurity-crs;nginx image to front vaultwarden so you can have WAF protecting your public facing install. Or just keep your vaultwarden behind a VPN. |
Beta Was this translation helpful? Give feedback.
-
One solution to improve security could be to use VPN on demand (on iOS). It is possible with Tailscale though not perfect. |
Beta Was this translation helpful? Give feedback.
-
@gtaws I think that there would actually be a point in implementing it. I'm running a simple Azure Container App (ACA) without VNET integration. A custom domain is used via Cloudflare, however the Vaultwarden installation is also still available via the standard https://*.azurecontainerapps.io. If we were to have mTLS we could do something similar like this: Authenticated Origin Pulls This would help securing Vaultwarden installations behind Cloudflare, by making sure only Cloudflare can access the Vaultwarden instance before making it accessible to the internet. |
Beta Was this translation helpful? Give feedback.
-
It looks like mutual TLS has been introduced in the android app for bitwarden: However it is hidden behind the feature flag. Since mutual tls in many cases is implemented on load balancer/proxy level it sounds that for vaultwarden it is just a matter of returning the |
Beta Was this translation helpful? Give feedback.
-
If I'm correct Rocket doesn't support mTLS IN v0.5, so that will not going to happen. |
Beta Was this translation helpful? Give feedback.
-
As long as the bitwarden app can pass the If you start a thought angrily in your head wondering why bother with mTLS, just stop. That ship sailed. Either it's going to get done, or not. But it's an incredible feature that should become more widespread and standard. Based on what @nut-neek said, it sounds like a Vaultwarden server setting might be needed to interact with that feature flag in the app. And for what it's worth, only the flag is in that official build. Next build in the app, it will have the full mTLS suite in the experimental as well. bitwarden/android#4486 (comment) |
Beta Was this translation helpful? Give feedback.
-
it's dangerous to deploy vaultwarden on internet, although it supports TLS, it is unilateral authentication,everyone could click 'continue' button in browser to pass the https errors to attack vaultwarden(such as brute force attack).
if vaultwarden could support TLS mutual authentication, then only the one who has the client certificate in browser or other clients could access vaultwarden on internet, it will be security more and more.
so, is there a plan to support TLS mutual authentication?
Beta Was this translation helpful? Give feedback.
All reactions