Hi,
On gene:encryption-key-manager:generate --force config values are not properly decrypted and re-encrypted, which results in empty config values in admin.
Copying back old values and running gene:encryption-key-manager:reencrypt-unhandled-core-config-data results:
config_id: 689
scope: default
scope_id: 0
path: recaptcha_frontend/type_recaptcha_v3/public_key
updated_at: 2024-09-24 13:33:43
ciphertext_old: 0:3:wp1yvgIhLL/raLD5/phrd.......................
plaintext:
ciphertext_new: 2:3:soPJ0icPYPNJPfPAuXDR7BJIMCXTfuqXeoGFMg==
Dry run mode, no changes have been made
- ->getCrypt() returns SoduimChachaIetf in vendor/magento/framework/Encryption/Encryptor.php->decrypt()
- which decrypts into empty string
return trim($crypt->decrypt(base64_decode((string)$data)));
- this empty string is encrypted resulting in wrong decryption/re-encryption process
Other table re-encryption is running smoothly, only core_config_data table.
Hi,
On
gene:encryption-key-manager:generate --forceconfig values are not properly decrypted and re-encrypted, which results in empty config values in admin.Copying back old values and running
gene:encryption-key-manager:reencrypt-unhandled-core-config-dataresults:return trim($crypt->decrypt(base64_decode((string)$data)));Other table re-encryption is running smoothly, only core_config_data table.