Can't set up DUO 2FA, an unexpected error has occurred

Hi,

I’m trying to configure DUO 2FA with push for my Vaultwarden 1.33.0 instance. After creating the application in my DUO account and filling out the form in the DUO 2FA setup window in Vaultwarden, I get an error saying “An unexpected error has occurred.”

The log says there is a missing field called secretKey, although I have filled out all three fields in the form.

Jan 27 22:13:28 vaultwarden vaultwarden[130]: [2025-01-27 22:13:28.975][request][INFO] PUT /api/two-factor/duo
Jan 27 22:13:28 vaultwarden vaultwarden[130]: [2025-01-27 22:13:28.976][vaultwarden::api::core::two_factor::duo::_][WARN] Data guard `Json < EnableDuoData >` failed: Parse("{\"masterPasswordHash\":\"[REDACTED]",\"clientId\":\"[REDACTED]",\"clientSecret\":\"[REDACTED]",\"host\":\"[REDACTED].duosecurity.com\"}", Error("missing field `secretKey`", line: 1, column: 199)).
Jan 27 22:13:28 vaultwarden vaultwarden[130]: [2025-01-27 22:13:28.976][response][INFO] (activate_duo_put) PUT /api/two-factor/duo => 422 Unprocessable Entity

I have also checked the Diagnistics page on the Admin site in Vaultwarden and everything looks fine there, with no red “markers”.

Any help would be greatly appreciated!

I have problems with the Duo integration too. Global Duo settings doesn‘t show up in Duo configuration.

No problem in 1.32.7.

It took me a while to find this out. I am setting up Vaultwarden for the first time.

Signed up here for this problem.

Hey there having the same problem since the update to 1.33.0
Any suggestions?

This issue is fixed as of Vaultwarden 1.33.2. I just updated my Vaultwarden and could enable Duo 2FA just fine.

2 Likes

Thanks for the info!