2.9 KiB
2.9 KiB
Quickstart — Intune RBAC Baseline Compare & Findings v1
Goal
Validate that Intune Role Definitions can be selected into a baseline, captured as approved references, compared against current tenant state, and surfaced as unified drift findings without pulling in Role Assignments.
Prerequisites
- Laravel Sail services are running.
- A workspace and tenant test fixture exist.
- Spec 127 RBAC inventory and versioning support is already present.
Development flow
- Start Sail if needed.
vendor/bin/sail up -d
- Implement explicit baseline-support metadata for foundation types and filter baseline scope options to eligible foundations only.
- Extend baseline capture and compare identity handling so
intuneRoleDefinitionmatches by Role Definition ID, not display name. - Plug normalized Role Definition diffs into the existing baseline compare finding and evidence pipeline.
- Update existing Filament baseline and findings surfaces with RBAC-specific labeling and summaries.
Focused verification
- Eligibility and scope tests
- confirm
intuneRoleDefinitionis selectable for baseline compare - confirm
intuneRoleAssignmentis not selectable
- confirm
- Capture tests
- confirm baseline snapshot items for Role Definitions keep evidence-ready references
- confirm Role Assignments do not enter baseline snapshots
- Compare tests
- unchanged Role Definition yields no finding
- permission change yields a High-severity modified finding
- metadata-only change yields a Low-severity modified finding
- missing and unexpected Role Definitions yield the correct findings
- Findings tests
- repeated identical compare runs do not duplicate findings
- resolved RBAC findings reopen correctly on recurrence
- Safety tests
- coverage or evidence gaps suppress false RBAC findings
- tenant/workspace isolation remains intact
Suggested test commands
vendor/bin/sail artisan test --compact tests/Unit/IntuneRoleDefinitionNormalizerTest.phpvendor/bin/sail artisan test --compact tests/Feature/Baselinesvendor/bin/sail artisan test --compact tests/Feature/Findings/FindingRecurrenceTest.phpvendor/bin/sail artisan test --compact tests/Feature/Filament/BaselineProfileCompareStartSurfaceTest.phpvendor/bin/sail bin pint --dirty --format agent
Manual QA checklist
- Open Baseline Profiles and verify only Intune Role Definition appears as an RBAC foundation compare option.
- Capture a baseline from a tenant with Intune RBAC inventory and verify the snapshot shows Role Definition references only.
- Run compare against a tenant with an intentionally changed custom Role Definition and verify RBAC summary counts and finding labels.
- Inspect finding detail and verify before/after evidence is readable, severity is correct, and no restore implication appears.
- Verify Role Assignment objects never appear in summary, findings, or baseline snapshot compare output.