feat: managed connection inclusion
🔧 Changes
This PR introduces the AUTH0_INCLUDED_CONNECTIONS configuration option to the Auth0 Deploy CLI. This allows for a "managed-only" approach to connection management, which is essential for environments where self-service or dynamic connections exist alongside managed infrastructure.
Key Improvements:
- Explicit Inclusion: Users can now define exactly which connections the Deploy CLI is allowed to touch.
- Self-Service SSO Support: Prevents the CLI from accidentally deleting or modifying connections created by customers via self-service portals.
-
Operation Scoping: This setting filters connections across all operations:
exportandimport.
JSON Format
{
"AUTH0_INCLUDED_CONNECTIONS": [
"github",
"google-oauth2",
"Username-Password-Authentication"
]
}
Environment Variable
export AUTH0_INCLUDED_CONNECTIONS='["github","google-oauth2"]'
📚 References
Closes https://github.com/auth0/auth0-deploy-cli/issues/1163 Enterprise Connections
🔬 Testing
Unit test added E2E added
📝 Checklist
- [x] All new/changed/fixed functionality is covered by tests (or N/A)
- [x] I have added documentation for all new/changed functionality (or N/A)
Codecov Report
:x: Patch coverage is 92.85714% with 2 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 80.41%. Comparing base (0b45726) to head (21fcdba).
| Files with missing lines | Patch % | Lines |
|---|---|---|
| src/tools/auth0/schema.ts | 50.00% | 1 Missing and 1 partial :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## master #1242 +/- ##
==========================================
+ Coverage 80.37% 80.41% +0.04%
==========================================
Files 146 146
Lines 5777 5800 +23
Branches 1177 1185 +8
==========================================
+ Hits 4643 4664 +21
- Misses 645 646 +1
- Partials 489 490 +1
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
Please mark it ready to review once the unit tests pass