MONGOC_CLIENT_...P_MANY_DATAKEY(3)
π
MONGOC_CLIENT_...P_MANY_DATAKEY(3) β libmongoc, bestie edition β¨
okay so this is a libmongoc manpage and it's literally about reshuffling your data keys, no cap. the manual name is libmongoc, and the function we're stanning today is mongoc_client_encryption_rewrap_many_datakey. it's giving "glow-up for your key vault" energy π
β¨ SYNOPSIS β¨
bool
mongoc_client_encryption_rewrap_many_datakey (
mongoc_client_encryption_t *client_encryption,
const bson_t *filter,
const char *provider,
const bson_t *master_key,
mongoc_client_encryption_rewrap_many_datakey_result_t *result,
bson_error_t *error);
so what does it do. it rewraps zero or more data keys in the key vault collection that match the filter you hand it. yes, zero is allowed. iconic.
if you pass NULL for filter, that's the same as handing it an empty document β which means match all π so like, be aware of that power, bestie.
if provider is NULL, it rewraps the matching data keys using their current KMS provider and master key. cozy, no changes.
if provider is not NULL, it rewraps the matching data keys with the new KMS provider as described by master_key. and heads up: the master_key document must conform to the Client Side Encryption specification. that's not optional, fr fr π«Ά
πΈ PARAMETERS πΈ
client_encryptionβ amongoc_client_encryption_t. the main character here πfilterβ the filter used when finding which data keys to rewrap in the key vault collection πproviderβ the new KMS provider to use to encrypt the data keys, orNULLto use the current KMS provider(s) πmaster_keyβ the master key fields corresponding to the new KMS provider, used whenprovideris notNULLπresultβ an optionalmongoc_client_encryption_rewrap_many_datakey_result_tβ¨errorβ abson_error_tthat gets set on failure π
π¦ RETURNS π¦
returns true if it worked. slay π
returns false and sets error otherwise. so like, check your errors, bestie, please.
SEE ALSO: mongoc_client_encryption_rewrap_many_datakey_result_t β go read that one too, iykyk π
π§ AUTHOR π§
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
and that's the whole vibe β brought to you by libmongoc version 2.5.6, dated Oct 09, 2025. mwah, go rewrap those keys πβ¨
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms