Skip to content

Commit 0159c1d

Browse files
* add api docs for rewrapmanydatakeys methods * move to shared include * broken links * update product names, add as constants
1 parent ec232c3 commit 0159c1d

File tree

4 files changed

+49
-45
lines changed

4 files changed

+49
-45
lines changed

snooty.toml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ pgp-fingerprint-fmt = "E162 F504 A20C DF15 827F 718D 4B7C 549A 058F 8B6B"
238238
pgp-short-fingerprint = "0x4B7C549A058F8B6B"
239239
windows-sha256 = "C777DF7816BB8C9A760FDEA782113949408B6F39D72BE29A2551FA51E2FE0473"
240240
source-available = ":github:`source available and free to use <mongodb/mongo>`"
241+
pcre-abbr = ":abbr:`PCRE (Perl Compatible Regular Expressions)`"
242+
pcre = "Perl Compatible Regular Expressions"
243+
# In Use Encryption Constants
241244
csfle = "Client-Side Field Level Encryption"
242245
csfle-abbrev = "CSFLE"
243246
in-use-doc = "document with encrypted fields"
@@ -254,8 +257,6 @@ dek-abbr-no-hover = "DEK"
254257
cmk-abbr-no-hover = "CMK"
255258
key-vault-long = "Key Vault collection"
256259
key-vault-long-title = "Key Vault Collection"
257-
java-driver-version = "4.6"
258-
java-driver-api = "https://mongodb.github.io/mongo-java-driver/{+java-driver-version+}/apidocs"
259260
aws-abbr = ":abbr:`AWS (Amazon Web Services)`"
260261
aws-iam-abbr = ":abbr:`IAM (Identity and Access Management)`"
261262
aws-arn-abbr = ":abbr:`ARN (Amazon Resource Name)`"
@@ -285,9 +286,19 @@ shared-library-package = "``crypt_shared``"
285286
efm = "``encryptedFieldsMap``"
286287
auto-encrypt-options = "autoEncryptionOpts"
287288
title-auto-encrypt-options = "AutoEncryptionOpts"
288-
pcre-abbr = ":abbr:`PCRE (Perl Compatible Regular Expressions)`"
289-
pcre = "Perl Compatible Regular Expressions"
290-
289+
# Driver Constants
290+
java-driver-full = "MongoDB Java driver"
291+
node-driver-full = "MongoDB Node.js driver"
292+
go-driver-full = "MongoDB Go driver"
293+
pymongo = "PyMongo"
294+
csharp-driver-full = "MongoDB C#/.NET driver"
295+
java-driver-version = "4.6"
296+
java-driver-api = "https://mongodb.github.io/mongo-java-driver/{+java-driver-version+}/apidocs"
297+
pymongo-api-docs = "https://pymongo.readthedocs.io/en/stable/api"
298+
node-libmongocrypt-binding-docs = "https://github.com/mongodb/libmongocrypt/tree/master/bindings"
299+
csharp-api-docs = "https://mongodb.github.io/mongo-csharp-driver/2.18/apidocs/html"
300+
java-api-docs = "https://mongodb.github.io/mongo-java-driver/4.7/apidocs"
301+
go-api-docs = "https://pkg.go.dev/go.mongodb.org/[email protected]"
291302

