passbolt/passbolt_api

utf8_encode() still in use in enygma/yubikey dependency breaking in php8.2

BrettMerrick opened this issue · 2 comments

This pull request against enygma/yubikey is required for php8.2 installs to validate a yubikey when configured for MFA:
enygma/yubikey#33

At present the latest docker passbolt/passbolt:4.3.0-1-ce release uses php8.2 and the result is that accounts with MFA enabled cannot log in but are instead presented with:

[Deprecated (8192) ](javascript:void(0);): Creation of dynamic property Yubikey\Validate::$clientId is deprecated [in /usr/share/php/passbolt/vendor/enygma/yubikey/src/Yubikey/Validate.php, line 145]
[Deprecated (8192) ](javascript:void(0);): Function utf8_encode() is deprecated [in /usr/share/php/passbolt/vendor/enygma/yubikey/src/Yubikey/Validate.php, line 251]
[Deprecated (8192) ](javascript:void(0);): Function utf8_encode() is deprecated [in /usr/share/php/passbolt/vendor/enygma/yubikey/src/Yubikey/Validate.php, line 251]

Hey @BrettMerrick, these are deprecation warnings and shouldn't cause any problems if you have debug mode disabled.

Can you run health-check command(see Troubleshoot Docker) to make sure you've debug mode off? Generally it's turned off by default, but if you've changed it to true you should make it false and MFA should work as expected.

Closing the issue for now. Feel free to reach out to community forum in case you are still facing any problems.