coolify/app/Rules
Andras Bacsai 297e9c41e1 refactor(storage): tighten S3 endpoint URL validation
Reuse the existing SafeWebhookUrl rule on the S3 Storage endpoint field so
the create and edit forms go through the same URL-normalization path as
webhook settings. Adds a matching guard inside S3Storage::testConnection()
so background callers (scheduled backups, database import reuse) also
validate the endpoint before building the S3 client.

Also fixes an IPv6-bracket edge case in SafeWebhookUrl so `http://[::1]`
style hosts are normalized before the filter_var IP check — the rule's
own loopback test was already asserting this behaviour.
2026-04-20 11:50:19 +02:00
..
DockerImageFormat.php feat(docker): enhance Docker image handling with new validation and parsing logic 2025-10-03 11:31:00 +02:00
SafeExternalUrl.php fix: add URL validation for GitHub source api_url and html_url fields 2026-03-26 13:45:33 +01:00
SafeWebhookUrl.php refactor(storage): tighten S3 endpoint URL validation 2026-04-20 11:50:19 +02:00
ValidCloudInitYaml.php feat: add YAML validation for cloud-init scripts 2025-10-11 13:56:55 +02:00
ValidDnsServers.php fix(validation): add IP validation for custom DNS servers input 2026-03-28 22:30:17 +05:30
ValidGitBranch.php feat(validation): add custom validation rules for Git repository URLs and branches 2025-08-22 14:38:21 +02:00
ValidGitRepositoryUrl.php fix(validation): update git:// URL validation to support port numbers and tilde characters in paths 2025-09-29 12:21:15 +02:00
ValidHostname.php feat(validation): make hostname validation case-insensitive and expand allowed characters 2026-03-24 08:03:08 +01:00
ValidIpOrCidr.php fix(server): handle limit edge case and IPv6 allowlist dedupe 2026-03-03 17:03:46 +01:00
ValidProxyConfigFilename.php Add ValidProxyConfigFilename rule for dynamic proxy config validation 2025-12-09 16:12:45 +01:00
ValidServerIp.php chore: prepare for PR 2026-03-03 11:51:38 +01:00