TenantAtlas/app/Services/Intune
ahmido cd811cff4f Spec 120: harden secret redaction integrity (#146)
## Summary
- replace broad substring-based masking with a shared exact/path-based secret classifier and workspace-scoped fingerprint hashing
- persist protected snapshot metadata on `policy_versions` and keep secret-only changes visible in compare, drift, restore, review, verification, and ops surfaces
- add Spec 120 artifacts, audit documentation, and focused Pest regression coverage for snapshot, audit, verification, review-pack, and notification behavior

## Validation
- `vendor/bin/sail artisan test --compact tests/Feature/Intune/PolicySnapshotRedactionTest.php tests/Feature/Intune/PolicySnapshotFingerprintIsolationTest.php tests/Feature/ReviewPack/ReviewPackRedactionIntegrityTest.php tests/Feature/OpsUx/OperationRunNotificationRedactionTest.php tests/Feature/Verification/VerificationReportViewerDbOnlyTest.php`
- `vendor/bin/sail bin pint --dirty --format agent`

## Spec / checklist status
| Checklist | Total | Completed | Incomplete | Status |
|-----------|-------|-----------|------------|--------|
| requirements.md | 16 | 16 | 0 | ✓ PASS |

- `tasks.md`: T001-T032 complete
- `tasks.md`: T033 manual quickstart validation is still open and noted for follow-up

## Filament / platform notes
- Livewire v4 compliance is unchanged
- no panel provider changes; `bootstrap/providers.php` remains the registration location
- no new globally searchable resources were introduced, so global search requirements are unchanged
- no new destructive Filament actions were added
- no new Filament assets were added; no `filament:assets` deployment change is required

## Testing coverage touched
- snapshot persistence and fingerprint isolation
- compare/drift protected-change evidence
- audit, verification, review-pack, ops-failure, and notification sanitization
- viewer/read-only Filament presentation updates

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #146
2026-03-07 16:43:01 +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 Spec 094: Assignment ops observability hardening (#113) 2026-02-15 14:08:14 +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(spec-088): remove tenant graphOptions legacy path (#105) 2026-02-12 10:14:44 +00:00
GroupPolicyConfigurationNormalizer.php feat(010): Administrative Templates – restore from PolicyVersion + version visibility (#13) 2025-12-30 01:50:05 +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(spec-088): remove tenant graphOptions legacy path (#105) 2026-02-12 10:14:44 +00:00
RestoreService.php Spec 120: harden secret redaction integrity (#146) 2026-03-07 16:43:01 +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 Spec 120: harden secret redaction integrity (#146) 2026-03-07 16:43:01 +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