Skip to content

Latest v7.2.1 outputting warnings about client_metadata #373

@gparascandolo

Description

@gparascandolo

Description

When trying to import tenant.yaml file with Auth0 Deploy CLI v7.2.1, we are encountering warnings about client_metadata for "undefined"

The clients still update after the warnings appear, as seen in the example logs below(with debug flag), but it is raising some concerns:

2021-08-23T21:15:21.278Z - warn: Detected that the client_metadata of the following undefined should be emptied. Doing so may be destructive.
You can enable deletes by setting 'AUTH0_ALLOW_DELETE' to true in the config
{"name":"Test Application","client_id":"siSPR......U1Dh"}
2021-08-23T21:15:21.280Z - debug: Start processChanges for clients [delete:0] [update:1], [create:0], [conflicts:0]
2021-08-23T21:15:21.624Z - debug: Stripping "Test Application" read-only fields ["jwt_configuration.secret_encoded","client_id"]
2021-08-23T21:15:23.531Z - info: Updated [clients]: {"name":"Test Application","client_id":"siSPR......U1Dh"}

The warning appears whether "AUTH0_ALLOW_DELETE" is set to true or false in the config file

Our config.json contains the following:

{
  "AUTH0_DOMAIN": "REDACTED.us.auth0.com",
  "AUTH0_CLIENT_ID": "SJZ......w7",
  "AUTH0_ALLOW_DELETE": true,
  "EXCLUDED_PROPS": {
    "clients": ["client_secret"],
    "connections": ["options.client_secret"]
  }
}

Reproduction

  1. a0deploy export config with YAML format (a0deploy export -f yaml -o output/to/directory/. --config_file path/to/config.json)
  2. a0deploy import the same exported tenant.yaml + config (a0deploy import --input_file path/to/tenant.yaml --config_file path/to/config.json --debug)

This warning is appearing consistently

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions