Mitiate SSRF attack

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-04-20 12:10:56 +02:00
parent 5b8918bd5a
commit 472ca703b5
9 changed files with 83 additions and 8 deletions

View File

@@ -40,7 +40,7 @@ func (c *APIKeyConnection) Client(ctx context.Context) (*http.Client, error) {
transport := &oauth2Transport{
token: c.APIKey,
tokenType: "Bearer",
underlying: httpclient.DefaultPooledTransport(),
underlying: httpclient.DefaultPooledTransport(httpclient.WithSSRFProtection()),
}
return &http.Client{Transport: transport}, nil
}