You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Given Auth0 tenant with duplicate client names
When running a0deploy export --format=directory for that tenant
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
The text was updated successfully, but these errors were encountered:
willvedd
changed the title
No warning or error when exporting tenant with duplicate client names and format=directory
Warn when resources have same names during import
Mar 24, 2023
Thanks for the suggestion, I agree that a warning or error would be beneficial in these cases. A core assumption of the Deploy CLI is that all resources have unique names for a single tenant, it is how the tenant-agnostic behavior is enabled. It is my opinion that resources with the same name is an anti-pattern for tenant management, but perhaps your use case is reasonable. For now, I advise to have separate names for your clients but will keep this request open because it is still a valid pain point that could be addressed.
I've just hit this migrating a test domain to a prod one. The Management API and UX allow me to create as many clients/m2m clients etc. as I want with the same name. Obviously the client_id is the unique element.
At the creation stage these unique naming elements should be enforced.
I don't understand why this fails and why an export and import aren't EXACTLY the same. The export doesn't contain any secrets or client_ids. Why was that decision made as the domain is unique etc.
Checklist
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
a0deploy export --format=directory
for that tenantDeploy CLI version
7.17.0
Node version
16.14.0
The text was updated successfully, but these errors were encountered: