Skip to content

Conversation

@bradlarsen
Copy link
Contributor

This PR updates a handful of detectors that use http.DefaultClient for liveness verification to instead use detectors.DetectorHttpClientWithNoLocalAddresses. This latter client avoids SSRF by ignoring redirects and blocking access to non-routing IPs, and also adds HTTP instrumentation.

This PR also fixes a few code nits reported by staticcheck.

@bradlarsen bradlarsen requested a review from a team January 15, 2026 20:18
@bradlarsen bradlarsen requested review from a team as code owners January 15, 2026 20:18
Copy link
Contributor

@camgunz camgunz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bradlarsen bradlarsen merged commit 913d7a0 into main Jan 16, 2026
13 checks passed
@bradlarsen bradlarsen deleted the swap-default-http-clients branch January 16, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants