-
Type:
Bug
-
Resolution: Done
-
Priority:
Minor - P4
-
None
-
Affects Version/s: 4.18.2
-
Component/s: Client Side Encryption
-
None
-
Python Drivers
-
None
-
None
-
None
-
None
-
None
-
None
Detailed steps to reproduce the problem?
The example for rewrap_many_data_keys is incorrect and does not work. If a developer attempts to use the example it fails with an exception.
Definition of done: what must be done to consider the task complete?
The example should look something like:
result = client_encryption.rewrap_many_data_key(
filter={},
provider="kmip",
master_key={
"keyId": "<your new key name>",
"endpoint": "<your KMIP endpoint>",
"delegated": True
}
)
or
client_encryption.rewrap_many_data_key(
filter={"keyAltNames": "optional filter for which keys you want to update"},
provider="azure", # replace with your KMS provider
master_key={
# put the rest of your master_key options here
"keyName": "<your new key name>",
"keyVaultEndpoint": "<your key vault endpoint>",
},
)
or similar.