fix(engine-b): treat unreachable cert endpoint as not-ready (poll, not retry-burn)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
feat/portal-design
nexxo 2026-07-25 12:52:37 +02:00
parent 03c4b6508f
commit 483a79a822
1 changed files with 8 additions and 1 deletions

View File

@ -35,7 +35,14 @@ class SshTraefikWriter implements TraefikWriter
public function certReachable(string $fqdn): bool
{
// While DNS propagates / Traefik warms up, the client throws
// (ConnectionException, TLS) — that's "not ready yet", not a hard error,
// so the step keeps polling instead of burning the retry budget.
try {
return Http::timeout(5)->connectTimeout(5)->get("https://{$fqdn}/status.php")->successful();
} catch (\Throwable) {
return false;
}
}
private function render(string $subdomain, string $fqdn, string $targetHost): string