Skip to content

Conversation

@AlexRapatij
Copy link
Contributor

@AlexRapatij AlexRapatij commented Jul 31, 2024

As you know there is possibility to override Adobe Commerce configuration settings using environment variables. In some cases there is presented encoded variables.
This CLI command has been created specially for those cases. The command DOES NOT rewrite values in cloud console, it just shows regenerated values which dev has to update manually there.

The CLI command

bin/magento gene:encryption-key-manager:get-cloud-keys

The CLI command option to show decrypted value show-decrypted

bin/magento gene:encryption-key-manager:get-cloud-keys --show-decrypted

Examples

No old encrypted env vars has been founded

$ bin/magento gene:encryption-key-manager:get-cloud-keys
There is no old encrypted environment variables found

There is some

$ bin/magento gene:encryption-key-manager:get-cloud-keys --show-decrypted
The CLI command doesn't rewrite values. You have to update them manually in cloud console!
Rows count: 2
##################################################################
Name: CONFIG__DEFAULT__SOME_KEY
Dectypted value: dectypted_value
Old Encrypted Value: 0:3:AAA1
New Encrypted Value: 1:3:BBB1
##################################################################
Name: CONFIG__DEFAULT__SOME_KEY_2
Dectypted value: dectypted_value_2
Old Encrypted Value: 0:3:AAA2
New Encrypted Value: 1:3:BBB2

@AlexRapatij AlexRapatij force-pushed the feature/get-cloud-env-keys branch from e12ad5e to c860078 Compare July 31, 2024 08:51
@AlexRapatij AlexRapatij requested a review from qrz-io July 31, 2024 09:14
@AlexRapatij AlexRapatij merged commit 37bc5d7 into master Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants