Skip to content

Commit 0ad90b0

Browse files
Verify SSL as True by default
Co-authored-by: Mathias Fußenegger <mfussenegger@users.noreply.github.com>
1 parent f70a113 commit 0ad90b0

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Unreleased
77

88
- Added official Python 3.9 support.
99

10+
- BREAKING CHANGE: The driver now verifies SSL certificates when connecting via
11+
HTTP by default. Previously, this setting defaulted to false. This setting
12+
can be changed via the ``verify_ssl_cert`` connection parameter.
13+
1014
2020/09/28 0.26.0
1115
=================
1216

docs/sqlalchemy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ the ``connect_args`` argument, like so::
105105
When you do this, the Database API layer will use its :ref:`round-robin
106106
<multiple-nodes>` implementation.
107107

108-
The client does not validate `SSL server certificates`_ by default. To configure
108+
The client validates `SSL server certificates`_ by default. To configure
109109
this behaviour, SSL verification options can be passed in via ``connect_args``
110110
too::
111111

src/crate/client/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self,
3333
timeout=None,
3434
backoff_factor=0,
3535
client=None,
36-
verify_ssl_cert=False,
36+
verify_ssl_cert=True,
3737
ca_cert=None,
3838
error_trace=False,
3939
cert_file=None,
@@ -62,7 +62,7 @@ def __init__(self,
6262
client used to communicate with crate.
6363
:param verify_ssl_cert:
6464
if set to ``True`` verify the servers SSL server certificate.
65-
defaults to ``False``
65+
defaults to ``True``
6666
:param ca_cert:
6767
a path to a CA certificate to use when verifying the SSL server
6868
certificate.

src/crate/client/doctests/sqlalchemy.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The ``connect_args`` parameter has to be used to do so::
3232
... })
3333
Engine(crate://)
3434

35-
As defined in :ref:`https_connection` the client does not validate SSL server
35+
As defined in :ref:`https_connection` the client validates SSL server
3636
certificates by default. To configure this behaviour, SSL verification options
3737
can be given via ``connect_args`` too::
3838

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy