TenantAtlas/app/Services/Intune
ahmido ef41c9193a feat: add Intune RBAC baseline compare support (#156)
## Summary
- add Intune RBAC Role Definition baseline scope support, capture references, compare classification, findings evidence, and landing/detail UI labels
- keep Intune Role Assignments explicitly excluded from baseline compare scope, summaries, findings, and restore messaging
- add focused Pest coverage for baseline scope selection, capture, compare behavior, recurrence, isolation, findings rendering, inventory anchoring, and RBAC summaries

## Verification
- `vendor/bin/sail bin pint --dirty --format agent`
- `vendor/bin/sail artisan test --compact tests/Unit/Inventory/InventoryPolicyTypeMetaBaselineSupportTest.php tests/Unit/Baselines/BaselinePolicyVersionResolverTest.php tests/Unit/Baselines/BaselineScopeTest.php tests/Unit/IntuneRoleDefinitionNormalizerTest.php tests/Feature/Baselines/BaselineCaptureRbacRoleDefinitionsTest.php tests/Feature/Baselines/BaselineCompareRbacRoleDefinitionsTest.php tests/Feature/Baselines/BaselineCompareDriftEvidenceContractRbacTest.php tests/Feature/Baselines/BaselineCompareCoverageGuardTest.php tests/Feature/Baselines/BaselineCompareCrossTenantMatchTest.php tests/Feature/Baselines/BaselineCompareFindingRecurrenceKeyTest.php tests/Feature/Baselines/BaselineCompareWhyNoFindingsReasonCodeTest.php tests/Feature/Filament/BaselineProfileFoundationScopeTest.php tests/Feature/Filament/BaselineSnapshotRbacRoleDefinitionsTest.php tests/Feature/Filament/BaselineCompareLandingRbacLabelsTest.php tests/Feature/Filament/FindingViewRbacEvidenceTest.php tests/Feature/Findings/FindingRecurrenceTest.php tests/Feature/Findings/DriftStaleAutoResolveTest.php tests/Feature/Inventory/InventorySyncButtonTest.php tests/Feature/Inventory/InventorySyncServiceTest.php tests/Feature/RunAuthorizationTenantIsolationTest.php`
- result: `71 passed (467 assertions)`

## Filament / Platform Notes
- Livewire compliance: unchanged and compatible with Livewire v4.0+
- Provider registration: no panel/provider changes; `bootstrap/providers.php` remains the registration location
- Global search: no new globally searchable resource added; existing global search behavior is unchanged
- Destructive actions: no new destructive actions introduced; existing confirmed actions remain unchanged
- Assets: no new Filament assets introduced; deploy asset handling remains unchanged, including `php artisan filament:assets`
- Testing plan covered: baseline profile scope, snapshot detail, compare job, findings recurrence, findings detail, compare landing labels, inventory sync anchoring, and tenant isolation

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #156
2026-03-09 18:49:20 +00:00
..
AppProtectionPolicyNormalizer.php feat/009-app-protection-policy (#11) 2025-12-29 16:11:50 +00:00
AuditLogger.php SCOPE-001: DB-level workspace isolation via workspace_id (#112) 2026-02-14 22:34:02 +00:00
BackupService.php feat: add Intune RBAC inventory and backup support (#155) 2026-03-09 10:40:51 +00:00
CompliancePolicyNormalizer.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
ConfigurationPolicyTemplateResolver.php Spec 095: Graph contracts registry completeness + registry-backed call sites (#114) 2026-02-15 15:02:27 +00:00
DefaultPolicyNormalizer.php feat/017-policy-types-mam-endpoint-security-baselines (#23) 2026-01-03 02:06:35 +00:00
DeviceConfigurationPolicyNormalizer.php feat(007): device config & compliance snapshot/restore improvements (#9) 2025-12-29 12:46:20 +00:00
EnrollmentAutopilotPolicyNormalizer.php feat/027-enrollment-config-subtypes (#31) 2026-01-04 13:25:15 +00:00
FoundationMappingService.php feat(spec-088): remove tenant graphOptions legacy path (#105) 2026-02-12 10:14:44 +00:00
FoundationSnapshotService.php feat: add Intune RBAC inventory and backup support (#155) 2026-03-09 10:40:51 +00:00
GroupPolicyConfigurationNormalizer.php feat(010): Administrative Templates – restore from PolicyVersion + version visibility (#13) 2025-12-30 01:50:05 +00:00
IntuneRoleAssignmentNormalizer.php feat: add Intune RBAC inventory and backup support (#155) 2026-03-09 10:40:51 +00:00
IntuneRoleDefinitionNormalizer.php feat: add Intune RBAC baseline compare support (#156) 2026-03-09 18:49:20 +00:00
ManagedDeviceAppConfigurationNormalizer.php feat/017-policy-types-mam-endpoint-security-baselines (#23) 2026-01-03 02:06:35 +00:00
PolicyCaptureOrchestrator.php Spec 120: harden secret redaction integrity (#146) 2026-03-07 16:43:01 +00:00
PolicyNormalizer.php fix: improve assignment capture/restore and filter name handling (#8) 2025-12-28 13:59:12 +00:00
PolicySnapshotRedactor.php Spec 120: harden secret redaction integrity (#146) 2026-03-07 16:43:01 +00:00
PolicySnapshotService.php Spec 081: Provider connection cutover (#98) 2026-02-08 11:28:51 +00:00
PolicySyncService.php fix(onboarding): preserve workspace scope and consent flow (#117) 2026-02-15 22:27:55 +00:00
PolicyTypeNormalizer.php fix: improve assignment capture/restore and filter name handling (#8) 2025-12-28 13:59:12 +00:00
ProtectedSnapshotResult.php Spec 120: harden secret redaction integrity (#146) 2026-03-07 16:43:01 +00:00
RbacHealthService.php Spec 095: Graph contracts registry completeness + registry-backed call sites (#114) 2026-02-15 15:02:27 +00:00
RbacOnboardingService.php Spec 095: Graph contracts registry completeness + registry-backed call sites (#114) 2026-02-15 15:02:27 +00:00
RestoreDiffGenerator.php feat/011-restore-run-wizard (#17) 2025-12-31 19:14:59 +00:00
RestoreRiskChecker.php feat: add Intune RBAC inventory and backup support (#155) 2026-03-09 10:40:51 +00:00
RestoreService.php feat: add Intune RBAC inventory and backup support (#155) 2026-03-09 10:40:51 +00:00
ScriptsPolicyNormalizer.php feat/026-custom-compliance-scripts (#29) 2026-01-04 02:28:29 +00:00
SecretClassificationService.php Spec 120: harden secret redaction integrity (#146) 2026-03-07 16:43:01 +00:00
SecretFingerprintHasher.php Spec 120: harden secret redaction integrity (#146) 2026-03-07 16:43:01 +00:00
SettingsCatalogCategoryResolver.php Spec 095: Graph contracts registry completeness + registry-backed call sites (#114) 2026-02-15 15:02:27 +00:00
SettingsCatalogDefinitionResolver.php Spec 095: Graph contracts registry completeness + registry-backed call sites (#114) 2026-02-15 15:02:27 +00:00
SettingsCatalogPolicyNormalizer.php feat/017-policy-types-mam-endpoint-security-baselines (#23) 2026-01-03 02:06:35 +00:00
SnapshotValidator.php Intune RBAC: graceful unsupported-account handling, health-check fixes, tests and docs updates 2025-12-13 01:25:06 +01:00
TenantConfigService.php feat(spec-088): remove tenant graphOptions legacy path (#105) 2026-02-12 10:14:44 +00:00
TenantPermissionService.php feat: Spec 105 — Entra Admin Roles Evidence + Findings (#128) 2026-02-22 02:37:36 +00:00
TenantRequiredPermissionsViewModelBuilder.php Spec 083: Required permissions hardening (canonical /admin/tenants, DB-only, 404 semantics) (#101) 2026-02-08 23:13:25 +00:00
TermsAndConditionsNormalizer.php feat/024-terms-and-conditions (#30) 2026-01-04 03:01:11 +00:00
VersionDiff.php feat: TenantPilot v1 - Complete implementation (Phases 1-12) 2025-12-12 02:27:54 +01:00
VersionService.php feat: add Intune RBAC inventory and backup support (#155) 2026-03-09 10:40:51 +00:00
WindowsDriverUpdateProfileNormalizer.php feat/018-driver-updates-wufb (#27) 2026-01-04 00:38:54 +00:00
WindowsFeatureUpdateProfileNormalizer.php feat/012-windows-update-rings (#18) 2026-01-01 10:44:17 +00:00
WindowsQualityUpdateProfileNormalizer.php feat/012-windows-update-rings (#18) 2026-01-01 10:44:17 +00:00
WindowsUpdateRingNormalizer.php feat/012-windows-update-rings (#18) 2026-01-01 10:44:17 +00:00