TenantAtlas/database/factories
ahmido ef380b67d1 feat(104): Provider Permission Posture (#127)
Implements Spec 104: Provider Permission Posture.

What changed
- Generates permission posture findings after each tenant permission compare (queued)
- Stores immutable posture snapshots as StoredReports (JSONB payload)
- Adds global Finding resolved lifecycle (`resolved_at`, `resolved_reason`) with `resolve()` / `reopen()`
- Adds alert pipeline event type `permission_missing` (Alerts v1) and Filament option for Alert Rules
- Adds retention pruning command + daily schedule for StoredReports
- Adds badge mappings for `resolved` finding status and `permission_posture` finding type

UX fixes discovered during manual verification
- Hide “Diff” section for non-drift findings (only drift findings show diff)
- Required Permissions page: “Re-run verification” now links to Tenant view (not onboarding)
- Preserve Technical Details `<details>` open state across Livewire re-renders (Alpine state)

Verification
- Ran `vendor/bin/sail artisan test --compact --filter=PermissionPosture` (50 tests)
- Ran `vendor/bin/sail artisan test --compact --filter="FindingResolved|FindingBadge|PermissionMissingAlert"` (20 tests)
- Ran `vendor/bin/sail bin pint --dirty`

Filament v5 / Livewire v4 compliance
- Filament v5 + Livewire v4: no Livewire v3 usage.

Panel provider registration (Laravel 11+)
- No new panels added. Existing panel providers remain registered via `bootstrap/providers.php`.

Global search rule
- No changes to global-searchable resources.

Destructive actions
- No new destructive Filament actions were added in this PR.

Assets / deploy notes
- No new Filament assets registered. Existing deploy step `php artisan filament:assets` remains unchanged.

Test coverage
- New/updated Pest feature tests cover generator behavior, job integration, alerting, retention pruning, and resolved lifecycle.

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #127
2026-02-21 22:32:52 +00:00
..
AlertDeliveryFactory.php feat(alerts): test message + last test status + deep links (#122) 2026-02-18 23:12:38 +00:00
AlertDestinationFactory.php feat(alerts): Monitoring cluster + v1 resources (spec 099) (#121) 2026-02-18 15:20:43 +00:00
AlertRuleFactory.php feat(alerts): Monitoring cluster + v1 resources (spec 099) (#121) 2026-02-18 15:20:43 +00:00
BackupItemFactory.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
BackupSetFactory.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
BaselineProfileFactory.php Baseline governance UX polish + view Infolist (#123) 2026-02-19 23:56:09 +00:00
BaselineSnapshotFactory.php Baseline governance UX polish + view Infolist (#123) 2026-02-19 23:56:09 +00:00
BaselineSnapshotItemFactory.php Baseline governance UX polish + view Infolist (#123) 2026-02-19 23:56:09 +00:00
BaselineTenantAssignmentFactory.php Baseline governance UX polish + view Infolist (#123) 2026-02-19 23:56:09 +00:00
EntraGroupFactory.php 051-entra-group-directory-cache (#57) 2026-01-11 23:24:12 +00:00
EntraRoleDefinitionFactory.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
FindingFactory.php feat(104): Provider Permission Posture (#127) 2026-02-21 22:32:52 +00:00
InventoryItemFactory.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
InventoryLinkFactory.php feat/042-inventory-dependencies-graph (#49) 2026-01-10 00:20:14 +00:00
OperationRunFactory.php 073-unified-managed-tenant-onboarding-wizard (#90) 2026-02-04 23:30:55 +00:00
PlatformUserFactory.php feat: implement auth structure system panel (#77) 2026-01-27 21:49:18 +00:00
PolicyFactory.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
PolicyVersionFactory.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
ProviderConnectionFactory.php 073-unified-managed-tenant-onboarding-wizard (#90) 2026-02-04 23:30:55 +00:00
ProviderCredentialFactory.php feat: unify provider connection actions and notifications (#73) 2026-01-25 01:01:37 +00:00
RestoreRunFactory.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
StoredReportFactory.php feat(104): Provider Permission Posture (#127) 2026-02-21 22:32:52 +00:00
TenantFactory.php 073-unified-managed-tenant-onboarding-wizard (#90) 2026-02-04 23:30:55 +00:00
TenantSettingFactory.php Settings foundation: workspace controls (#119) 2026-02-16 01:11:24 +00:00
UserFactory.php Initial commit from Specify template 2025-12-10 22:27:21 +01:00
VerificationCheckAcknowledgementFactory.php Spec 075: Verification Checklist Framework V1.5 (fingerprint + acknowledgements) (#93) 2026-02-05 21:44:19 +00:00
WorkspaceFactory.php feat: workspace context enforcement (specs 070–072) (#85) 2026-02-02 10:07:41 +00:00
WorkspaceMembershipFactory.php feat: workspace context enforcement (specs 070–072) (#85) 2026-02-02 10:07:41 +00:00
WorkspaceSettingFactory.php Settings foundation: workspace controls (#119) 2026-02-16 01:11:24 +00:00