From 5c0db6b5600a85a47b1086ff4645b3b5ebbae217 Mon Sep 17 00:00:00 2001 From: Noah Stride Date: Fri, 1 Dec 2023 18:09:22 +0000 Subject: [PATCH] Switch to webclient.Find from webclient.Ping for `tbot` --- lib/tbot/impersonated_identity.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tbot/impersonated_identity.go b/lib/tbot/impersonated_identity.go index 904d212119edc..9e11999079613 100644 --- a/lib/tbot/impersonated_identity.go +++ b/lib/tbot/impersonated_identity.go @@ -675,7 +675,9 @@ func (drc *outputRenewalCache) proxyPing(ctx context.Context) (*webclient.PingRe return nil, trace.Wrap(err) } - proxyPong, err := webclient.Ping(&webclient.Config{ + // We use find instead of Ping as it's less resource intense and we can + // ping the AuthServer directly for its configuration if necessary. + proxyPong, err := webclient.Find(&webclient.Config{ Context: ctx, ProxyAddr: authPong.ProxyPublicAddr, Insecure: drc.cfg.Insecure,