PYTHON-4164 Document support for KMIP delegated master_key (#1830)

This commit is contained in:
Shane Harvey 2024-09-04 14:53:21 -07:00 committed by GitHub
parent b37fb91896
commit 653ea8b8d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 1 deletions

View File

@ -11,6 +11,8 @@ PyMongo 4.9 brings a number of improvements including:
- Added support for In-Use Encryption range queries with MongoDB 8.0.
Added :attr:`~pymongo.encryption.Algorithm.RANGE`.
``sparsity`` and ``trim_factor`` are now optional in :class:`~pymongo.encryption_options.RangeOpts`.
- Added support for the "delegated" option for the KMIP ``master_key`` in
:meth:`~pymongo.encryption.ClientEncryption.create_data_key`.
- pymongocrypt>=1.10 is now required for :ref:`In-Use Encryption` support.
- Added :meth:`~pymongo.cursor.Cursor.to_list` to :class:`~pymongo.cursor.Cursor`,
:class:`~pymongo.command_cursor.CommandCursor`,

View File

@ -764,6 +764,9 @@ class AsyncClientEncryption(Generic[_DocumentType]):
Secret Data managed object.
- `endpoint` (string): Optional. Host with optional
port, e.g. "example.vault.azure.net:".
- `delegated` (bool): Optional. If True (recommended), the
KMIP server will perform encryption and decryption. If
delegated is not provided, defaults to false.
:param key_alt_names: An optional list of string alternate
names used to reference a key. If a key is created with alternate

View File

@ -762,6 +762,9 @@ class ClientEncryption(Generic[_DocumentType]):
Secret Data managed object.
- `endpoint` (string): Optional. Host with optional
port, e.g. "example.vault.azure.net:".
- `delegated` (bool): Optional. If True (recommended), the
KMIP server will perform encryption and decryption. If
delegated is not provided, defaults to false.
:param key_alt_names: An optional list of string alternate
names used to reference a key. If a key is created with alternate

View File

@ -6,7 +6,8 @@
"replicaset",
"sharded",
"load-balanced"
]
],
"serverless": "forbid"
}
],
"database_name": "default",