You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0c4d22b
Browse filesBrowse the repository at this point in the historyBrowse files
feat(kernel): route the proxy option through SOCKS on the kernel backend
With a kernel build that supports SOCKS proxies, the existing `proxy`
connection option now works on the kernel backend (useKernel: true) for
socks4, socks4a, socks5 and socks5h, as it already does on Thrift.
buildKernelProxyOptions maps protocol 'socks' to 'socks5h', so the proxy
resolves DNS as socks-proxy-agent does on Thrift. The kernel rejects a bare
socks:// URL. Other protocols pass through verbatim, and credentials stay
separate fields. No option is added or renamed.
KERNEL_REV points at the kernel SOCKS change (316a75a) so kernel-e2e builds
the binding that supports it. The published 1.5.0 binding still rejects
SOCKS URLs, so the kernel release and package pin must land first.
Table-driven unit tests cover the protocol mapping and credential and
bypass forwarding. CONNECTION_PARAMETERS.md describes the kernel support,
including the kernel's HTTPS_PROXY/ALL_PROXY/NO_PROXY handling when no
proxy option is set (Thrift ignores those variables). CHANGELOG.md has a
short entry.
Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Cathleen Yan <58714163+cathleeny@users.noreply.github.com>
|`socketTimeout`|`number` (ms) | ✅ | ⚠️ |`900000` / `120000`| Kernel forwards only positive values. `0` means no timeout on Thrift but is omitted on Kernel, which then keeps its 120-second default. |
|`proxy`|`ProxyOptions`| ✅ |✅| — |`{protocol, host, port, auth}`. Kernel maps `socks` to `socks5h` (DNS at the proxy, as on Thrift). Without `proxy`, Kernel honors `HTTPS_PROXY`, `ALL_PROXY` and `NO_PROXY`, including SOCKS URLs; Thrift ignores them.|
83
83
|`noProxy` (internal) |`string`| ❌ | ⚠️ | — | Runtime-only Kernel bypass list, forwarded as `bypassHosts` only when an explicit `proxy` is also supplied. |
84
84
|`customHeaders`|`Record<string, string>`| ✅ | ✅ | — | Sent on workspace, telemetry and feature-flag requests, not OAuth. Workspace calls ignore caller `Authorization`, `User-Agent`, `Content-Type`, `Content-Length`, `Transfer-Encoding`, `Connection`; Kernel also ignores `x-databricks-org-id`. |
85
85
|`retryMaxAttempts`|`number`| ✅ | ✅ |`5`| Total attempts, including the initial request. Kernel converts this to its retries-after-first representation internally. |
@@ -243,7 +243,7 @@ session parameter surface.
243
243
## Main backend gaps
244
244
245
245
Thrift-only capabilities include custom/token-provider authentication, custom
0 commit comments