Skip to content

Warn when resources have same names during import #771

Open
@darcien

Description

@darcien

Checklist

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

Description

TL;DR exporting tenant that has multiple clients with the same name with a0deploy export --format=directory will merge the config into a single JSON file without any warnings.

I've seen this issue #98 that mention clients name must be unique.

But when exporting as directory, there was no warning and the CLI happily merged the clients with the same name name into one JSON file.

I just noticed this issue after doing a0deploy import and it failed to update the client connections.
In the meantime, I can update the tenant to not use duplicate names.

Expectation

It would be nice if the a0deploy export --format=directory command logs a warning or just error out when duplicate client names are found.

Or this behavior/limitation could be mentioned in the docs.

Reproduction

  1. Given Auth0 tenant with duplicate client names
  2. When running a0deploy export --format=directory for that tenant
  3. It should warn or error telling the user that duplicate client names are found and is invalid.

Deploy CLI version

7.17.0

Node version

16.14.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions