fix(api): secure proxy config, clone volumes, and rollback tags (#11003)

This commit is contained in:
Andras Bacsai
2026-07-22 14:52:11 +02:00
committed by GitHub
parent 16972f6483
commit e560bdf9e0
43 changed files with 16229 additions and 29 deletions
+16 -2
View File
@@ -216,9 +216,23 @@ class SafeWebhookUrl implements ValidationRule
$customDnsServers = $this->customDnsServers();
if ($customDnsServers !== []) {
return $this->resolveHostWithCustomDnsServers($host, $customDnsServers);
$customResolvedIps = $this->resolveHostWithCustomDnsServers($host, $customDnsServers);
// Fall back to the system resolver when custom DNS has no answer so
// docker/internal hostnames (e.g. coolify-minio) still work with an
// instance-level public DNS server configured.
if ($customResolvedIps !== []) {
return $customResolvedIps;
}
}
return $this->resolveHostWithSystemDns($host);
}
/**
* @return array<int, string>
*/
protected function resolveHostWithSystemDns(string $host): array
{
$records = @dns_get_record($host, DNS_A | DNS_AAAA);
if ($records === false) {
$records = [];
@@ -249,7 +263,7 @@ class SafeWebhookUrl implements ValidationRule
* @param array<int, string> $dnsServers
* @return array<int, string>
*/
private function resolveHostWithCustomDnsServers(string $host, array $dnsServers): array
protected function resolveHostWithCustomDnsServers(string $host, array $dnsServers): array
{
$ips = [];