Repository navigation
Conversation
Get-AcceptedDomain returns at most 1,000 domains when -ResultSize is not set. Checks that compare their targets with the accepted domains then read a partial list in tenants with more domains, and can report every domain as covered. The AcceptedDomain request now passes -ResultSize 'Unlimited', like the other list requests in the same table.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Up to standards ✅🟢 Issues
|
|
The ubuntu-latest job fails on 4 tests that fail the same way on other open PRs (for example this run on the feat(ad) branch): FileEncoding on |
📑 Description
Get-MtExo -Request AcceptedDomainrunsGet-AcceptedDomainwithout-ResultSize, so it returns at most 1,000 domains (documented default). In a tenant with more domains, every check that reads the accepted domains works on a partial list: CIS.M365.2.1.4 and CIS.M365.2.1.7 can treat a rule that lists the first 1,000 domains as covering every accepted domain, and the other readers (SPF, DKIM and DMARC checks in the CIS and CISA suites, CIS.M365.6.2.1, ORCA) only see the first 1,000.The entry now passes
-ResultSize 'Unlimited', like the other list requests in the same table.CodeRabbit raised it on #2850. It is older than that PR and shared by all the checks above, so it gets its own PR.
✅ Checks
/powershell/tests/pester.ps1locally.ℹ️ Additional Information
Get-MtExo.Tests.ps1, same pattern as the VipUser one: the request passes-ResultSize 'Unlimited'. The file passes (4 tests).Get-AcceptedDomain -ResultSize Unlimitedand the updatedGet-MtExo -Request AcceptedDomainreturn the same domains as before.pester.ps1run stalls on my machine (see fix(cis): 2.1.4 and 2.1.7 pass rules whose user condition limits the scope #2850), so the last box stays unchecked.Summary by CodeRabbit