• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 28113988573
67%

Build:
DEFAULT BRANCH: main
Ran 24 Jun 2026 04:40PM UTC
Jobs 1
Files 763
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

24 Jun 2026 04:35PM UTC coverage: 67.121% (-0.06%) from 67.178%
28113988573

push

github

web-flow
Allow private IPs for in-cluster OIDC and OAuth2 upstream providers (#5618)

* Add AllowPrivateIPs flag to OIDC and OAuth2 upstream configs

Fixes in-cluster provider deployments (e.g. dex, Keycloak as a
ClusterIP service) that were blocked because the HTTP client
unconditionally rejected private IP ranges at dial time.

- Add AllowPrivateIPs bool to OIDCUpstreamRunConfig and
  OAuth2UpstreamRunConfig (serializable, json/yaml tagged, omitempty)
- Add AllowPrivateIPs bool to upstream.OIDCConfig and upstream.OAuth2Config
- Update newHTTPClientForHost to accept an allowPrivateIPs parameter;
  pass allowInsecure || allowPrivateIPs to WithPrivateIPs so the flag
  widens only the private-IP gate — HTTPS is still required for
  non-localhost hosts
- Propagate the flag through buildOIDCConfig and buildPureOAuth2Config
  in the embedded auth server runner
- Add unit tests for newHTTPClientForHost and config propagation

Implements #5614

* Propagate AllowPrivateIPs into OIDC internal oauth2Config and clarify test

Address review feedback:

- Set AllowPrivateIPs on the internal OAuth2Config derived from OIDC
  discovery so the field is consistent for logging and future introspection
- Add a comment to TestNewHTTPClientForHost explaining why the 500ms
  context deadline is sufficient and why the NotContains assertion
  is not vacuous (the private-IP guard fires synchronously before
  any network I/O)

* Regenerate API docs after adding AllowPrivateIPs fields

9 of 9 new or added lines in 3 files covered. (100.0%)

69 existing lines in 3 files now uncovered.

69620 of 103723 relevant lines covered (67.12%)

65.35 hits per line

Coverage Regressions

Lines Coverage ∆ File
61
62.12
-4.92% pkg/workloads/manager.go
5
0.0
-100.0% pkg/workloads/sysproc_unix.go
3
71.85
-1.11% pkg/ignore/processor.go
Jobs
ID Job ID Ran Files Coverage
1 28113988573.1 24 Jun 2026 04:40PM UTC 763
67.12
GitHub Action Run
Source Files on build 28113988573
  • Tree
  • List 763
  • Changed 10
  • Source Changed 5
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28113988573
  • baa8bb45 on github
  • Prev Build on main (#28109840871)
  • Next Build on main (#28114966800)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc