auth0-deploy-cli icon indicating copy to clipboard operation
auth0-deploy-cli copied to clipboard

`EXCLUDED_PROPS` not respecting `clients.client_metadata` when doing a deploy

Open marcossv9 opened this issue 1 year ago • 0 comments

Checklist

  • [X] I have looked into the README and have not found a suitable solution or answer.
  • [X] I have looked into the documentation and have not found a suitable solution or answer.
  • [X] I have searched the issues and have not found a suitable solution or answer.
  • [X] I have upgraded to the latest version of this tool and the issue still persists.
  • [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • [X] I agree to the terms within the Auth0 Code of Conduct.

Description

I have excluded the following resources from being managed by auth0-deploy-cli:

  "AUTH0_DOMAIN": "xxxx.us.auth0.com",
  "AUTH0_CLIENT_ID": "xxxx",
  "AUTH0_ALLOW_DELETE": true,
  "AUTH0_EXCLUDED": [
    "hooks",
    "rules"
  ],
  "AUTH0_KEYWORD_REPLACE_MAPPINGS": {
    ~ALL_THE_MAPPINGS_HERE~
  }
  "EXCLUDED_PROPS": {
    "clients": [
      "client_secret",
      "client_metadata"
    ],
    "connections": [
      "options.client_secret"
    ]
  }

So, the thing is that when I run a deploy the current client_metadata values are deleted. That shouldn't happen if I'm explicitly saying to exclude that to be managed. image

Expectation

client_metadata values should remain unchanged after deployment of tenant-config.

Reproduction

  1. run a dump (clients.client_metadata actually contains valid values in the remote tenant config)
  2. run a deploy

Deploy CLI version

7.24.3

Node version

v18.17.1

marcossv9 avatar Oct 24 '24 20:10 marcossv9