mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 06:17:36 +00:00
fix(security): enforce team access on mutable actions
Authorize cloud provider token access, audit sensitive operations, and standardize public IDs across deployment and resource flows.
This commit is contained in:
1 parent
9dca7ca351
commit
062ad57740
83 files changed
+824
-278
No files matched your search
@@ -9,7 +9,6 @@ use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
||||
use Livewire\Attributes\Locked;
|
||||
use Livewire\Attributes\Validate;
|
||||
use Livewire\Component;
|
||||
use Visus\Cuid2\Cuid2;
|
||||
|
||||
class Docker extends Component
|
||||
{
|
||||
@@ -35,7 +34,7 @@ class Docker extends Component
|
||||
|
||||
public function mount(?string $server_id = null): void
|
||||
{
|
||||
$this->network = (string) new Cuid2;
|
||||
$this->network = new_public_id();
|
||||
$this->servers = Server::isUsable()->get();
|
||||
|
||||
if (filled($server_id)) {
|
||||
@@ -68,7 +67,7 @@ class Docker extends Component
|
||||
|
||||
public function generateName(): void
|
||||
{
|
||||
$name = data_get($this->selectedServer, 'name', new Cuid2);
|
||||
$name = data_get($this->selectedServer, 'name', new_public_id());
|
||||
$this->name = str("{$name}-{$this->network}")->kebab();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user