@@ -90,23 +90,7 @@ Procedure
90
90
.. tab::
91
91
:tabid: shell
92
92
93
- - **kmsProviderName** - The KMS you're using to store your {+cmk-long+}.
94
- Set this variable to ``"local"`` for this tutorial.
95
- - **uri** - Your MongoDB deployment connection URI. Set your connection
96
- URI in the ``MONGODB_URI`` environment variable or replace the value
97
- directly.
98
- - **keyVaultDatabaseName** - The database in MongoDB where your data
99
- encryption keys (DEKs) will be stored. Set this variable
100
- to ``"encryption"``.
101
- - **keyVaultCollectionName** - The collection in MongoDB where your DEKs
102
- will be stored. Set this variable to ``"__keyVault"``.
103
- - **keyVaultNamespace** - The namespace in MongoDB where your DEKs will
104
- be stored. Set this variable to the values of the ``keyVaultDatabaseName``
105
- and ``keyVaultCollectionName`` variables, separated by a period.
106
- - **encryptedDatabaseName** - The database in MongoDB where your encrypted
107
- data will be stored. Set this variable to ``"medicalRecords"``.
108
- - **encryptedCollectionName** - The collection in MongoDB where your encrypted
109
- data will be stored. Set this variable to ``"patients"``.
93
+ .. include:: /includes/qe-tutorials/qe-quick-start.rst
110
94
111
95
You can declare these variables by using the following code:
112
96
@@ -119,23 +103,7 @@ Procedure
119
103
.. tab::
120
104
:tabid: nodejs
121
105
122
- - **kmsProviderName** - The KMS you're using to store your {+cmk-long+}.
123
- Set this variable to ``"local"`` for this tutorial.
124
- - **uri** - Your MongoDB deployment connection URI. Set your connection
125
- URI in the ``MONGODB_URI`` environment variable or replace the value
126
- directly.
127
- - **keyVaultDatabaseName** - The database in MongoDB where your data
128
- encryption keys (DEKs) will be stored. Set this variable
129
- to ``"encryption"``.
130
- - **keyVaultCollectionName** - The collection in MongoDB where your DEKs
131
- will be stored. Set this variable to ``"__keyVault"``.
132
- - **keyVaultNamespace** - The namespace in MongoDB where your DEKs will
133
- be stored. Set this variable to the values of the ``keyVaultDatabaseName``
134
- and ``keyVaultCollectionName`` variables, separated by a period.
135
- - **encryptedDatabaseName** - The database in MongoDB where your encrypted
136
- data will be stored. Set this variable to ``"medicalRecords"``.
137
- - **encryptedCollectionName** - The collection in MongoDB where your encrypted
138
- data will be stored. Set this variable to ``"patients"``.
106
+ .. include:: /includes/qe-tutorials/qe-quick-start.rst
139
107
140
108
You can declare these variables by using the following code:
141
109
@@ -157,7 +125,8 @@ Procedure
157
125
encryption keys (DEKs) will be stored. Set this variable
158
126
to ``"encryption"``.
159
127
- **key_vault_collection_name** - The collection in MongoDB where your DEKs
160
- will be stored. Set this variable to ``"__keyVault"``.
128
+ will be stored. Set this variable to ``"__keyVault"``, which is the
129
+ convention to help prevent mistaking it for a user collection.
161
130
- **key_vault_namespace** - The namespace in MongoDB where your DEKs will
162
131
be stored. Set this variable to the values of the ``key_vault_database_name``
163
132
and ``key_vault_collection_name`` variables, separated by a period.
@@ -177,23 +146,7 @@ Procedure
177
146
.. tab::
178
147
:tabid: java-sync
179
148
180
- - **kmsProviderName** - The KMS you're using to store your {+cmk-long+}.
181
- Set this variable to ``"local"`` for this tutorial.
182
- - **uri** - Your MongoDB deployment connection URI. Set your connection
183
- URI in the ``MONGODB_URI`` environment variable or replace the value
184
- directly.
185
- - **keyVaultDatabaseName** - The database in MongoDB where your data
186
- encryption keys (DEKs) will be stored. Set this variable
187
- to ``"encryption"``.
188
- - **keyVaultCollectionName** - The collection in MongoDB where your DEKs
189
- will be stored. Set this variable to ``"__keyVault"``.
190
- - **keyVaultNamespace** - The namespace in MongoDB where your DEKs will
191
- be stored. Set this variable to the values of the ``keyVaultDatabaseName``
192
- and ``keyVaultCollectionName`` variables, separated by a period.
193
- - **encryptedDatabaseName** - The database in MongoDB where your encrypted
194
- data will be stored. Set this variable to ``"medicalRecords"``.
195
- - **encryptedCollectionName** - The collection in MongoDB where your encrypted
196
- data will be stored. Set this variable to ``"patients"``.
149
+ .. include:: /includes/qe-tutorials/qe-quick-start.rst
197
150
198
151
You can declare these variables by using the following code:
199
152
@@ -206,23 +159,7 @@ Procedure
206
159
.. tab::
207
160
:tabid: go
208
161
209
- - **kmsProviderName** - The KMS you're using to store your {+cmk-long+}.
210
- Set this variable to ``"local"`` for this tutorial.
211
- - **uri** - Your MongoDB deployment connection URI. Set your connection
212
- URI in the ``MONGODB_URI`` environment variable or replace the value
213
- directly.
214
- - **keyVaultDatabaseName** - The database in MongoDB where your data
215
- encryption keys (DEKs) will be stored. Set this variable
216
- to ``"encryption"``.
217
- - **keyVaultCollectionName** - The collection in MongoDB where your DEKs
218
- will be stored. Set this variable to ``"__keyVault"``.
219
- - **keyVaultNamespace** - The namespace in MongoDB where your DEKs will
220
- be stored. Set this variable to the values of the ``keyVaultDatabaseName``
221
- and ``keyVaultCollectionName`` variables, separated by a period.
222
- - **encryptedDatabaseName** - The database in MongoDB where your encrypted
223
- data will be stored. Set this variable to ``"medicalRecords"``.
224
- - **encryptedCollectionName** - The collection in MongoDB where your encrypted
225
- data will be stored. Set this variable to ``"patients"``.
162
+ .. include:: /includes/qe-tutorials/qe-quick-start.rst
226
163
227
164
You can declare these variables by using the following code:
228
165
@@ -241,7 +178,8 @@ Procedure
241
178
encryption keys (DEKs) will be stored. Set the value of ``keyVaultDatabaseName``
242
179
to ``"encryption"``.
243
180
- **keyVaultCollectionName** - The collection in MongoDB where your DEKs
244
- will be stored. Set the value of ``keyVaultCollectionName`` to ``"__keyVault"``.
181
+ will be stored. Set this variable to ``"__keyVault"``, which is the
182
+ convention to help prevent mistaking it for a user collection.
245
183
- **keyVaultNamespace** - The namespace in MongoDB where your DEKs will
246
184
be stored. Set ``keyVaultNamespace`` to a new ``CollectionNamespace`` object whose name
247
185
is the values of the ``keyVaultDatabaseName`` and ``keyVaultCollectionName`` variables,
@@ -264,10 +202,7 @@ Procedure
264
202
265
203
.. important:: {+key-vault-long-title+} Namespace Permissions
266
204
267
- The {+key-vault-long+} is in the ``encryption.__keyVault``
268
- namespace. Ensure that the database user your application uses to connect
269
- to MongoDB has :ref:`ReadWrite <manual-reference-role-read-write>`
270
- permissions on this namespace.
205
+ .. include:: /includes/note-key-vault-permissions
271
206
272
207
.. include:: /includes/queryable-encryption/env-variables.rst
273
208
0 commit comments