coolify/app/Actions/Service
Andras Bacsai 3d1b9f53a0 fix: add validation and escaping for Docker network names
Add strict validation for Docker network names using a regex pattern
that matches Docker's naming rules (alphanumeric start, followed by
alphanumeric, dots, hyphens, underscores).

Changes:
- Add DOCKER_NETWORK_PATTERN to ValidationPatterns with helper methods
- Validate network field in Destination creation and update Livewire components
- Add setNetworkAttribute mutator on StandaloneDocker and SwarmDocker models
- Apply escapeshellarg() to all network field usages in shell commands across
  ApplicationDeploymentJob, DatabaseBackupJob, StartService, Init command,
  proxy helpers, and Destination/Show
- Add comprehensive tests for pattern validation and model mutator

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-28 12:28:59 +01:00
..
DeleteService.php fix(storage): use escapeshellarg for volume names in shell commands 2026-03-26 11:06:30 +01:00
RestartService.php feat(api): Add latest query param to Service restart API (#5881) 2025-05-27 15:03:17 +02:00
StartService.php fix: add validation and escaping for Docker network names 2026-03-28 12:28:59 +01:00
StopService.php Fix: Cancel in-progress deployments when stopping service 2025-12-04 08:23:32 +01:00