ipn/ipnlocal: log cert renewal failures (#18246) (#18247)

Updates#cleanup


(cherry picked from commit b73fb467e45dc501680200e667c84753120a8bbb)

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
This commit is contained in:
Irbe Krumina 2025-12-18 10:06:03 +00:00 committed by GitHub
parent 3e7abb6685
commit 0d206ffe68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -144,7 +144,11 @@ func (b *LocalBackend) GetCertPEMWithValidity(ctx context.Context, domain string
if minValidity == 0 { if minValidity == 0 {
logf("starting async renewal") logf("starting async renewal")
// Start renewal in the background, return current valid cert. // Start renewal in the background, return current valid cert.
b.goTracker.Go(func() { getCertPEM(context.Background(), b, cs, logf, traceACME, domain, now, minValidity) }) b.goTracker.Go(func() {
if _, err := getCertPEM(context.Background(), b, cs, logf, traceACME, domain, now, minValidity); err != nil {
logf("async renewal failed: getCertPem: %v", err)
}
})
return pair, nil return pair, nil
} }
// If the caller requested a specific validity duration, fall through // If the caller requested a specific validity duration, fall through