From 46444b33c76acdb07869f531e0cb79e828468a62 Mon Sep 17 00:00:00 2001 From: Keerthan Reddy Mala Date: Wed, 16 Oct 2024 12:03:27 -0700 Subject: [PATCH] add default timeout for http client --- pkg/token/token.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/token/token.go b/pkg/token/token.go index 716a8cb12..728163aa0 100644 --- a/pkg/token/token.go +++ b/pkg/token/token.go @@ -457,6 +457,7 @@ func NewVerifier(clusterID, partitionID, region string) Verifier { CheckRedirect: func(req *http.Request, via []*http.Request) error { return http.ErrUseLastResponse }, + Timeout: 10 * time.Second, }, clusterID: clusterID, validSTShostnames: stsHostsForPartition(partitionID, region),