Deploy CLI Export Causes SMTP User to Output as ##SMTP_USER##

Overview

When exporting tenant configuration using the Deploy-CLI. The SMTP credentials output into the YAML as

credentials:

smtp_host: smtp.server.com

smtp_port: 587

smtp_user: '##SMTP_USER##'

smtp_pass: '##SMTP_PASS##'

When importing this into a tenant, the string ##SMTP_USER## is saved as the SMTP credentials and email fails to work.

Applies To

  • Deploy CLI

Solution

This is a change that was introduced in version 8.9.0 and these credentials are now masked in the YAML output. The config.json file should now store this information and keyword replacement mapping should be used to swap out the placeholders on import.

{
    "AUTH0_DOMAIN": "DOMAIN",
    "AUTH0_CLIENT_ID": "CLIENT_ID",
    ...
    "AUTH0_KEYWORD_REPLACE_MAPPINGS": {
        "SMTP_USER": "YOUR-SMTP-USER-ACCOUNT"
        ...
    }
}

Related References