passbolt / passbolt_docker

Get started with Passbolt CE using docker!
https://passbolt.com
GNU Affero General Public License v3.0
876 stars 193 forks source link

Secret length for Google Authenticator MFA #186

Closed token2 closed 1 year ago

token2 commented 1 year ago

Hello, The current version of Passbolt generates the secret key for TOTP MFA (called Google Authenticator) with the length of 2048 bits (410 base32 characters). While this works fine with most apps, for some apps and specifically for hardware tokens this causes issues.

The RFC recommends the seed length to be 160 bits ( RFC 4226 R6). Also, having this value longer does not increase security at all.

Is there a way to modify this length?

Thanks

stripthis commented 1 year ago

Hello,

This is currently not configurable. I've created an issue PB-22019 to make it so via environment variables as follow:

Cheers,

vinpb commented 1 year ago

Howdy,

Thanks for reporting this @token2. Just to let you know that this task (PB-22019) is now done and that it will be shipped with the next release, namely v3.10.0.

Cheers