coolify/tests/Feature/Authorization
Andras Bacsai 6a5fd40a5c refactor(policies): add uploadBackup ability and enforce it on backup upload endpoint
Introduce a dedicated `uploadBackup` ability on Application, Database,
Service, and ServiceDatabase policies (admin/owner only) and call
`$this->authorize('uploadBackup', $resource)` in `UploadController::upload`
so the backup-upload endpoint goes through the same policy layer as the
rest of the authorization refactor. Adds Pest coverage for each policy
variant plus HTTP-level checks.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-20 11:51:35 +02:00
..
ApiAuthorizationTest.php fix(security): prevent snapshot replay in API token permission checks 2026-02-27 22:58:44 +01:00
ApiTokenPermissionTest.php Merge remote-tracking branch 'origin/next' into audit-policies 2026-04-19 15:19:37 +02:00
ApplicationConfigAuthorizationTest.php chore(tests): reorganize feature suites and expand team auth coverage 2026-02-26 07:13:19 +01:00
CloudProviderAuthorizationTest.php chore(tests): reorganize feature suites and expand team auth coverage 2026-02-26 07:13:19 +01:00
DashboardAuthorizationTest.php chore(tests): reorganize feature suites and expand team auth coverage 2026-02-26 07:13:19 +01:00
DatabaseConfigAuthorizationTest.php chore(tests): reorganize feature suites and expand team auth coverage 2026-02-26 07:13:19 +01:00
DestinationOwnershipTest.php chore(tests): reorganize feature suites and expand team auth coverage 2026-02-26 07:13:19 +01:00
EnvironmentVariableValueHidingTest.php refactor(auth): enforce team member authorization across app 2026-02-27 11:41:01 +01:00
LegacyMemberTokenTest.php refactor(auth): enforce team member authorization across app 2026-02-27 11:41:01 +01:00
NavbarDeleteTeamAuthorizationTest.php chore(tests): reorganize feature suites and expand team auth coverage 2026-02-26 07:13:19 +01:00
NotificationAuthorizationTest.php chore(tests): reorganize feature suites and expand team auth coverage 2026-02-26 07:13:19 +01:00
ProjectEnvironmentAuthorizationTest.php chore(tests): reorganize feature suites and expand team auth coverage 2026-02-26 07:13:19 +01:00
ResourceHeadingAuthorizationTest.php chore(tests): reorganize feature suites and expand team auth coverage 2026-02-26 07:13:19 +01:00
ResourceOperationsCrossTenantTest.php chore(tests): reorganize feature suites and expand team auth coverage 2026-02-26 07:13:19 +01:00
SecurityPageAuthorizationTest.php chore(tests): reorganize feature suites and expand team auth coverage 2026-02-26 07:13:19 +01:00
ServerAuthorizationTest.php chore(tests): reorganize feature suites and expand team auth coverage 2026-02-26 07:13:19 +01:00
ServiceConfigAuthorizationTest.php chore(tests): reorganize feature suites and expand team auth coverage 2026-02-26 07:13:19 +01:00
SharedResourceAuthorizationTest.php chore(tests): reorganize feature suites and expand team auth coverage 2026-02-26 07:13:19 +01:00
TeamAuthorizationTest.php chore(tests): reorganize feature suites and expand team auth coverage 2026-02-26 07:13:19 +01:00
UploadBackupAuthorizationTest.php refactor(policies): add uploadBackup ability and enforce it on backup upload endpoint 2026-04-20 11:51:35 +02:00