Skip to content

Commit e655b0b

Browse files
authored
PYTHON-3001 Bump minimum pymongocrypt version to 1.2.0 (#793)
1 parent 8fc6dc3 commit e655b0b

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

doc/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ Breaking Changes in 4.0
179179
parsing MongoDB URIs.
180180
- Removed the `disable_md5` parameter for :class:`~gridfs.GridFSBucket` and
181181
:class:`~gridfs.GridFS`. See :ref:`removed-gridfs-checksum` for details.
182+
- PyMongoCrypt 1.2.0 or later is now required for client side field level
183+
encryption support.
182184

183185
Notable improvements
184186
....................
@@ -194,6 +196,9 @@ Notable improvements
194196
choose a `srvMaxHosts` sized subset of hosts.
195197
- Added :attr:`pymongo.mongo_client.MongoClient.options` for read-only access
196198
to a client's configuration options.
199+
- Support for the "kmip" KMS provider for client side field level encryption.
200+
See the docstring for :class:`~pymongo.encryption_options.AutoEncryptionOpts`
201+
and :mod:`~pymongo.encryption`.
197202

198203
Issues Resolved
199204
...............

pymongo/encryption.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,10 @@ def __init__(self, kms_providers, key_vault_namespace, key_vault_client,
426426
427427
kms_tls_options={'kmip': {'tlsCAFile': certifi.where()}}
428428
429+
Or to supply a client certificate::
430+
431+
kms_tls_options={'kmip': {'tlsCertificateKeyFile': 'client.pem'}}
432+
429433
.. versionchanged:: 4.0
430434
Added the `kms_tls_options` parameter and the "kmip" KMS provider.
431435

pymongo/encryption_options.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ def __init__(self, kms_providers, key_vault_namespace,
129129
130130
kms_tls_options={'kmip': {'tlsCAFile': certifi.where()}}
131131
132+
Or to supply a client certificate::
133+
134+
kms_tls_options={'kmip': {'tlsCertificateKeyFile': 'client.pem'}}
135+
132136
.. versionchanged:: 4.0
133137
Added the `kms_tls_options` parameter and the "kmip" KMS provider.
134138

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def build_extension(self, ext):
277277
pyopenssl_reqs.append('certifi')
278278

279279
extras_require = {
280-
'encryption': ['pymongocrypt>=1.1.0,<2.0.0'],
280+
'encryption': ['pymongocrypt>=1.2.0,<2.0.0'],
281281
'ocsp': pyopenssl_reqs,
282282
'snappy': ['python-snappy'],
283283
'zstd': ['zstandard'],

0 commit comments

Comments
 (0)