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 15275df
Browse filesBrowse the repository at this point in the historyBrowse files
feat(kernel): add opt-in certificate revocation checks for kernel connections
Expose the kernel's TLS revocation policy to Python connections on the kernel
backend (use_kernel=True):
- _tls_check_certificate_revocation (default False) checks the server
certificate chain against its CRLs.
- _tls_accept_undetermined_revocation (default False) accepts a chain whose
revocation status cannot be determined.
The two flags are carried on SSLOptions. _kernel_tls_kwargs forwards each one to
the kernel Session as tls_check_certificate_revocation /
tls_accept_undetermined_revocation only when it is True, so default connections
still work with kernel wheels that predate the setters.
Enabling either flag on the Thrift or SEA backend raises ValueError before any
connection is made. Revocation is a kernel-only feature.
Tests cover the forwarding table in _kernel_tls_kwargs and the rejection on the
non-kernel backends. The existing realkernel routing tests still pass against
databricks-sql-kernel 1.4.0.
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
@@ -1,6 +1,7 @@
1
1
# Release History
2
2
3
3
# Unreleased
4
+
- Add `_tls_check_certificate_revocation` and `_tls_accept_undetermined_revocation` (default `False`) for kernel connections (`use_kernel=True`); they raise `ValueError` on other backends.
4
5
- Honor `max_download_threads` on kernel connections, with a default download window of 16 and explicit chunk-setting overrides. Invalid values raise `ValueError` when connecting with `use_kernel=True`.
5
6
- Fix the kernel backend ignoring `use_cloud_fetch=False`, so complete results can be fetched without cloud-storage downloads.
6
7
- Fix inline parameters (`use_inline_params=True`) so a sequence directly after `IN` renders as a list again: `x IN %(ids)s` renders as `x IN (1,2,3)` instead of `x IN ARRAY(1,2,3)`, which Spark rejects. Inside the list, tuples render as rows for a multi-column `IN`, and a `set` or `frozenset` is accepted again. Sequences anywhere else still render as `ARRAY(...)` ([#629](https://github.com/databricks/databricks-sql-python/issues/629))
0 commit comments