diff --git a/src/tools/auth0/handlers/networkACLs.ts b/src/tools/auth0/handlers/networkACLs.ts index 0090679e4..fc35d84b0 100644 --- a/src/tools/auth0/handlers/networkACLs.ts +++ b/src/tools/auth0/handlers/networkACLs.ts @@ -137,6 +137,27 @@ const MatchSchema = { minItems: 1, maxItems: 10, }, + hostnames: { + type: 'array', + items: { + type: 'string', + }, + uniqueItems: true, + }, + connecting_ipv4_cidrs: { + type: 'array', + items: { + type: 'string', + }, + uniqueItems: true, + }, + connecting_ipv6_cidrs: { + type: 'array', + items: { + type: 'string', + }, + uniqueItems: true, + }, }, additionalProperties: false, }; diff --git a/test/tools/auth0/handlers/networkACLs.test.ts b/test/tools/auth0/handlers/networkACLs.test.ts index 9367af987..68949475d 100644 --- a/test/tools/auth0/handlers/networkACLs.test.ts +++ b/test/tools/auth0/handlers/networkACLs.test.ts @@ -23,6 +23,9 @@ const sampleNetworkACL = { scope: 'tenant', match: { asns: [12345], + hostnames: ['mytenant.auth0.com'], + connecting_ipv4_cidrs: ['10.0.0.0/8'], + connecting_ipv6_cidrs: ['2001:db8::/32'], }, }, }; @@ -52,6 +55,9 @@ describe('#networkACLs handler', () => { scope: 'tenant', match: { asns: [12345], + hostnames: ['mytenant.auth0.com'], + connecting_ipv4_cidrs: ['10.0.0.0/8'], + connecting_ipv6_cidrs: ['2001:db8::/32'], }, }, },