Connections YAML without enabled_clients is wiping out configured clients.
See original GitHub issuePlease do not report security vulnerabilities here. The Responsible Disclosure Program details the procedure for disclosing security issues.
Thank you in advance for helping us to improve this library! Please read through the template below and answer all relevant questions. Your additional work here is greatly appreciated and will help us respond as quickly as possible. For general support or usage questions, use the Auth0 Community or Auth0 Support. Finally, to avoid duplicates, please search existing Issues before submitting one here.
By submitting an Issue to this repository, you agree to the terms within the Auth0 Code of Conduct.
Description
We like using the CLI for configuring our connections, however we manage the enabled_clients through an automation service. If we do not include enabled_clients in our connection it wipes out the configured clients. If we do include the node, only those included will remain wiping out the rest.
It’s due to this line of code. https://github.com/auth0/auth0-deploy-cli/blob/master/src/context/yaml/handlers/connections.js#L50 Where it defaults to [] if the entry doesn’t exist.
Reproduction
- Create a connection through the CLI without the enabled_clients node
- Add a client through another means (like the admin console)
- re-run the CLI
- Your client no longer is configured.
Environment
- Version used was auth0-deploy-cli@3.5.0
- linux/amd64 (it’s a dockerized environment)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7 (2 by maintainers)

Top Related StackOverflow Question
@shushen
But is there anyway I can set all my clients should be enabled with this connection ?Without listing all the clients in the yaml.
@bastianwegge The issue you’re describing has a healthy discussion in #420. The Auth0 team already thinking about ways forward.
Regarding the original issue, we’ll still need to review if the proposed behavior is aligned with the goals of this project.