292303
[[banners]]
293304
targets = [

source/core/csfle/fundamentals/keys-key-vaults.txt

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -158,26 +158,7 @@ client's ``MongoClient`` object, see the
158158
Update a {+key-vault-long-title+}
159159
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
160160

161-
To add a {+dek-abbr+} to your {+key-vault-long+}, use the ``createKey`` method of a
162-
``ClientEncryption`` object.
163-
164-
To delete or update a {+dek-abbr+}, use standard
165-
:manual:`CRUD </crud>` operations. You store a {+dek-abbr-no-hover+}
166-
in MongoDB as a document, and you can apply any document operation to a
167-
{+dek-abbr-no-hover+}.
161+
.. include:: /includes/in-use-encryption/update-a-key.rst
168162

169163
To view a tutorial that shows how to create a {+dek-abbr+}, see
170164
the :ref:`Quick Start <csfle-local-create-dek>`.
171-
172-
.. tip:: mongosh Specific Features
173-
174-
:binary:`~bin.mongosh` provides the following additional
175-
methods for working with your {+key-vault-long+}:
176-
177-
- :method:`getKeyVault()`
178-
- :method:`KeyVault.getKey()`
179-
- :method:`KeyVault.getKeys()`
180-
- :method:`KeyVault.getKeyByAltName()`
181-
- :method:`KeyVault.createKey()`
182-
- :method:`KeyVault.addKeyAlternateName()`
183-
- :method:`KeyVault.removeKeyAlternateName()`

source/core/queryable-encryption/fundamentals/keys-key-vaults.txt

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -130,26 +130,7 @@ client's ``MongoClient`` object, see the
130130
Update a {+key-vault-long-title+}
131131
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
132132

133-
To add a {+dek-abbr+} to your {+key-vault-long+}, use the ``createKey`` method of a
134-
``ClientEncryption`` object.
135-
136-
To delete or update a {+dek-abbr+}, use standard
137-
:manual:`CRUD </crud>` operations. You store a {+dek-abbr-no-hover+}
138-
in MongoDB as a document, and you can apply any document operation to a
139-
{+dek-abbr-no-hover+}.
133+
.. include:: /includes/in-use-encryption/update-a-key.rst
140134

141135
To view a tutorial that shows how to create a {+dek-abbr+}, see
142136
the :ref:`Quick Start <qe-local-create-dek>`.
143-
144-
.. tip:: mongosh Specific Features
145-
146-
:binary:`~bin.mongosh` provides the following additional
147-
methods for working with your {+key-vault-long+}:
148-
149-
- :method:`getKeyVault()`
150-
- :method:`KeyVault.getKey()`
151-
- :method:`KeyVault.getKeys()`
152-
- :method:`KeyVault.getKeyByAltName()`
153-
- :method:`KeyVault.createKey()`
154-
- :method:`KeyVault.addKeyAlternateName()`
155-
- :method:`KeyVault.removeKeyAlternateName()`
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
To add a {+dek-abbr+} to your {+key-vault-long+}, use the ``createKey`` method of a
2+
``ClientEncryption`` object.
3+
4+
To delete or update a {+dek-abbr+}, use one of the following mechanisms:
5+
6+
- The ``rewrapManyDataKey`` method
7+
- Standard :manual:`CRUD </crud>` operations
8+
9+
To learn more about the ``rewrapManyDataKey`` method, see the documentation
10+
of the method for your client or driver:
11+
12+
- :ref:`MongoDB Shell <server-keyvault-rewrap-manydatakey-method>`
13+
- `{+pymongo+} <{+pymongo-api-docs+}/pymongo/encryption.html#pymongo.encryption.ClientEncryption.rewrap_many_data_key>`__
14+
- `{+node-driver-full+} <{+node-libmongocrypt-binding-docs+}/node#RewrapManyDataKeyResult>`__
15+
- `{+csharp-driver-full+} <{+csharp-api-docs+}/M_MongoDB_Driver_Encryption_ClientEncryption_RewrapManyDataKey.htm>`__
16+
- `{+java-driver-full+} <{+java-api-docs+}/mongodb-driver-sync/com/mongodb/client/vault/ClientEncryption.html#rewrapManyDataKey(org.bson.conversions.Bson)>`__
17+
- `{+go-driver-full+} <{+go-api-docs+}/mongo#ClientEncryption.RewrapManyDataKey>`__
18+
19+
.. tip:: mongosh Specific Features
20+
21+
:binary:`~bin.mongosh` provides the following additional
22+
methods for working with your {+key-vault-long+}:
23+
24+
- :method:`getKeyVault()`
25+
- :method:`KeyVault.getKey()`
26+
- :method:`KeyVault.getKeys()`
27+
- :method:`KeyVault.getKeyByAltName()`
28+
- :method:`KeyVault.createKey()`
29+
- :method:`KeyVault.rewrapManyDataKey()`
30+
- :method:`KeyVault.addKeyAlternateName()`
31+
- :method:`KeyVault.removeKeyAlternateName()`

0 commit comments

Comments
 (0)