1
Use reverse-proxy-verified mTLS as an alternative second factor
Source: dani-garcia/vaultwarden#7873 · opened by @seyfu-t
I was thinking about hardening my internet reachable Vaultwarden instance. I thought about implementing 2FA, the only reasonable approach for my case would be TOTP, but I find TOTP quite annoying. So I thought about mTLS and to my surprise I stumbled upon [this blog post]( so a working setup is possible. But enforcing mTLS would kill a bit of convenience, especially if i want to just quickly login to my vault from a rarely used device. So I propose a middle-ground solution: allowing TOTP to be skipped when the reverse proxy forwards a specific trusted header. This is possible in Caddy and Traefik at the very least. They have verify_if_given and VerifyClientCertIfGiven respectivley in their client certificate settings which allows checking mTLS if provided and other-wise just letting the connection pass. So in short the expected behavior should look like this: • Valid client certificate => Skip the normal 2FA challenge. • No client certificate => Requir…
No pledges yet. Be the first to back this.
Comments
Similar requests
SSO: Option to skip 2FA on login
4 votes · 0 comments
Disable 2FA email setup button if email 2FA is disabled in admin settings
1 vote · 0 comments
Allow to globally disable authenticator-app as 2FA for users
2 votes · 0 comments
Logging into a locked vault w/ only 2FA
2 votes · 0 comments
GitHub Alternitive Suggestion
1 vote · 0 comments
No comments yet.