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 d20691d
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 (a10f22e) 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>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
- Kernel backend: `port` is passed to the kernel as is, so a custom port works over HTTPS as on Thrift. IPv6 hosts need brackets, an invalid port or host fails with a `ParameterError`, and the published `@databricks/databricks-sql-kernel-*` native packages must be bumped to a release that includes databricks/databricks-sql-kernel#505, since older packages ignore `port`.
6
6
- Release completed Thrift CloudFetch body-reader listeners so idle connections do not retain downloaded result buffers.
7
+
- Kernel backend: support SOCKS proxies through the `proxy` option.
|`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