coolify/app/Livewire/Security
Andras Bacsai d93a13eeee feat: add YAML validation for cloud-init scripts
Add ValidCloudInitYaml validation rule to ensure cloud-init scripts
are properly formatted before saving. The validator supports:
- Cloud-config YAML (with or without #cloud-config header)
- Bash scripts (starting with #!)
- Empty/null values (optional field)

Uses Symfony YAML parser to validate YAML syntax and provides
detailed error messages when validation fails.

Added comprehensive unit tests covering:
- Valid cloud-config with/without header
- Valid bash scripts
- Invalid YAML syntax detection
- Complex multi-section cloud-config

Applied validation to:
- ByHetzner component (server creation)
- CloudInitScriptForm component (script management)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-11 13:56:55 +02:00
..
PrivateKey feat: add modal support for creating private keys in server creation form and enhance UI for private key selection 2025-10-10 15:53:17 +02:00
ApiTokens.php feat(acl): Change views/backend code to able to use proper ACL's later on. Currently it is not enabled. 2025-08-26 10:27:38 +02:00
CloudInitScriptForm.php feat: add YAML validation for cloud-init scripts 2025-10-11 13:56:55 +02:00
CloudInitScripts.php feat: add cloud-init scripts management UI in Security section 2025-10-11 12:42:09 +02:00
CloudProviderTokenForm.php improved hetzner features 2025-10-09 12:53:57 +02:00
CloudProviderTokens.php improved hetzner features 2025-10-09 12:53:57 +02:00
CloudTokens.php init of cloud providers 2025-10-08 20:47:50 +02:00