An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Merge remote-tracking branch 'origin/next' into harden-database-import-files
Andras Bacsai7d65a4b496ca
diff --cc app/Http/Controllers/UploadController.phpindex d09435fd82,26a76ab3ea..4d4a5a080e--- a/app/Http/Controllers/UploadController.php+++ b/app/Http/Controllers/UploadController.php@@@ -2,7 -2,7 +2,8 @@@namespace App\Http\Controllers;+use App\Support\DatabaseBackupFileValidator;+ use Illuminate\Foundation\Auth\Access\AuthorizesRequests;use Illuminate\Http\Request;use Illuminate\Http\UploadedFile;use Illuminate\Routing\Controller as BaseController;@@@ -12,9 -12,28 +13,11 @@@ use Pion\Laravel\ChunkUpload\Receiver\Fclass UploadController extends BaseController{+ use AuthorizesRequests;+private const MAX_BYTES = 10 * 1024 * 1024 * 1024; // 10 GiB- private const ALLOWED_EXTENSIONS = [- 'sql',- 'sql.gz',- 'gz',- 'zip',- 'tar',- 'tar.gz',- 'tgz',- 'dump',- 'bak',- 'bson',- 'bson.gz',- 'archive',- 'archive.gz',- 'bz2',- 'xz',- 'dmp',- ];+ private const ALLOWED_EXTENSIONS = DatabaseBackupFileValidator::ALLOWED_EXTENSIONS;public function upload(Request $request){diff --cc app/Livewire/Destination/Show.phpindex 9d55d74627,17fb5cea5d..1b344c9056--- a/app/Livewire/Destination/Show.php+++ b/app/Livewire/Destination/Show.php@@@ -3,6 -3,6 +3,7 @@@namespace App\Livewire\Destination;use App\Models\StandaloneDocker;++use Illuminate\Auth\Access\AuthorizationException;use Illuminate\Foundation\Auth\Access\AuthorizesRequests;use Livewire\Attributes\Locked;use Livewire\Attributes\Validate;@@@ -31,8 -31,12 +32,12 @@@ class Show extends Componenif (! $destination) {return redirect()->route('destination.index');}+ $this->authorize('view', $destination);+$this->destination = $destination;$this->syncData();- } catch (\Illuminate\Auth\Access\AuthorizationException) {++ } catch (AuthorizationException) {+ abort(403);} catch (\Throwable $e) {return handleError($e, $this);}diff --cc app/Livewire/Project/Database/BackupEdit.phpindex ef106a65fe,6a1175dc7d..99426c120f--- a/app/Livewire/Project/Database/BackupEdit.php+++ b/app/Livewire/Project/Database/BackupEdit.php@@@ -2,6 -2,6 +2,7 @@@namespace App\Livewire\Project\Database;++use App\Jobs\DatabaseBackupJob;use App\Models\ScheduledDatabaseBackup;use App\Models\ServiceDatabase;use Exception;@@@ -190,6 -190,18 +191,18 @@@ class BackupEdit extends Componen}}+ public function backupNow()+ {+ try {+ $this->authorize('manageBackups', $this->backup->database);+- \App\Jobs\DatabaseBackupJob::dispatch($this->backup);++ DatabaseBackupJob::dispatch($this->backup);+ $this->dispatch('success', 'Backup queued. It will be available in a few minutes.');+ } catch (\Throwable $e) {+ return handleError($e, $this);+ }+ }+public function instantSave(){try {diff --cc app/Livewire/Project/Database/BackupExecutions.phpindex 1dd93781dd,d27345b8db..41fb1681bf--- a/app/Livewire/Project/Database/BackupExecutions.php+++ b/app/Livewire/Project/Database/BackupExecutions.php@@@ -3,6 -3,7 +3,8 @@@namespace App\Livewire\Project\Database;use App\Models\ScheduledDatabaseBackup;++use App\Models\ServiceDatabase;+ use Illuminate\Foundation\Auth\Access\AuthorizesRequests;use Illuminate\Support\Collection;use Illuminate\Support\Facades\Auth;use Livewire\Component;@@@ -78,7 -97,7 +98,7 @@@ class BackupExecutions extends Componenreturn;}-- $server = $execution->scheduledDatabaseBackup->database->getMorphClass() === \App\Models\ServiceDatabase::class++ $server = $execution->scheduledDatabaseBackup->database->getMorphClass() === ServiceDatabase::class? $execution->scheduledDatabaseBackup->database->service->destination->server: $execution->scheduledDatabaseBackup->database->destination->server;@@@ -185,7 -204,7 +205,7 @@@if ($this->database) {$server = null;-- if ($this->database instanceof \App\Models\ServiceDatabase) {++ if ($this->database instanceof ServiceDatabase) {$server = $this->database->service->destination->server;} elseif ($this->database->destination && $this->database->destination->server) {$server = $this->database->destination->server;diff --cc app/Livewire/Project/Database/ScheduledBackups.phpindex 1cf5e53f6b,06473c56a7..9d1f212e44--- a/app/Livewire/Project/Database/ScheduledBackups.php+++ b/app/Livewire/Project/Database/ScheduledBackups.php@@@ -3,6 -3,6 +3,7 @@@namespace App\Livewire\Project\Database;use App\Models\ScheduledDatabaseBackup;++use App\Models\ServiceDatabase;use Illuminate\Foundation\Auth\Access\AuthorizesRequests;use Livewire\Component;@@@ -34,7 -34,7 +35,7 @@@ class ScheduledBackups extends Componen$this->setSelectedBackup($this->selectedBackupId, true);}$this->parameters = get_route_parameters();-- if ($this->database->getMorphClass() === \App\Models\ServiceDatabase::class) {++ if ($this->database->getMorphClass() === ServiceDatabase::class) {$this->type = 'service-database';} else {$this->type = 'database';diff --cc app/Livewire/Storage/Show.phpindex dc5121e945,93c1ff2e4a..dd6640c233--- a/app/Livewire/Storage/Show.php+++ b/app/Livewire/Storage/Show.php@@@ -4,6 -4,6 +4,7 @@@ namespace App\Livewire\Storageuse App\Models\S3Storage;use App\Models\ScheduledDatabaseBackup;++use Illuminate\Auth\Access\AuthorizationException;use Illuminate\Foundation\Auth\Access\AuthorizesRequests;use Livewire\Component;@@@ -23,7 -23,11 +24,11 @@@ class Show extends Componenif (! $this->storage) {abort(404);}- $this->authorize('view', $this->storage);+ try {+ $this->authorize('view', $this->storage);- } catch (\Illuminate\Auth\Access\AuthorizationException) {++ } catch (AuthorizationException) {+ return $this->redirectRoute('storage.index', navigate: true);+ }$this->currentRoute = request()->route()->getName();$this->backupCount = ScheduledDatabaseBackup::where('s3_storage_id', $this->storage->id)->count();}diff --cc app/Policies/ServiceDatabasePolicy.phpindex f72f1f327e,e94658e298..88cb151151--- a/app/Policies/ServiceDatabasePolicy.php+++ b/app/Policies/ServiceDatabasePolicy.php@@@ -58,12 -53,22 +53,22 @@@ class ServiceDatabasePolic*/public function forceDelete(User $user, ServiceDatabase $serviceDatabase): bool{- // return Gate::allows('delete', $serviceDatabase->service);- return true;+ return false;}+ /**+ * Determine whether the user can manage database backups.+ */public function manageBackups(User $user, ServiceDatabase $serviceDatabase): bool{- return true;+ return Gate::allows('update', $serviceDatabase->service);+ }++ /**+ * Determine whether the user can upload a backup archive for this service database.+ */+ public function uploadBackup(User $user, ServiceDatabase $serviceDatabase): bool+ {- return Gate::allows('uploadBackup', $serviceDatabase->service);++ return $user->can('uploadBackup', $serviceDatabase->service);}}diff --cc templates/service-templates-latest.jsonindex 7df83fcc81,6dbb4d311c..811aee97e7--- a/templates/service-templates-latest.json+++ b/templates/service-templates-latest.json@@@ -742,7 -787,7 +787,7 @@@"convex": {"documentation": "https://github.com/get-convex/convex-backend/blob/main/self-hosted/README.md?utm_source=coolify.io","slogan": "Convex is the open-source reactive database for app developers.",-- "compose": "c2VydmljZXM6CiAgYmFja2VuZDoKICAgIGltYWdlOiAnZ2hjci5pby9nZXQtY29udmV4L2NvbnZleC1iYWNrZW5kOmE5YTc2MGNhMTAzOTllZDQyZTFiNGJiODdjNzg1MzlhMjM1NDg4YzcnCiAgICB2b2x1bWVzOgogICAgICAtICdkYXRhOi9jb252ZXgvZGF0YScKICAgIGVudmlyb25tZW50OgogICAgICAtIFNFUlZJQ0VfVVJMX0JBQ0tFTkRfMzIxMAogICAgICAtICdJTlNUQU5DRV9OQU1FPSR7SU5TVEFOQ0VfTkFNRTotc2VsZi1ob3N0ZWQtY29udmV4fScKICAgICAgLSAnSU5TVEFOQ0VfU0VDUkVUPSR7U0VSVklDRV9IRVhfNjRfU0VDUkVUfScKICAgICAgLSAnQ09OVkVYX1JFTEVBU0VfVkVSU0lPTl9ERVY9JHtDT05WRVhfUkVMRUFTRV9WRVJTSU9OX0RFVjotfScKICAgICAgLSAnQUNUSU9OU19VU0VSX1RJTUVPVVRfU0VDUz0ke0FDVElPTlNfVVNFUl9USU1FT1VUX1NFQ1M6LX0nCiAgICAgIC0gJ0NPTlZFWF9DTE9VRF9PUklHSU49JHtTRVJWS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JVQ0tFVDotfScKICAgICAgLSAnUzNfU1RPUkFHRV9GSUxFU19CVUNLRVQ9JHtTM19TVE9SQUdFX0ZJTEVTX0JVQ0tFVDotfScKICAgICAgLSAnUzNfU1RPUkFHRV9TRUFSQ0hfQlVDS0VUPSR7UzNfU1RPUkFHRV9TRUFSQ0hfQlVDS0VUOi19JwogICAgICAtICdTM19FTkRQT0lOVF9VUkw9JHtTM19FTkRQT0lOVF9VUkw6LX0nCiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDogJ2N1cmwgLWYgaHR0cDovLzEyNy4wLjAuMTozMjEwL3ZlcnNpb24nCiAgICAgIGludGVydmFsOiA1cwogICAgICBzdGFydF9wZXJpb2Q6IDEwcwogIGRhc2hib2FyZDoKICAgIGltYWdlOiAnZ2hjci5pby9nZXQtY29udmV4L2NvbnZleC1kYXNoYm9hcmQ6YTlhNzYwY2ExMDM5OWVkNDJlMWI0YmI4N2M3ODUzOWEyMzU0ODhjNycKICAgIGVudmlyb25tZW50OgogICAgICAtIFNFUlZJQ0VfVVJMX0RBU0hCT0FSRF82NzkxCiAgICAgIC0gJ05FWFRfUFVCTElDX0RFUExPWU1FTlRfVVJMPSR7U0VSVklDRV9VUkxfQkFDS0VORH0nCiAgICBkZXBlbmRzX29uOgogICAgICBiYWNrZW5kOgogICAgICAgIGNvbmRpdGlvbjogc2VydmljZV9oZWFsdGh5CiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDogJ2N1cmwgLWYgaHR0cDovLzEyNy4wLjAuMTo2NzkxLycKICAgICAgaW50ZXJ2YWw6IDVzCiAgICAgIHN0YXJ0X3BlcmlvZDogNXMK","tags": ["database","reactive",@@@ -758,6 -803,7 +803,7 @@@"category": "backend","logo": "svgs/convex.svg","minversion": "0.0.0",- "template_last_updated_at": "2026-05-09T19:26:30+05:30",++ "template_last_updated_at": "2026-06-12T10:45:52+02:00","port": "6791"},"cryptgeon": {@@@ -1666,7 -1769,7 +1769,7 @@@"gitea-runner": {"documentation": "https://github.com/go-gitea/gitea?utm_source=coolify.io","slogan": "Gitea Actions runner for docker",-- "compose": "c2VydmljZXM6CiAgcnVubmVyOgogICAgaW1hZ2U6ICdkb2NrZXIuaW8vZ2l0ZWEvcnVubmVyOjEuMC43JwogICAgZW52aXJvbm1lbnQ6CiAgICAgIC0gJ0dJVEVBX0lOU1RBTkNFX1VSTD0ke0dJVEVBX0lOU1RBTkNFX1VSTH0nCiAgICAgIC0gJ0dJVEVBX1JVTk5FUl9SRUdJU1RSQVRJT05fVE9LRU49JHtHSVRFQV9SVU5ORVJfUkVHSVNUUkFUSU9OX1RPS0VOfScKICAgICAgLSAnR0lURUFfUlVOTkVSX05BTUU9JHtHSVRFQV9SVU5ORVJfTkFNRTotZ2l0ZWEtcnVubmVyfScKICAgICAgLSAnR0lURUFfUlVOTkVSX0xBQkVMUz0ke0dJVEVBX1JVTk5FUl9MQUJFTFM6LXVidW50dS1sYXRlc3Q6ZG9ja2VyOi8vbm9kZToyMn0nCiAgICAgIC0gJ0dJVEVBX1RPS0VOPSR7R0lURUFfVE9LRU59JwogICAgd29ya2luZ19kaXI6IC9kYXRhCiAgICB2b2x1bWVzOgogICAgICAtICdydW5uZXItZGF0YTovZGF0YScKICAgICAgLSAnL3Zhci9ydW4vZG9ja2VyLnNvY2s6L3Zhci9ydW4vZG9ja2VyLnNvY2snCiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDoKICAgICAgICAtIENNRC1TSEVMTAogICAgICAgIC0gInBzIGF1eCB8IGdyZXAgJ1tSXXVubmVyJyA+IC9kZXYvbnVsbCB8fCBleGl0IDEiCiAgICAgIGludGVydmFsOiA1cwogICAgICB0aW1lb3V0OiAxMHMKICAgICAgcmV0cmllczogMTUK",++ "compose": "c2VydmljZXM6CiAgcnVubmVyOgogICAgaW1hZ2U6ICdkb2NrZXIuaW8vZ2l0ZWEvcnVubmVyOjEuMC44JwogICAgZW52aXJvbm1lbnQ6CiAgICAgIC0gJ0dJVEVBX0lOU1RBTkNFX1VSTD0ke0dJVEVBX0lOU1RBTkNFX1VSTH0nCiAgICAgIC0gJ0dJVEVBX1JVTk5FUl9SRUdJU1RSQVRJT05fVE9LRU49JHtHSVRFQV9SVU5ORVJfUkVHSVNUUkFUSU9OX1RPS0VOfScKICAgICAgLSAnR0lURUFfUlVOTkVSX05BTUU9JHtHSVRFQV9SVU5ORVJfTkFNRTotZ2l0ZWEtcnVubmVyfScKICAgICAgLSAnR0lURUFfUlVOTkVSX0xBQkVMUz0ke0dJVEVBX1JVTk5FUl9MQUJFTFM6LXVidW50dS1sYXRlc3Q6ZG9ja2VyOi8vbm9kZToyMn0nCiAgICAgIC0gJ0dJVEVBX1RPS0VOPSR7R0lURUFfVE9LRU59JwogICAgd29ya2luZ19kaXI6IC9kYXRhCiAgICB2b2x1bWVzOgogICAgICAtICdydW5uZXItZGF0YTovZGF0YScKICAgICAgLSAnL3Zhci9ydW4vZG9ja2VyLnNvY2s6L3Zhci9ydW4vZG9ja2VyLnNvY2snCiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDoKICAgICAgICAtIENNRC1TSEVMTAogICAgICAgIC0gInBzIGF1eCB8IGdyZXAgJ1tSXXVubmVyJyA+IC9kZXYvbnVsbCB8fCBleGl0IDEiCiAgICAgIGludGVydmFsOiA1cwogICAgICB0aW1lb3V0OiAxMHMKICAgICAgcmV0cmllczogMTUK","tags": ["gitea","actions",@@@ -1675,7 -1778,8 +1778,8 @@@],"category": "devtools","logo": "svgs/gitea.svg",- "minversion": "0.0.0"+ "minversion": "0.0.0",- "template_last_updated_at": "2026-06-01T07:54:27-05:00"++ "template_last_updated_at": "2026-06-06T00:11:24+02:00"},"gitea-with-mariadb": {"documentation": "https://docs.gitea.com?utm_source=coolify.io",@@@ -2207,8 -2343,9 +2343,27 @@@"category": "security","logo": "svgs/infisical.png","minversion": "0.0.0",+ "template_last_updated_at": "2025-12-15T17:56:33+01:00","port": "8080"},++ "inngest": {++ "documentation": "https://www.inngest.com/docs/self-hosting?utm_source=coolify.io",++ "slogan": "Durable workflow engine for background jobs, queues and scheduled tasks.",++ "compose": "c2VydmljZXM6CiAgaW5uZ2VzdDoKICAgIGltYWdlOiAnaW5uZ2VzdC9pbm5nZXN0OnYxLjI3LjAnCiAgICBjb21tYW5kOiAnaW5uZ2VzdCBzdGFydCAtLWhvc3QgMC4wLjAuMCcKICAgIGVudmlyb25tZW50OgogICAgICAtIFNFUlZJQ0VfVVJMX0lOTkdFU1RfODI4OAogICAgICAtICdJTk5HRVNUX0VWRU5UX0tFWT0ke1NFUlZJQ0VfSEVYXzMyX0VWRU5US0VZfScKICAgICAgLSAnSU5OR0VTVF9TSUdOSU5HX0tFWT0ke1NFUlZJQ0VfSEVYXzMyX1NJR05JTkdLRVl9JwogICAgICAtICdJTk5HRVNUX1BPU1RHUkVTX1VSST1wb3N0Z3JlczovL2lubmdlc3Q6JHtTRVJWSUNFX1BBU1NXT1JEX1BPU1RHUkVTfUBwb3N0Z3Jlczo1NDMyL2lubmdlc3QnCiAgICAgIC0gJ0lOTkdFU1RfUkVESVNfVVJJPXJlZGlzOi8vcmVkaXM6NjM3OScKICAgIGRlcGVuZHNfb246CiAgICAgIHBvc3RncmVzOgogICAgICAgIGNvbmRpdGlvbjogc2VydmljZV9oZWFsdGh5CiAgICAgIHJlZGlzOgogICAgICAgIGNvbmRpdGlvbjogc2VydmljZV9oZWFsdGh5CiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDoKICAgICAgICAtIENNRAogICAgICAgIC0gaW5uZ2VzdAogICAgICAgIC0gYWxwaGEKICAgICAgICAtIGRvY3RvcgogICAgICAgIC0gaGVhbHRoY2hlY2sKICAgICAgaW50ZXJ2YWw6IDMwcwogICAgICB0aW1lb3V0OiAxMHMKICAgICAgcmV0cmllczogMwogICAgICBzdGFydF9wZXJpb2Q6IDQwcwogICAgcmVzdGFydDogdW5sZXNzLXN0b3BwZWQKICBwb3N0Z3JlczoKICAgIGltYWdlOiAncG9zdGdyZXM6MTcnCiAgICBlbnZpcm9ubWVudDoKICAgICAgLSBQT1NUR1JFU19EQj1pbm5nZXN0CiAgICAgIC0gUE9TVEdSRVNfVVNFUj1pbm5nZXN0CiAgICAgIC0gJ1BPU1RHUkVTX1BBU1NXT1JEPSR7U0VSVklDRV9QQVNTV09SRF9QT1NUR1JFU30nCiAgICB2b2x1bWVzOgogICAgICAtICdwb3N0Z3Jlcy1kYXRhOi92YXIvbGliL3Bvc3RncmVzcWwvZGF0YScKICAgIGhlYWx0aGNoZWNrOgogICAgICB0ZXN0OgogICAgICAgIC0gQ01ELVNIRUxMCiAgICAgICAgLSAncGdfaXNyZWFkeSAtVSBpbm5nZXN0IC1kIGlubmdlc3QnCiAgICAgIGludGVydmFsOiA1cwogICAgICB0aW1lb3V0OiA1cwogICAgICByZXRyaWVzOiA1CiAgICByZXN0YXJ0OiB1bmxlc3Mtc3RvcHBlZAogIHJlZGlzOgogICAgaW1hZ2U6ICdyZWRpczo3LWFscGluZScKICAgIGNvbW1hbmQ6ICdyZWRpcy1zZXJ2ZXIgLS1hcHBlbmRvbmx5IHllcycKICAgIHZvbHVtZXM6CiAgICAgIC0gJ3JlZGlzLWRhdGE6L2RhdGEnCiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDoKICAgICAgICAtIENNRAogICAgICAgIC0gcmVkaXMtY2xpCiAgICAgICAgLSBwaW5nCiAgICAgIGludGVydmFsOiA1cwogICAgICB0aW1lb3V0OiAzcwogICAgICByZXRyaWVzOiA1CiAgICByZXN0YXJ0OiB1bmxlc3Mtc3RvcHBlZAo=",++ "tags": [++ "queue",++ "workflow",++ "jobs",++ "events",++ "background",++ "automation"++ ],++ "category": "automation",++ "logo": "svgs/inngest.png",++ "minversion": "0.0.0",++ "template_last_updated_at": "2026-06-10T13:46:21+05:30",++ "port": "8288"++ },"invoice-ninja": {"documentation": "https://invoiceninja.github.io/selfhost.html?utm_source=coolify.io","slogan": "The leading open-source invoicing platform",diff --cc templates/service-templates.jsonindex 26aed5826b,6a8966352e..9721a52dea--- a/templates/service-templates.json+++ b/templates/service-templates.json@@@ -742,7 -787,7 +787,7 @@@"convex": {"documentation": "https://github.com/get-convex/convex-backend/blob/main/self-hosted/README.md?utm_source=coolify.io","slogan": "Convex is the open-source reactive database for app developers.",-- "compose": "c2VydmljZXM6CiAgYmFja2VuZDoKICAgIGltYWdlOiAnZ2hjci5pby9nZXQtY29udmV4L2NvbnZleC1iYWNrZW5kOmE5YTc2MGNhMTAzOTllZDQyZTFiNGJiODdjNzg1MzlhMjM1NDg4YzcnCiAgICB2b2x1bWVzOgogICAgICAtICdkYXRhOi9jb252ZXgvZGF0YScKICAgIGVudmlyb25tZW50OgogICAgICAtIFNFUlZJQ0VfRlFETl9CQUNLRU5EXzMyMTAKICAgICAgLSAnSU5TVEFOQ0VfTkFNRT0ke0lOU1RBTkNFX05BTUU6LXNlbGYtaG9zdGVkLWNvbnZleH0nCiAgICAgIC0gJ0lOU1RBTkNFX1NFQ1JFVD0ke1NFUlZJQ0VfSEVYXzY0X1NFQ1JFVH0nCiAgICAgIC0gJ0NPTlZFWF9SRUxFQVNFX1ZFUlNJT05fREVWPSR7Q09OVkVYX1JFTEVBU0VfVkVSU0lPTl9ERVY6LX0nCiAgICAgIC0gJ0FDVElPTlNfVVNFUl9USU1FT1VUX1NFQ1M9JHtBQ1RJT05TX1VTRVJfVElNRU9VVF9TRUNTOi19JwogICAgICAtICdDT05WRVhfQ0xPVURfT1JJR0lOPSR7U0VSVklDRV9GUUROX0RBU0hCT0FSRH0nCiAgICAgIC0gJ0NPTlZFWF9TSVRFX09SSUdJTj0ke1NFUlZJQ0VfRlFETl9CQUNLRU5EfScKICAgICAgLSAnREFUQUJBU0VfVVJMPSR7REFUQUJBU0VfVVJMOi19JwogICAgICAtICdESVNBQkxFX0JFQUNPTj0ke0RJU0FCTEVfQkVBQ09OOj9mYWxzZX0nCiAgICAgIC0gJ1JFREFDVF9MT0dTX1RPX0NMSUVOVD0ke1JFREFDVF9MT0dTX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i19JwogICAgaGVhbHRoY2hlY2s6CiAgICAgIHRlc3Q6ICdjdXJsIC1mIGh0dHA6Ly8xMjcuMC4wLjE6MzIxMC92ZXJzaW9uJwogICAgICBpbnRlcnZhbDogNXMKICAgICAgc3RhcnRfcGVyaW9kOiAxMHMKICBkYXNoYm9hcmQ6CiAgICBpbWFnZTogJ2doY3IuaW8vZ2V0LWNvbnZleC9jb252ZXgtZGFzaGJvYXJkOmE5YTc2MGNhMTAzOTllZDQyZTFiNGJiODdjNzg1MzlhMjM1NDg4YzcnCiAgICBlbnZpcm9ubWVudDoKICAgICAgLSBTRVJWSUNFX0ZRRE5fREFTSEJPQVJEXzY3OTEKICAgICAgLSAnTkVYVF9QVUJMSUNfREVQTE9ZTUVOVF9VUkw9JHtTRVJWSUNFX0ZRRE5fQkFDS0VORH0nCiAgICBkZXBlbmRzX29uOgogICAgICBiYWNrZW5kOgogICAgICAgIGNvbmRpdGlvbjogc2VydmljZV9oZWFsdGh5CiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDogJ2N1cmwgLWYgaHR0cDovLzEyNy4wLjAuMTo2NzkxLycKICAgICAgaW50ZXJ2YWw6IDVzCiAgICAgIHN0YXJ0X3BlcmlvZDogNXMK","tags": ["database","reactive",@@@ -758,6 -803,7 +803,7 @@@"category": "backend","logo": "svgs/convex.svg","minversion": "0.0.0",- "template_last_updated_at": "2026-05-09T19:26:30+05:30",++ "template_last_updated_at": "2026-06-12T10:45:52+02:00","port": "6791"},"cryptgeon": {@@@ -1666,7 -1769,7 +1769,7 @@@"gitea-runner": {"documentation": "https://github.com/go-gitea/gitea?utm_source=coolify.io","slogan": "Gitea Actions runner for docker",-- "compose": "c2VydmljZXM6CiAgcnVubmVyOgogICAgaW1hZ2U6ICdkb2NrZXIuaW8vZ2l0ZWEvcnVubmVyOjEuMC43JwogICAgZW52aXJvbm1lbnQ6CiAgICAgIC0gJ0dJVEVBX0lOU1RBTkNFX1VSTD0ke0dJVEVBX0lOU1RBTkNF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ubmVyfScKICAgICAgLSAnR0lURUFfUlVOTkVSX0xBQkVMUz0ke0dJVEVBX1JVTk5FUl9MQUJFTFM6LXVidW50dS1sYXRlc3Q6ZG9ja2VyOi8vbm9kZToyMn0nCiAgICAgIC0gJ0dJVEVBX1RPS0VOPSR7R0lURUFfVE9LRU59JwogICAgd29ya2luZ19kaXI6IC9kYXRhCiAgICB2b2x1bWVzOgogICAgICAtICdydW5uZXItZGF0YTovZGF0YScKICAgICAgLSAnL3Zhci9ydW4vZG9ja2VyLnNvY2s6L3Zhci9ydW4vZG9ja2VyLnNvY2snCiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDoKICAgICAgICAtIENNRC1TSEVMTAogICAgICAgIC0gInBzIGF1eCB8IGdyZXAgJ1tSXXVubmVyJyA+IC9kZXYvbnVsbCB8fCBleGl0IDEiCiAgICAgIGludGVydmFsOiA1cwogICAgICB0aW1lb3V0OiAxMHMKICAgICAgcmV0cmllczogMTUK","tags": ["gitea","actions",@@@ -1675,7 -1778,8 +1778,8 @@@],"category": "devtools","logo": "svgs/gitea.svg",- "minversion": "0.0.0"+ "minversion": "0.0.0",- "template_last_updated_at": "2026-06-01T07:54:27-05:00"++ "template_last_updated_at": "2026-06-06T00:11:24+02:00"},"gitea-with-mariadb": {"documentation": "https://docs.gitea.com?utm_source=coolify.io",@@@ -2207,8 -2343,9 +2343,27 @@@"category": "security","logo": "svgs/infisical.png","minversion": "0.0.0",+ "template_last_updated_at": "2025-12-15T17:56:33+01:00","port": "8080"},++ "inngest": {++ "documentation": "https://www.inngest.com/docs/self-hosting?utm_source=coolify.io",++ "slogan": "Durable workflow engine for background jobs, queues and scheduled tasks.",++ "compose": "c2VydmljZXM6CiAgaW5uZ2VzdDoKICAgIGltYWdlOiAnaW5uZ2VzdC9pbm5nZXN0OnYxLjI3LjAnCiAgICBjb21tYW5kOiAnaW5uZ2VzdCBzdGFydCAtLWhvc3QgMC4wLjAuMCcKICAgIGVudmlyb25tZW50OgogICAgICAtI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L2xpYi9wb3N0Z3Jlc3FsL2RhdGEnCiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDoKICAgICAgICAtIENNRC1TSEVMTAogICAgICAgIC0gJ3BnX2lzcmVhZHkgLVUgaW5uZ2VzdCAtZCBpbm5nZXN0JwogICAgICBpbnRlcnZhbDogNXMKICAgICAgdGltZW91dDogNXMKICAgICAgcmV0cmllczogNQogICAgcmVzdGFydDogdW5sZXNzLXN0b3BwZWQKICByZWRpczoKICAgIGltYWdlOiAncmVkaXM6Ny1hbHBpbmUnCiAgICBjb21tYW5kOiAncmVkaXMtc2VydmVyIC0tYXBwZW5kb25seSB5ZXMnCiAgICB2b2x1bWVzOgogICAgICAtICdyZWRpcy1kYXRhOi9kYXRhJwogICAgaGVhbHRoY2hlY2s6CiAgICAgIHRlc3Q6CiAgICAgICAgLSBDTUQKICAgICAgICAtIHJlZGlzLWNsaQogICAgICAgIC0gcGluZwogICAgICBpbnRlcnZhbDogNXMKICAgICAgdGltZW91dDogM3MKICAgICAgcmV0cmllczogNQogICAgcmVzdGFydDogdW5sZXNzLXN0b3BwZWQK",++ "tags": [++ "queue",++ "workflow",++ "jobs",++ "events",++ "background",++ "automation"++ ],++ "category": "automation",++ "logo": "svgs/inngest.png",++ "minversion": "0.0.0",++ "template_last_updated_at": "2026-06-10T13:46:21+05:30",++ "port": "8288"++ },"invoice-ninja": {"documentation": "https://invoiceninja.github.io/selfhost.html?utm_source=coolify.io","slogan": "The leading open-source invoicing platform",diff --cc tests/Feature/Authorization/TeamAuthorizationTest.phpindex 0000000000,e99e55a2c1..82d8d2afccmode 000000,100644..100644--- a/tests/Feature/Authorization/TeamAuthorizationTest.php+++ b/tests/Feature/Authorization/TeamAuthorizationTest.php@@@ -1,0 -1,327 +1,327 @@@+ <?php++ use App\Livewire\Team\Index as TeamIndex;+ use App\Livewire\Team\Member as TeamMember;+ use App\Models\InstanceSettings;+ use App\Models\Team;+ use App\Models\User;+ use Illuminate\Foundation\Testing\RefreshDatabase;+ use Livewire\Livewire;++ uses(RefreshDatabase::class);++ beforeEach(function () {+ InstanceSettings::updateOrCreate(['id' => 0]);++ $this->team = Team::factory()->create(['personal_team' => false]);++ $this->owner = User::factory()->create();+ $this->owner->teams()->attach($this->team, ['role' => 'owner']);++ $this->admin = User::factory()->create();+ $this->admin->teams()->attach($this->team, ['role' => 'admin']);++ $this->member = User::factory()->create();+ $this->member->teams()->attach($this->team, ['role' => 'member']);+ });++ // --- Team Policy: update ---++ test('owner can update team', function () {+ $this->actingAs($this->owner);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('update', $this->team))->toBeTrue();+ });++ test('admin can update team', function () {+ $this->actingAs($this->admin);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('update', $this->team))->toBeTrue();+ });++ test('member cannot update team', function () {+ $this->actingAs($this->member);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('update', $this->team))->toBeFalse();+ });++ // --- Team Policy: delete ---++ test('owner can delete team', function () {+ $this->actingAs($this->owner);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('delete', $this->team))->toBeTrue();+ });++ test('admin can delete team', function () {+ $this->actingAs($this->admin);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('delete', $this->team))->toBeTrue();+ });++ test('member cannot delete team', function () {+ $this->actingAs($this->member);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('delete', $this->team))->toBeFalse();+ });++ // --- Team Policy: manageMembers ---++ test('owner can manage team members', function () {+ $this->actingAs($this->owner);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('manageMembers', $this->team))->toBeTrue();+ });++ test('admin can manage team members', function () {+ $this->actingAs($this->admin);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('manageMembers', $this->team))->toBeTrue();+ });++ test('member cannot manage team members', function () {+ $this->actingAs($this->member);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('manageMembers', $this->team))->toBeFalse();+ });++ // --- Team Policy: manageInvitations ---++ test('owner can manage invitations', function () {+ $this->actingAs($this->owner);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('manageInvitations', $this->team))->toBeTrue();+ });++ test('admin can manage invitations', function () {+ $this->actingAs($this->admin);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('manageInvitations', $this->team))->toBeTrue();+ });++ test('member cannot manage invitations', function () {+ $this->actingAs($this->member);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('manageInvitations', $this->team))->toBeFalse();+ });++ // --- Team Index Livewire: update ---++ test('member cannot submit team settings via policy', function () {+ $this->actingAs($this->member);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('update', $this->team))->toBeFalse();+ });++ // --- Team Index Livewire: delete ---++ test('member cannot delete team via index', function () {+ $this->actingAs($this->member);+ session(['currentTeam' => $this->team]);++ Livewire::test(TeamIndex::class)+ ->call('delete', 'password')+ ->assertDispatched('error');++ expect(Team::find($this->team->id))->not->toBeNull();+ });++ test('admin can delete team via policy', function () {+ $this->actingAs($this->admin);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('delete', $this->team))->toBeTrue();+ });++ // --- Team Member Livewire: role changes ---++ test('member cannot change roles via team member component', function () {+ $this->actingAs($this->member);+ session(['currentTeam' => $this->team]);++ Livewire::test(TeamMember::class, ['member' => $this->admin])+ ->call('makeAdmin')+ ->assertDispatched('error');+ });++ test('member cannot remove team members', function () {+ $this->actingAs($this->member);+ session(['currentTeam' => $this->team]);++ Livewire::test(TeamMember::class, ['member' => $this->admin])+ ->call('remove')+ ->assertDispatched('error');+ });++ // --- Invitations & Invite Link (policy checks — views wrapped in @can render empty for members) ---++ test('member cannot manage invitations via policy', function () {+ $this->actingAs($this->member);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('manageInvitations', $this->team))->toBeFalse();+ });++ test('owner can manage invitations via policy', function () {+ $this->actingAs($this->owner);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('manageInvitations', $this->team))->toBeTrue();+ });++ // --- Cross-team isolation ---++ test('user from different team cannot update team', function () {+ $otherTeam = Team::factory()->create();+ $otherUser = User::factory()->create();+ $otherUser->teams()->attach($otherTeam, ['role' => 'owner']);++ $this->actingAs($otherUser);+ session(['currentTeam' => $otherTeam]);++ expect(auth()->user()->can('update', $this->team))->toBeFalse();+ });++ test('user from different team cannot manage members', function () {+ $otherTeam = Team::factory()->create();+ $otherUser = User::factory()->create();+ $otherUser->teams()->attach($otherTeam, ['role' => 'owner']);++ $this->actingAs($otherUser);+ session(['currentTeam' => $otherTeam]);++ expect(auth()->user()->can('manageMembers', $this->team))->toBeFalse();+ });++ // --- Team Policy: view ---++ test('owner can view team', function () {+ $this->actingAs($this->owner);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('view', $this->team))->toBeTrue();+ });++ test('admin can view team', function () {+ $this->actingAs($this->admin);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('view', $this->team))->toBeTrue();+ });++ test('member can view team', function () {+ $this->actingAs($this->member);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('view', $this->team))->toBeTrue();+ });++ test('non-team member cannot view team', function () {+ $outsider = User::factory()->create();+ $this->actingAs($outsider);+ session(['currentTeam' => $this->team]);++ expect($outsider->can('view', $this->team))->toBeFalse();+ });++ // --- Team Policy: viewAdmin ---++ test('owner can view admin panel', function () {+ $this->actingAs($this->owner);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('viewAdmin', $this->team))->toBeTrue();+ });++ test('admin can view admin panel', function () {+ $this->actingAs($this->admin);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('viewAdmin', $this->team))->toBeTrue();+ });++ test('member cannot view admin panel', function () {+ $this->actingAs($this->member);+ session(['currentTeam' => $this->team]);++ expect(auth()->user()->can('viewAdmin', $this->team))->toBeFalse();+ });++ test('non-team member cannot view admin panel', function () {+ $outsider = User::factory()->create();+ $this->actingAs($outsider);+ session(['currentTeam' => $this->team]);++ expect($outsider->can('viewAdmin', $this->team))->toBeFalse();+ });++ // --- Non-team member isolation ---++ test('non-team member cannot update team', function () {+ $outsider = User::factory()->create();+ $this->actingAs($outsider);+ session(['currentTeam' => $this->team]);++ expect($outsider->can('update', $this->team))->toBeFalse();+ });++ test('non-team member cannot delete team', function () {+ $outsider = User::factory()->create();+ $this->actingAs($outsider);+ session(['currentTeam' => $this->team]);++ expect($outsider->can('delete', $this->team))->toBeFalse();+ });++ test('non-team member cannot manage members', function () {+ $outsider = User::factory()->create();+ $this->actingAs($outsider);+ session(['currentTeam' => $this->team]);++ expect($outsider->can('manageMembers', $this->team))->toBeFalse();+ });++ test('non-team member cannot manage invitations', function () {+ $outsider = User::factory()->create();+ $this->actingAs($outsider);+ session(['currentTeam' => $this->team]);++ expect($outsider->can('manageInvitations', $this->team))->toBeFalse();+ });++ // --- Team creation and model-level protection ---++ test('member can create a new independent team', function () {+ $this->actingAs($this->member);+ session(['currentTeam' => $this->team]);++ $newTeam = Team::create([+ 'name' => 'New Team',+ 'description' => 'Created by member',+ 'personal_team' => false,+ ]);++ expect($newTeam)->toBeInstanceOf(Team::class)+ ->and($newTeam->name)->toBe('New Team');+ });++ test('member cannot update an existing team at model level', function () {+ $this->actingAs($this->member);+ session(['currentTeam' => $this->team]);++ expect(fn () => $this->team->update(['name' => 'Hacked']))- ->toThrow(\Exception::class, 'You are not allowed to update this team.');++ ->toThrow(Exception::class, 'You are not allowed to update this team.');+ });diff --cc tests/Feature/Authorization/UploadBackupAuthorizationTest.phpindex 0000000000,126e6ef521..59097b4102mode 000000,100644..100644--- a/tests/Feature/Authorization/UploadBackupAuthorizationTest.php+++ b/tests/Feature/Authorization/UploadBackupAuthorizationTest.php@@@ -1,0 -1,186 +1,194 @@@+ <?php++ use App\Models\Application;+ use App\Models\InstanceSettings;+ use App\Models\Project;+ use App\Models\Server;+ use App\Models\Service;+ use App\Models\ServiceDatabase;+ use App\Models\StandaloneDocker;+ use App\Models\StandalonePostgresql;+ use App\Models\Team;+ use App\Models\User;+ use Illuminate\Foundation\Testing\RefreshDatabase;+ use Illuminate\Support\Facades\DB;+ use Illuminate\Support\Facades\File;++use Illuminate\Support\Once;+ use Illuminate\Support\Str;++ uses(RefreshDatabase::class);++ beforeEach(function () {- InstanceSettings::updateOrCreate(['id' => 0]);++ $this->withoutVite();++++ Once::flush();++++ config(['app.maintenance.driver' => 'file']);++++ InstanceSettings::unguarded(fn () => InstanceSettings::firstOrCreate(['id' => 0]));++ $this->team = Team::factory()->create();++ $this->admin = User::factory()->create();+ $this->admin->teams()->attach($this->team, ['role' => 'admin']);++ $this->member = User::factory()->create();+ $this->member->teams()->attach($this->team, ['role' => 'member']);++ $keyId = DB::table('private_keys')->insertGetId([+ 'uuid' => (string) Str::uuid(),+ 'name' => 'Test Key',+ 'private_key' => 'test-key',+ 'team_id' => $this->team->id,+ 'created_at' => now(),+ 'updated_at' => now(),+ ]);++ $this->server = Server::factory()->create([+ 'team_id' => $this->team->id,+ 'private_key_id' => $keyId,+ ]);++ StandaloneDocker::withoutEvents(function () {+ $this->destination = StandaloneDocker::firstOrCreate(+ ['server_id' => $this->server->id, 'network' => 'coolify'],+ ['uuid' => (string) Str::uuid(), 'name' => 'test-docker']+ );+ });++ $this->project = Project::create([+ 'uuid' => (string) Str::uuid(),+ 'name' => 'Test Project',+ 'team_id' => $this->team->id,+ ]);++ $this->environment = $this->project->environments()->first();++ $this->database = StandalonePostgresql::create([+ 'uuid' => (string) Str::uuid(),+ 'name' => 'Test DB',+ 'postgres_user' => 'postgres',+ 'postgres_password' => 'password',+ 'postgres_db' => 'testdb',+ 'image' => 'postgres:15',+ 'status' => 'running',+ 'environment_id' => $this->environment->id,+ 'destination_id' => $this->destination->id,+ 'destination_type' => $this->destination->getMorphClass(),+ ]);++ $this->application = Application::factory()->create([+ 'uuid' => (string) Str::uuid(),+ 'name' => 'Test App',+ 'environment_id' => $this->environment->id,+ 'destination_id' => $this->destination->id,+ 'destination_type' => $this->destination->getMorphClass(),+ 'status' => 'running',+ ]);++ $this->service = Service::create([+ 'uuid' => (string) Str::uuid(),+ 'name' => 'test-service',+ 'environment_id' => $this->environment->id,+ 'destination_id' => $this->destination->id,+ 'destination_type' => $this->destination->getMorphClass(),+ 'docker_compose_raw' => 'version: "3"',+ ]);++ $this->serviceDatabase = ServiceDatabase::create([+ 'uuid' => (string) Str::uuid(),+ 'name' => 'test-service-db',+ 'service_id' => $this->service->id,+ ]);+ });++ // --- DatabasePolicy::uploadBackup (covers Standalone* databases) ---++ test('admin can upload backup for standalone database', function () {+ expect($this->admin->can('uploadBackup', $this->database))->toBeTrue();+ });++ test('member cannot upload backup for standalone database', function () {+ expect($this->member->can('uploadBackup', $this->database))->toBeFalse();+ });++ // --- ApplicationPolicy::uploadBackup ---++ test('admin can upload backup for application', function () {+ expect($this->admin->can('uploadBackup', $this->application))->toBeTrue();+ });++ test('member cannot upload backup for application', function () {+ expect($this->member->can('uploadBackup', $this->application))->toBeFalse();+ });++ // --- ServicePolicy::uploadBackup ---++ test('admin can upload backup for service', function () {+ expect($this->admin->can('uploadBackup', $this->service))->toBeTrue();+ });++ test('member cannot upload backup for service', function () {+ expect($this->member->can('uploadBackup', $this->service))->toBeFalse();+ });++ // --- ServiceDatabasePolicy::uploadBackup (delegates to ServicePolicy) ---++ test('admin can upload backup for service database', function () {+ expect($this->admin->can('uploadBackup', $this->serviceDatabase))->toBeTrue();+ });++ test('member cannot upload backup for service database', function () {+ expect($this->member->can('uploadBackup', $this->serviceDatabase))->toBeFalse();+ });++ // --- Cross-team isolation ---++ test('user from different team cannot upload backup', function () {+ $otherTeam = Team::factory()->create();+ $otherUser = User::factory()->create();+ $otherUser->teams()->attach($otherTeam, ['role' => 'admin']);++ expect($otherUser->can('uploadBackup', $this->database))->toBeFalse();+ expect($otherUser->can('uploadBackup', $this->application))->toBeFalse();+ expect($otherUser->can('uploadBackup', $this->service))->toBeFalse();+ expect($otherUser->can('uploadBackup', $this->serviceDatabase))->toBeFalse();+ });++ // --- HTTP endpoint: POST /upload/backup/{uuid} ---++ test('member gets 403 from POST /upload/backup and no file lands on disk', function () {+ $uploadDir = storage_path('app/upload/'.$this->database->uuid);+ if (File::exists($uploadDir)) {+ File::deleteDirectory($uploadDir);+ }++ $this->actingAs($this->member);+ session(['currentTeam' => $this->team]);+- $response = $this->post(route('upload.backup', ['databaseUuid' => $this->database->uuid]));++ $response = $this->withHeader('Accept', 'application/json')++ ->post(route('upload.backup', ['databaseUuid' => $this->database->uuid]));++ $response->assertForbidden();++ expect(File::exists($uploadDir.'/restore'))->toBeFalse();+ });++ test('user from different team hits null-resource branch with 500', function () {+ $otherTeam = Team::factory()->create();+ $otherUser = User::factory()->create();+ $otherUser->teams()->attach($otherTeam, ['role' => 'admin']);++ $this->actingAs($otherUser);+ session(['currentTeam' => $otherTeam]);++ $response = $this->post(route('upload.backup', ['databaseUuid' => $this->database->uuid]));++ $response->assertStatus(500);+ });++ test('unauthenticated request is redirected to login', function () {+ $response = $this->post(route('upload.backup', ['databaseUuid' => $this->database->uuid]));++ $response->assertRedirect('/login');+ });diff --cc tests/Feature/Jobs/CheckTraefikVersionJobTest.phpindex cee1564855,cee1564855..86ebd8d169--- a/tests/Feature/Jobs/CheckTraefikVersionJobTest.php+++ b/tests/Feature/Jobs/CheckTraefikVersionJobTest.php@@@ -1,11 -1,11 +1,15 @@@<?php++use App\Jobs\CheckTraefikVersionForServerJob;use App\Models\Server;use App\Models\Team;use App\Notifications\Server\TraefikVersionOutdated;++use Illuminate\Contracts\Queue\ShouldQueue;use Illuminate\Foundation\Testing\RefreshDatabase;++use Illuminate\Support\Facades\Artisan;use Illuminate\Support\Facades\File;use Illuminate\Support\Facades\Notification;++use Illuminate\Support\Facades\Schema;uses(RefreshDatabase::class);@@@ -14,7 -14,7 +18,7 @@@ beforeEach(function ()});it('detects servers table has detected_traefik_version column', function () {-- expect(\Illuminate\Support\Facades\Schema::hasColumn('servers', 'detected_traefik_version'))->toBeTrue();++ expect(Schema::hasColumn('servers', 'detected_traefik_version'))->toBeTrue();});it('server model casts detected_traefik_version as string', function () {@@@ -137,7 -137,7 +141,7 @@@ it('notification channels can be retrie});it('traefik version check command exists', function () {-- $commands = \Illuminate\Support\Facades\Artisan::all();++ $commands = Artisan::all();expect($commands)->toHaveKey('traefik:check-version');});@@@ -181,16 -181,16 +185,16 @@@ it('groups servers by team correctly',});it('server check job exists and has correct structure', function () {-- expect(class_exists(\App\Jobs\CheckTraefikVersionForServerJob::class))->toBeTrue();++ expect(class_exists(CheckTraefikVersionForServerJob::class))->toBeTrue();// Verify CheckTraefikVersionForServerJob has required properties-- $reflection = new \ReflectionClass(\App\Jobs\CheckTraefikVersionForServerJob::class);++ $reflection = new ReflectionClass(CheckTraefikVersionForServerJob::class);expect($reflection->hasProperty('tries'))->toBeTrue();expect($reflection->hasProperty('timeout'))->toBeTrue();// Verify it implements ShouldQueue-- $interfaces = class_implements(\App\Jobs\CheckTraefikVersionForServerJob::class);-- expect($interfaces)->toContain(\Illuminate\Contracts\Queue\ShouldQueue::class);++ $interfaces = class_implements(CheckTraefikVersionForServerJob::class);++ expect($interfaces)->toContain(ShouldQueue::class);});it('sends immediate notifications when outdated traefik is detected', function () {diff --cc tests/Feature/Jobs/CoolifyTaskRetryTest.phpindex 0000000000,46e652051a..8562319af8mode 000000,100644..100644--- a/tests/Feature/Jobs/CoolifyTaskRetryTest.php+++ b/tests/Feature/Jobs/CoolifyTaskRetryTest.php@@@ -1,0 -1,65 +1,65 @@@+ <?php++ use App\Enums\ProcessStatus;+ use App\Jobs\CoolifyTask;+ use App\Models\Server;+ use App\Models\Team;+ use Illuminate\Foundation\Testing\RefreshDatabase;++ uses(RefreshDatabase::class);++ beforeEach(function () {+ $team = Team::factory()->create();+ Server::factory()->create(['team_id' => $team->id]);++ $this->activity = activity()+ ->withProperties([+ 'server_uuid' => Server::first()->uuid,+ 'command' => 'echo "test"',+ 'type' => 'inline',+ 'status' => ProcessStatus::QUEUED->value,+ ])+ ->event('inline')+ ->log('[]');++ $this->job = new CoolifyTask(+ activity: $this->activity,+ ignore_errors: false,+ call_event_on_finish: null,+ call_event_data: null,+ );+ });++ test('has correct retry configuration', function () {+ expect($this->job->tries)->toBe(3)+ ->and($this->job->maxExceptions)->toBe(1)+ ->and($this->job->timeout)->toBe(600)+ ->and($this->job->backoff())->toBe([30, 90, 180]);+ });++ test('is queued on the high priority queue', function () {+ expect($this->job->queue)->toBe('high');+ });++ test('marks activity as error on permanent failure', function () {- $exception = new \RuntimeException('SSH connection failed');++ $exception = new RuntimeException('SSH connection failed');++ $this->job->failed($exception);++ $this->activity->refresh();+ $properties = $this->activity->properties;++ expect($properties['status'])->toBe(ProcessStatus::ERROR->value)+ ->and($properties['error'])->toBe('SSH connection failed')+ ->and($properties)->toHaveKey('failed_at');+ });++ test('marks activity as error with default message when exception is null', function () {+ $this->job->failed(null);++ $this->activity->refresh();+ $properties = $this->activity->properties;++ expect($properties['status'])->toBe(ProcessStatus::ERROR->value)+ ->and($properties['error'])->toBe('Job permanently failed');+ });diff --cc tests/Feature/Proxy/RestartProxyTest.phpindex 5771a58f7c,2c30c98356..f4bad63eb6--- a/tests/Feature/Proxy/RestartProxyTest.php+++ b/tests/Feature/Proxy/RestartProxyTest.php@@@ -1,139 -1,90 +1,91 @@@<?php- namespace Tests\Feature\Proxy;-- use App\Jobs\RestartProxyJob;++use App\Enums\ProxyTypes;+ use App\Models\InstanceSettings;use App\Models\Server;use App\Models\Team;use App\Models\User;use Illuminate\Foundation\Testing\RefreshDatabase;- use Illuminate\Support\Facades\Queue;use Livewire\Livewire;- use Tests\TestCase;- class RestartProxyTest extends TestCase+ uses(RefreshDatabase::class);++ beforeEach(function () {+ InstanceSettings::create(['id' => 0]);+ });++ function setupProxyUser(string $role): array{- use RefreshDatabase;+ $team = Team::factory()->create();+ $user = User::factory()->create();+ $user->teams()->attach($team, ['role' => $role]);- protected User $user;+ $server = Server::factory()->create([+ 'team_id' => $team->id,+ 'name' => 'Test Server',+ 'ip' => '192.168.1.100',+ ]);- protected Team $team;+ return [$user, $team, $server];+ }- protected Server $server;-- protected function setUp(): void- {- parent::setUp();-- // Create test user and team- $this->user = User::factory()->create();- $this->team = Team::factory()->create(['name' => 'Test Team']);- $this->user->teams()->attach($this->team);-- // Create test server- $this->server = Server::factory()->create([- 'team_id' => $this->team->id,- 'name' => 'Test Server',- 'ip' => '192.168.1.100',- ]);-- // Authenticate user- $this->actingAs($this->user);- }-- public function test_restart_dispatches_job_for_all_servers()- {- Queue::fake();-- Livewire::test('server.navbar', ['server' => $this->server])- ->call('restart');-- // Assert job was dispatched- Queue::assertPushed(RestartProxyJob::class, function ($job) {- return $job->server->id === $this->server->id;- });- }-- public function test_restart_dispatches_job_for_localhost_server()- {- Queue::fake();-- // Create localhost server (id = 0)- $localhostServer = Server::factory()->create([- 'id' => 0,- 'team_id' => $this->team->id,- 'name' => 'Localhost',- 'ip' => 'host.docker.internal',- ]);-- Livewire::test('server.navbar', ['server' => $localhostServer])- ->call('restart');-- // Assert job was dispatched- Queue::assertPushed(RestartProxyJob::class, function ($job) use ($localhostServer) {- return $job->server->id === $localhostServer->id;- });- }-- public function test_restart_shows_info_message()- {- Queue::fake();-- Livewire::test('server.navbar', ['server' => $this->server])- ->call('restart')- ->assertDispatched('info', 'Proxy restart initiated. Monitor progress in activity logs.');- }-- public function test_unauthorized_user_cannot_restart_proxy()- {- Queue::fake();-- // Create another user without access- $unauthorizedUser = User::factory()->create();- $this->actingAs($unauthorizedUser);-- Livewire::test('server.navbar', ['server' => $this->server])- ->call('restart')- ->assertForbidden();-- // Assert job was NOT dispatched- Queue::assertNotPushed(RestartProxyJob::class);- }-- public function test_restart_prevents_concurrent_jobs_via_without_overlapping()- {- Queue::fake();-- // Dispatch job twice- Livewire::test('server.navbar', ['server' => $this->server])- ->call('restart');-- Livewire::test('server.navbar', ['server' => $this->server])- ->call('restart');-- // Assert job was pushed twice (WithoutOverlapping middleware will handle deduplication)- Queue::assertPushed(RestartProxyJob::class, 2);-- // Get the jobs- $jobs = Queue::pushed(RestartProxyJob::class);-- // Verify both jobs have WithoutOverlapping middleware- foreach ($jobs as $job) {- $middleware = $job['job']->middleware();- $this->assertCount(1, $middleware);- $this->assertInstanceOf(\Illuminate\Queue\Middleware\WithoutOverlapping::class, $middleware[0]);- }- }-- public function test_restart_uses_server_team_id()- {- Queue::fake();-- Livewire::test('server.navbar', ['server' => $this->server])- ->call('restart');-- Queue::assertPushed(RestartProxyJob::class, function ($job) {- return $job->server->team_id === $this->team->id;- });- }+ function makeServerProxyRunning(Server $server): void+ {+ $server->settings()->update([+ 'is_reachable' => true,+ 'is_usable' => true,+ ]);+ $server->proxy->status = 'running';- $server->proxy->type = \App\Enums\ProxyTypes::TRAEFIK->value;++ $server->proxy->type = ProxyTypes::TRAEFIK->value;+ $server->save();+ $server->refresh();}++ test('member cannot see proxy restart and stop buttons', function () {+ [$user, $team, $server] = setupProxyUser('member');+ makeServerProxyRunning($server);++ // Mock proxySet to bypass SQLite boolean casting issue with force_disabled+ $mock = Mockery::mock($server)->makePartial();+ $mock->shouldReceive('proxySet')->andReturn(true);++ $this->actingAs($user);+ session(['currentTeam' => $team]);++ Livewire::test('server.navbar', ['server' => $mock])+ ->assertDontSee('Restart Proxy')+ ->assertDontSee('Stop Proxy');+ });++ test('admin can see proxy restart and stop buttons', function () {+ [$user, $team, $server] = setupProxyUser('admin');+ makeServerProxyRunning($server);++ $mock = Mockery::mock($server)->makePartial();+ $mock->shouldReceive('proxySet')->andReturn(true);++ $this->actingAs($user);+ session(['currentTeam' => $team]);++ Livewire::test('server.navbar', ['server' => $mock])+ ->assertSee('Restart Proxy')+ ->assertSee('Stop Proxy');+ });++ test('member cannot see start proxy button', function () {+ [$user, $team, $server] = setupProxyUser('member');++ $server->proxy->status = 'exited';- $server->proxy->type = \App\Enums\ProxyTypes::TRAEFIK->value;++ $server->proxy->type = ProxyTypes::TRAEFIK->value;+ $server->save();+ $server->refresh();++ $mock = Mockery::mock($server)->makePartial();+ $mock->shouldReceive('proxySet')->andReturn(true);++ $this->actingAs($user);+ session(['currentTeam' => $team]);++ Livewire::test('server.navbar', ['server' => $mock])+ ->assertDontSee('Start Proxy');+ });diff --cc tests/Feature/Security/IpAllowlistTest.phpindex 1b14b79e86,1b14b79e86..a95f1566b2--- a/tests/Feature/Security/IpAllowlistTest.php+++ b/tests/Feature/Security/IpAllowlistTest.php@@@ -1,5 -1,5 +1,7 @@@<?php++use App\Rules\ValidIpOrCidr;++test('IP allowlist with single IPs', function () {$testCases = [['ip' => '192.168.1.100', 'allowlist' => ['192.168.1.100'], 'expected' => true],@@@ -200,7 -200,7 +202,7 @@@ test('IP allowlist comma-separated stri});test('ValidIpOrCidr validation rule', function () {-- $rule = new \App\Rules\ValidIpOrCidr;++ $rule = new ValidIpOrCidr;// Helper function to test validation$validate = function ($value) use ($rule) {@@@ -248,7 -248,7 +250,7 @@@});test('ValidIpOrCidr validation rule error messages', function () {-- $rule = new \App\Rules\ValidIpOrCidr;++ $rule = new ValidIpOrCidr;// Helper function to get error message$getError = function ($value) use ($rule) {diff --cc tests/Feature/Security/TrustHostsMiddlewareTest.phpindex 0000000000,5c60b30d68..9a44be14bcmode 000000,100644..100644--- a/tests/Feature/Security/TrustHostsMiddlewareTest.php+++ b/tests/Feature/Security/TrustHostsMiddlewareTest.php@@@ -1,0 -1,360 +1,361 @@@+ <?php++ use App\Http\Middleware\TrustHosts;+ use App\Models\InstanceSettings;++use Illuminate\Foundation\Testing\RefreshDatabase;+ use Illuminate\Support\Facades\Cache;+-uses(\Illuminate\Foundation\Testing\RefreshDatabase::class);++uses(RefreshDatabase::class);++ beforeEach(function () {+ // Clear cache before each test to ensure isolation+ Cache::forget('instance_settings_fqdn_host');+ });++ it('trusts the configured FQDN from InstanceSettings', function () {+ // Create instance settings with FQDN+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => 'https://coolify.example.com']+ );++ $middleware = new TrustHosts($this->app);+ $hosts = $middleware->hosts();++ expect($hosts)->toContain('coolify.example.com');+ });++ it('rejects password reset request with malicious host header', function () {+ // Set up instance settings with legitimate FQDN+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => 'https://coolify.example.com']+ );++ $middleware = new TrustHosts($this->app);+ $hosts = $middleware->hosts();++ // The malicious host should NOT be in the trusted hosts+ expect($hosts)->not->toContain('coolify.example.com.evil.com');+ expect($hosts)->toContain('coolify.example.com');+ });++ it('handles missing FQDN gracefully', function () {+ // Create instance settings without FQDN+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => null]+ );++ $middleware = new TrustHosts($this->app);+ $hosts = $middleware->hosts();++ // Should still return APP_URL pattern without throwing+ expect($hosts)->not->toBeEmpty();+ });++ it('filters out null and empty values from trusted hosts', function () {+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => '']+ );++ $middleware = new TrustHosts($this->app);+ $hosts = $middleware->hosts();++ // Should not contain empty strings or null+ foreach ($hosts as $host) {+ if ($host !== null) {+ expect($host)->not->toBeEmpty();+ }+ }+ });++ it('extracts host from FQDN with protocol and port', function () {+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => 'https://coolify.example.com:8443']+ );++ $middleware = new TrustHosts($this->app);+ $hosts = $middleware->hosts();++ expect($hosts)->toContain('coolify.example.com');+ });++ it('handles exception during InstanceSettings fetch', function () {+ // Drop the instance_settings table to simulate installation- \Schema::dropIfExists('instance_settings');++ Schema::dropIfExists('instance_settings');++ $middleware = new TrustHosts($this->app);++ // Should not throw an exception+ $hosts = $middleware->hosts();++ expect($hosts)->not->toBeEmpty();+ });++ it('trusts IP addresses with port', function () {+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => 'http://65.21.3.91:8000']+ );++ $middleware = new TrustHosts($this->app);+ $hosts = $middleware->hosts();++ expect($hosts)->toContain('65.21.3.91');+ });++ it('trusts IP addresses without port', function () {+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => 'http://192.168.1.100']+ );++ $middleware = new TrustHosts($this->app);+ $hosts = $middleware->hosts();++ expect($hosts)->toContain('192.168.1.100');+ });++ it('rejects malicious host when using IP address', function () {+ // Simulate an instance using IP address+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => 'http://65.21.3.91:8000']+ );++ $middleware = new TrustHosts($this->app);+ $hosts = $middleware->hosts();++ // The malicious host attempting to mimic the IP should NOT be trusted+ expect($hosts)->not->toContain('65.21.3.91.evil.com');+ expect($hosts)->not->toContain('evil.com');+ expect($hosts)->toContain('65.21.3.91');+ });++ it('trusts IPv6 addresses', function () {+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => 'http://[2001:db8::1]:8000']+ );++ $middleware = new TrustHosts($this->app);+ $hosts = $middleware->hosts();++ // IPv6 addresses are enclosed in brackets, getHost() should handle this+ expect($hosts)->toContain('[2001:db8::1]');+ });++ it('invalidates cache when FQDN is updated', function () {+ // Set initial FQDN+ $settings = InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => 'https://old-domain.com']+ );++ // First call should cache it+ $middleware = new TrustHosts($this->app);+ $hosts1 = $middleware->hosts();+ expect($hosts1)->toContain('old-domain.com');++ // Verify cache exists+ expect(Cache::has('instance_settings_fqdn_host'))->toBeTrue();++ // Update FQDN - should trigger cache invalidation+ $settings->fqdn = 'https://new-domain.com';+ $settings->save();++ // Cache should be cleared+ expect(Cache::has('instance_settings_fqdn_host'))->toBeFalse();++ // New call should return updated host+ $middleware2 = new TrustHosts($this->app);+ $hosts2 = $middleware2->hosts();+ expect($hosts2)->toContain('new-domain.com');+ expect($hosts2)->not->toContain('old-domain.com');+ });++ it('caches trusted hosts to avoid database queries on every request', function () {+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => 'https://coolify.example.com']+ );++ // Clear cache first+ Cache::forget('instance_settings_fqdn_host');++ // First call - should query database and cache result+ $middleware1 = new TrustHosts($this->app);+ $hosts1 = $middleware1->hosts();++ // Verify result is cached+ expect(Cache::has('instance_settings_fqdn_host'))->toBeTrue();+ expect(Cache::get('instance_settings_fqdn_host'))->toBe('coolify.example.com');++ // Subsequent calls should use cache (no DB query)+ $middleware2 = new TrustHosts($this->app);+ $hosts2 = $middleware2->hosts();++ expect($hosts1)->toBe($hosts2);+ expect($hosts2)->toContain('coolify.example.com');+ });++ it('caches negative results when no FQDN is configured', function () {+ // Create instance settings without FQDN+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => null]+ );++ // Clear cache first+ Cache::forget('instance_settings_fqdn_host');++ // First call - should query database and cache empty string sentinel+ $middleware1 = new TrustHosts($this->app);+ $hosts1 = $middleware1->hosts();++ // Verify empty string sentinel is cached (not null, which wouldn't be cached)+ expect(Cache::has('instance_settings_fqdn_host'))->toBeTrue();+ expect(Cache::get('instance_settings_fqdn_host'))->toBe('');++ // Subsequent calls should use cached sentinel value+ $middleware2 = new TrustHosts($this->app);+ $hosts2 = $middleware2->hosts();++ expect($hosts1)->toBe($hosts2);+ // Should only contain APP_URL pattern, not any FQDN+ expect($hosts2)->not->toBeEmpty();+ });++ it('skips host validation for terminal auth routes', function () {+ // These routes should be accessible with any Host header (for internal container communication)+ $response = $this->postJson('/terminal/auth', [], [+ 'Host' => 'coolify:8080', // Internal Docker host+ ]);++ // Should not get 400 Bad Host (might get 401 Unauthorized instead)+ expect($response->status())->not->toBe(400);+ });++ it('skips host validation for terminal auth ips route', function () {+ // These routes should be accessible with any Host header (for internal container communication)+ $response = $this->postJson('/terminal/auth/ips', [], [+ 'Host' => 'soketi:6002', // Another internal Docker host+ ]);++ // Should not get 400 Bad Host (might get 401 Unauthorized instead)+ expect($response->status())->not->toBe(400);+ });++ it('still enforces host validation for non-terminal routes', function () {+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => 'https://coolify.example.com']+ );++ // Regular routes should still validate Host header+ $response = $this->get('/', [+ 'Host' => 'evil.com',+ ]);++ // Should get 400 Bad Host for untrusted host+ expect($response->status())->toBe(400);+ });++ it('skips host validation for API routes', function () {+ // All API routes use token-based auth (Sanctum), not host validation+ // They should be accessible from any host (mobile apps, CLI tools, scripts)++ // Test health check endpoint+ $response = $this->get('/api/health', [+ 'Host' => 'internal-lb.local',+ ]);+ expect($response->status())->not->toBe(400);++ // Test v1 health check+ $response = $this->get('/api/v1/health', [+ 'Host' => '10.0.0.5',+ ]);+ expect($response->status())->not->toBe(400);++ // Test feedback endpoint+ $response = $this->post('/api/feedback', [], [+ 'Host' => 'mobile-app.local',+ ]);+ expect($response->status())->not->toBe(400);+ });++ it('trusts localhost when FQDN is configured', function () {+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => 'https://coolify.example.com']+ );++ $middleware = new TrustHosts($this->app);+ $hosts = $middleware->hosts();++ expect($hosts)->toContain('localhost');+ });++ it('trusts 127.0.0.1 when FQDN is configured', function () {+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => 'https://coolify.example.com']+ );++ $middleware = new TrustHosts($this->app);+ $hosts = $middleware->hosts();++ expect($hosts)->toContain('127.0.0.1');+ });++ it('trusts IPv6 loopback when FQDN is configured', function () {+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => 'https://coolify.example.com']+ );++ $middleware = new TrustHosts($this->app);+ $hosts = $middleware->hosts();++ expect($hosts)->toContain('[::1]');+ });++ it('allows local access via localhost when FQDN is configured and request uses localhost host header', function () {+ InstanceSettings::updateOrCreate(+ ['id' => 0],+ ['fqdn' => 'https://coolify.example.com']+ );++ $response = $this->get('/', [+ 'Host' => 'localhost',+ ]);++ // Should NOT be rejected as untrusted host (would be 400)+ expect($response->status())->not->toBe(400);+ });++ it('skips host validation for webhook endpoints', function () {+ // All webhook routes are under /webhooks/* prefix (see RouteServiceProvider)+ // and use cryptographic signature validation instead of host validation++ // Test GitHub webhook+ $response = $this->post('/webhooks/source/github/events', [], [+ 'Host' => 'github-webhook-proxy.local',+ ]);+ expect($response->status())->not->toBe(400);++ // Test GitLab webhook+ $response = $this->post('/webhooks/source/gitlab/events/manual', [], [+ 'Host' => 'gitlab.example.com',+ ]);+ expect($response->status())->not->toBe(400);++ // Test Stripe webhook+ $response = $this->post('/webhooks/payments/stripe/events', [], [+ 'Host' => 'stripe-webhook-forwarder.local',+ ]);+ expect($response->status())->not->toBe(400);+ });diff --cc tests/Pest.phpindex cec77b86f4,67bcbda81e..81df3649b1--- a/tests/Pest.php+++ b/tests/Pest.php@@@ -2,6 -2,6 +2,7 @@@use App\Models\Server;use Illuminate\Support\Once;++use Tests\TestCase;/*|--------------------------------------------------------------------------@@@ -13,7 -13,7 +14,7 @@@| need to change it using the "uses()" function to bind a different classes or traits.|*/--uses(Tests\TestCase::class)->in('Feature', 'v4/Feature', 'v4/Browser');++uses(TestCase::class)->in('Feature', 'v4/Feature', 'v4/Browser');/*|--------------------------------------------------------------------------diff --cc tests/Unit/DatabaseBackupSecurityTest.phpindex 10012950d0,10012950d0..81075be5b9--- a/tests/Unit/DatabaseBackupSecurityTest.php+++ b/tests/Unit/DatabaseBackupSecurityTest.php@@@ -182,7 -182,7 +182,7 @@@ test('escapeshellarg neutralizes comman$escaped = escapeshellarg($maliciousPassword);// Single quotes in the value get escaped as '\''-- expect($escaped)->toBe("'pass'\\'''; whoami; echo '\\'''");++ expect($escaped)->toBe("'pass'\\''; whoami; echo '\\'''");$command = "docker exec container mariadb-dump -u root -p$escaped db";// Verify the command doesn't contain an unescaped semicolon outside quotesexpect($command)->toContain("-p'pass'");