MONGOC_AUTO_EN...Y_VAULT_CLIENT(3)

okay so bestie, welcome to the libmongoc manual page for MONGOC_AUTO_EN...Y_VAULT_CLIENT(3) πŸ’…βœ¨ β€” the ellipsis in the name is doing main character energy, but the function itself is here to help your automatic encryption setup look up keys with a separate client. Let's get into it.

✨ SYNOPSIS ✨

          void
          mongoc_auto_encryption_opts_set_keyvault_client (
             mongoc_auto_encryption_opts_t *opts, mongoc_client_t *client);

What it does: this sets an optional separate mongoc_client_t to use during key lookup for automatic encryption and decryption. It only applies to automatic encryption on a single-threaded mongoc_client_t β€” that's the vibe check, no cap. 🫢

πŸŽ€ PARAMETERS πŸŽ€

  • opts β€” a mongoc_auto_encryption_opts_t. That's the options baddie you're configuring. πŸŽ€
  • client β€” a mongoc_client_t to use for key queries. This client should not have automatic encryption enabled, as it will only execute find commands against the key vault collection to retrieve keys for automatic encryption and decryption. This client MUST outlive any mongoc_client_t which has been enabled to use it through mongoc_client_enable_auto_encryption(). Like, literally must outlive it β€” no cap, bestie. 😭

πŸ‘€ SEE ALSO πŸ‘€

  • mongoc_client_enable_auto_encryption()
  • mongoc_auto_encryption_opts_set_keyvault_client_pool()
  • In-Use Encryption

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” the icon, the legend. πŸ‘‘

2009-present, MongoDB, Inc.


okay that's the whole page, bestie 🫢 β€” this libmongoc gem is version 2.5.6, dated Oct 09, 202 (yes, the footer literally trails off mid-date, iconic 😭), and the page header is MONGOC_AUTO_EN...Y_VAULT_CLIENT(3). mwah πŸ’‹

πŸ“¦ where this page comes from