Skip to content

Conversation

@hulto
Copy link
Collaborator

@hulto hulto commented Jan 10, 2026

What type of PR is this?

/kind cleanup
/kind feature

What this PR does / why we need it:

  • Adds grpc, http1, doh, dns to defaults
  • Adds proxy & doh support to http1 transport
  • fixes grpc doh & proxy support

Which issue(s) this PR fixes:

Fixes #

claude and others added 6 commits January 10, 2026 20:05
This commit updates the HTTP1 transport to support DNS-over-HTTPS (DOH)
and SOCKS/HTTP proxy configuration, similar to how the gRPC transport
implements these features.

Changes:
- Added HttpClientInner enum to handle multiple client connector types:
  * Plain: Basic HTTP connector
  * Proxy: HTTP proxy connector
  * Doh: DOH-enabled connector (feature-gated)
  * DohProxy: Combined DOH + proxy connector (feature-gated)
- Updated HTTP::new() to parse the 'extra' field from transport config
- Added support for "DOH" configuration in extra field (requires grpc-doh feature)
- Added support for "http_proxy" configuration in extra field
- Both features can be combined for DOH + proxy configuration

Configuration format (JSON in extra field):
{
  "DOH": "cloudflare",           // Optional: Enable DOH
  "http_proxy": "socks5://..."   // Optional: Enable SOCKS proxy
}

The implementation follows the same pattern as the gRPC transport,
using helper functions extract_uri_from_config() and
extract_extra_from_config() to parse configuration.
The feature flag has been renamed from grpc-doh to doh since it's now
shared between both gRPC and HTTP1 transports for DNS-over-HTTPS support.

Changes:
- Updated Cargo.toml feature definitions (transport and imix)
- Updated all #[cfg(feature = "grpc-doh")] to #[cfg(feature = "doh")]
- Updated comments and documentation referencing the old flag name
- Removed grpc dependency from doh feature (now standalone)

The doh feature can now be enabled independently for either transport.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 10, 2026

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
2968    ±0 2968    ±0 0    ±0 0    ±0 0    ±0 0    ±0 1ms    ±0

Previous Results

Build 🏗️ Result 🧪 Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
#400 2968 2968 0 0 0 0 28.5s

Insights

Average Tests per Run Total Flaky Tests Total Failed Slowest Test (p95)
2968 0 0 44.8s

Slowest Tests

Test 📝 Results 📊 Duration (avg) ⏱️ Duration (p95) ⏱️
eldritch: random::string_impl::tests::test_string_uniform 3 40.4s 44.8s
eldritch: random::string_impl::tests::test_string_uniform 3 40.4s 44.8s
eldritch: random::string_impl::tests::test_string_uniform 3 40.4s 44.8s
eldritch: process::info_impl::tests::test_info_default 3 3.2s 9.2s
eldritch: process::info_impl::tests::test_info_default 3 3.2s 9.2s
eldritch: process::info_impl::tests::test_info_default 3 3.2s 9.2s
eldritch: pivot::port_scan_impl::tests::test_portscan_return_type_starlark_dict_from_interpreter 3 3.0s 8.8s
eldritch: pivot::port_scan_impl::tests::test_portscan_return_type_starlark_dict_from_interpreter 3 3.0s 8.8s
eldritch: pivot::port_scan_impl::tests::test_portscan_return_type_starlark_dict_from_interpreter 3 3.0s 8.8s
eldritch: pivot::ssh_copy_impl::tests::test_pivot_ssh_copy 3 4.3s 8.8s

🎉 No failed tests in this run. | 🍂 No flaky tests in this run.

Github Test Reporter by CTRF 💚

🔄 This comment has been updated

@hulto hulto changed the title Claude/http1 doh socks proxy nga yp Claude/http1 doh socks proxy Jan 10, 2026
@hulto hulto added this pull request to the merge queue Jan 13, 2026
Merged via the queue into main with commit e9a8eaa Jan 13, 2026
8 checks passed
@hulto hulto deleted the claude/http1-doh-socks-proxy-NgaYP branch January 13, 2026 03:17
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