ipn/ipnlocal: log ACME Order URL for invalid Orders

WaitOrder error does not usually include authorization failure
reason, but that can be looked up following the Order URL.

Updates tailscale/corp#27651

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
This commit is contained in:
Irbe Krumina 2025-04-19 11:36:27 +01:00
parent 7090f7fffc
commit 8568ada34c

View File

@ -602,9 +602,9 @@ var getCertPEM = func(ctx context.Context, b *LocalBackend, cs certStore, logf l
return nil, ctx.Err()
}
if oe, ok := err.(*acme.OrderError); ok {
logf("acme: WaitOrder: OrderError status %q", oe.Status)
logf("acme: WaitOrder: OrderError status %q, Order URL %q", oe.Status, orderURI)
} else {
logf("acme: WaitOrder error: %v", err)
logf("acme: WaitOrder error: %v, Order URL %q", err, orderURI)
}
return nil, err
}