Skip to content

core_config_data is not properly decrypted/encrypted. #61

@edgars-bb

Description

@edgars-bb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions