Question

How can I use the magento CLI to set an encrypted value to a custom path that was added by a module? At the moment it seems that the CLI will add it as plain text even though the field is defined to have a type of "obscure".

Was it helpful?

Solution

The field should be defined as 'sensitive' so that it's picked up by the default sensitive settings (guidelines here).

If you want to write the sensitive information, you should use the command (guideline here).

Also you can check the results with the command:

bin/magento config:show which displays the values of any encrypted values as a series of asterisks: ******.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top