Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions CONNECTION_PARAMETERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,24 @@ to change without notice.
| `_retry_max_redirects` | `int` | ✅ | ❌ | `None` | Max HTTP redirects to follow (must be ≤ `_retry_stop_after_attempts_count`). Thrift-only. |
| `_enable_v3_retries` | `bool` | ✅ | ❌ | `True` | Use the urllib3-based v3 retry policy; `False` selects the deprecated legacy policy. Thrift-only. |

### SOCKS proxies from environment variables

The connector has no proxy URL parameter; both backends read proxies from the
environment. The backends differ for SOCKS proxies:

- **Kernel** (with a `databricks-sql-kernel` release that supports SOCKS) honors
`socks4://`, `socks4a://`, `socks5://` and `socks5h://` in `HTTPS_PROXY`, or in
`ALL_PROXY` when `HTTPS_PROXY` is unset, for all kernel traffic: queries, CloudFetch
downloads and OAuth. `NO_PROXY` hosts connect directly. `socks5` and `socks4`
resolve the target host locally; `socks5h` and `socks4a` let the proxy resolve
it. SOCKS5 credentials go in the URL userinfo
(`socks5h://user:password@proxy:1080`; percent-encode reserved characters).
SOCKS4 has no password. If the proxy is unreachable or rejects the credentials,
the connection fails; it never falls back to a direct connection. Bare
`socks://` is rejected.
- **Thrift** has no SOCKS support. A SOCKS `HTTPS_PROXY` fails with urllib3's
`ProxySchemeUnknown`, and `ALL_PROXY` is ignored, so Thrift connects directly.

## TLS / SSL

> TLS options are assembled into a single `SSLOptions` object in `session.py`
Expand Down Expand Up @@ -225,6 +243,8 @@ are forwarded when supported by the installed kernel binding.
2. Custom `oauth_scopes`.
3. Kernel U2M encrypted token storage (`oauth_token_cache_enabled`).
4. Telemetry flush interval (`telemetry_flush_interval_ms`).
5. SOCKS proxies from `HTTPS_PROXY` / `ALL_PROXY` (see
[SOCKS proxies from environment variables](#socks-proxies-from-environment-variables)).

### Behavioral divergences to watch

Expand Down
Loading