Replies: 8 comments 6 replies
-
I don't see a 404 in the logs. |
Beta Was this translation helpful? Give feedback.
-
I disabled Cloudflare and made sure my browser isn't connecting through Cloudflare. The issue still occurs. As shown in the troubleshooting data the cause seems to be an "InvalidRPOrigin", but I couldn't find a setting in the admin panel to set the RPOrigin. The rpid sent in the webauthn challenge is the domain that I'm accessing the web vault through though. And I had a typo in the issue above, it should be error 400, not 404. |
Beta Was this translation helpful? Give feedback.
-
Well that config is linked to the DOMAIN variable. Could you try to turn on log_level=debug? And check the logs there? |
Beta Was this translation helpful? Give feedback.
-
Just to be sure. |
Beta Was this translation helpful? Give feedback.
-
Okay, enabling the debug logging helped track down the issue. Thanks for the help! |
Beta Was this translation helpful? Give feedback.
-
Ok, good to know, we may need to add some filtering there, or some validation. |
Beta Was this translation helpful? Give feedback.
-
I was able to track down the cause of this issue to the following line in webauth.rs: So I have a couple of questions/requests:
FYI, my config used to work with the old Fido2 API. I am running my instance on Docker, with Rocket bound to port 80, and my reverse proxy doing HTTPS offloading. I also run Vaultwarden under a subpath (URL=https://foobar.example.com/vaultwarden and not URL=https://vaultwarden.foobar.example.com). |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm using Vaultwarden since some month. Setting up a webauthn 2FA fails since a couple of weeks with the cause: InvalidRPOrigin. |
Beta Was this translation helpful? Give feedback.
-
Subject of the issue
On the new v1.22.0 image, registering a new Webauthn key does not work.
I am using a Yubikey, and when registering the put request to
/api/two-factor/webauthn
fails with a404400 error.{"ErrorModel":{"Message":"Webauthn","Object":"error"},"Message":"","Object":"error","ValidationErrors":{"":["Webauthn"]},"error":"","error_description":""}
Deployment environment
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: WEBSOCKET_ENABLED
Steps to reproduce
Register a key with Webauthn. This results in a
404400 error in the network log, and an error popping up in the web vault.Expected behaviour
The key should be registered.
Actual behaviour
There was an error message.
Troubleshooting data
Beta Was this translation helpful? Give feedback.
All reactions