feat: add auth0_managed field support for network ACLs (Curated Blocklists - EA) - #1435
Open
harshithRai wants to merge 1 commit into
Open
feat: add auth0_managed field support for network ACLs (Curated Blocklists - EA)#1435harshithRai wants to merge 1 commit into
harshithRai wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1435 +/- ##
=========================================
Coverage ? 80.23%
=========================================
Files ? 163
Lines ? 7533
Branches ? 1663
=========================================
Hits ? 6044
Misses ? 800
Partials ? 689 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
harshithRai
marked this pull request as ready for review
July 27, 2026 20:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔧 Changes
Adds Deploy CLI support for the new
auth0_managedfield on Network ACL rules, part of the Curated Blocklists Early Access feature.The Auth0 Node SDK (
auth0@6.1.0) already types this field onNetworkAclMatch, so it flows through create/update/import automatically. However, the handler maintains its own hand-written validation schema (MatchSchema) withadditionalProperties: false, which rejected any config containingauth0_managedat the validation gate. This change adds the field to that schema so configs using it pass validation.auth0_managedtoMatchSchemainnetworkACLshandler (string array,uniqueItems, validated against the pattern^auth0\.[^.\s]+$). Applies to bothmatchandnot_match.auth0_managedacrossmatch/not_matchand theadvanced-breached-password-detectionentitlement remain enforced by the API (returns HTTP 400/403), not replicated client-side.The field accepts Auth0-managed IP range identifiers such as
auth0.icloud_relay_proxyandauth0.low_reputation. The feature is gated behind thetenant_acl_curated_blocklistsfeature flag and requires theadvanced-breached-password-detectionentitlement.YAML example
Directory (JSON) example
Contents of
./networkACLs/Block iCloud Private Relay Exits-p-4.json:{ "description": "Block iCloud Private Relay Exits", "active": true, "priority": 4, "rule": { "action": { "block": true }, "scope": "tenant", "match": { "auth0_managed": ["auth0.icloud_relay_proxy"] } } }📚 References
🔬 Testing
Added schema-level unit tests in
test/tools/auth0/handlers/networkACLs.test.tsthat run ajv against the exported handler schema:auth0_managedinmatchpasses validationauth0_managedinnot_matchpasses validationauth0_managedvalues not matching^auth0\.[^.\s]+$are rejectedExisting directory and YAML context tests continue to pass, confirming the field round-trips on import/export without changes.
📝 Checklist