Skip to content

Commit eb95d36

Browse files
(DOCSP-24764) QE Explicit Encryption Tutorial (#1693)
* tutorial init * build errors * update java file names in qe * remove incorrectly committed files * fix build files * capitalize built java files * python tweaks * remove extra line * proofread * cc - feedback * cc - feedback * cc - feedback * cc - feedback * build error * build error * variable name fixes * nl - suggestion * nl - suggestion * move exp tut out of exp directory * remove unused keys * remove extra keys go * remove extra keys java * remove extra keys node * remove extra keys python * cc feedback * cc - output should not be copyable * add link to learn more about algorithms * clarify links * cc - suggestion
1 parent 2e0d43f commit eb95d36

File tree

73 files changed

+2842
-198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+2842
-198
lines changed

snooty.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ aws-long = "Amazon Web Services"
257257
azure-kv = "Azure Key Vault"
258258
gcp-kms = "Google Cloud Key Management Service"
259259
gcp-kms-abbr = "Google Cloud KMS"
260-
manual-enc = "manual encryption"
261-
manual-enc-title = "Manual Encryption"
262-
manual-enc-first = "Manual encryption"
260+
manual-enc = "explicit encryption"
261+
manual-enc-title = "Explicit Encryption"
262+
manual-enc-first = "Explicit encryption"
263263
kmip-hover = ":abbr:`KMIP (Key Management Interoperability Protocol)`"
264264
kmip-kms-no-hover = "KMIP-compliant Key Management System"
265265
kmip-kms = "{+kmip-hover+}-compliant {+kms-abbr+}"

source/core/csfle/fundamentals/manual-encryption.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _csfle-fundamentals-manual-encryption:
22

3-
=================
3+
===================
44
{+manual-enc-title+}
5-
=================
5+
===================
66

77
.. default-domain:: mongodb
88

@@ -32,7 +32,7 @@ of version 4.2 or later:
3232
- MongoDB Atlas
3333

3434
Use {+manual-enc-title+}
35-
---------------------
35+
-----------------------
3636

3737
To use {+manual-enc+} you must perform the following actions in your
3838
{+csfle-abbrev+}-enabled application:

source/core/queryable-encryption/quick-start.txt

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,7 @@ and software:
2626
- A working, but not production-ready, client application that
2727
utilizes automatic {+qe+}.
2828

29-
.. important:: Do Not Use this Application In Production
30-
31-
Since this example application stores an encryption key on your
32-
application's filesystem, you risk unauthorized access to the key or
33-
loss of the key to decrypt your data.
34-
35-
To view a tutorial that demonstrates how to create a production-ready
36-
{+qe+} enabled application, see
37-
:ref:`<qe-tutorial-automatic-encryption>`.
29+
.. include:: /includes/queryable-encryption/quick-start/production-warning.rst
3830

3931
.. _qe-guide-intro:
4032
.. _qe-create-a-master-key:
@@ -120,7 +112,7 @@ Procedure
120112
:tabid: java-sync
121113

122114
To view the complete code for making a {+dek-long+}, see
123-
`our Github repository <{+sample-app-url-qe+}/java/local/reader/src/main/java/com/mongodb/csfle/makeDataKey.java>`__.
115+
`our Github repository <{+sample-app-url-qe+}/java/local/reader/src/main/java/com/mongodb/qe/MakeDataKey.java>`__.
124116

125117
.. tab::
126118
:tabid: go
@@ -163,7 +155,7 @@ Procedure
163155
:tabid: java-sync
164156

165157
To view the complete code for inserting an encrypted document, see
166-
`our Github repository <{+sample-app-url-qe+}/java/local/reader/src/main/java/com/mongodb/csfle/insertEncryptedDocument.java>`__.
158+
`our Github repository <{+sample-app-url-qe+}/java/local/reader/src/main/java/com/mongodb/qe/InsertEncryptedDocument.java>`__.
167159

168160
.. tab::
169161
:tabid: go
@@ -202,7 +194,7 @@ Procedure
202194
:tabid: java-sync
203195

204196
To view the complete code for finding an encrypted document, see
205-
`our Github repository <{+sample-app-url-qe+}/java/local/reader/src/main/java/com/mongodb/csfle/insertEncryptedDocument.java>`__.
197+
`our Github repository <{+sample-app-url-qe+}/java/local/reader/src/main/java/com/mongodb/qe/InsertEncryptedDocument.java>`__.
206198

207199
.. tab::
208200
:tabid: go

source/core/queryable-encryption/tutorials.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,13 @@ Read the following pages to learn how to use {+qe+} with your preferred
3030

3131
- :ref:`qe-tutorial-automatic-gcp`
3232

33+
To learn how to use {+manual-enc+} with {+qe+}, read
34+
:ref:`<qe-tutorials-manual-encryption>`.
35+
3336
.. toctree::
3437
:titlesonly:
3538

3639
/core/queryable-encryption/tutorials/aws/aws-automatic
3740
/core/queryable-encryption/tutorials/azure/azure-automatic
3841
/core/queryable-encryption/tutorials/gcp/gcp-automatic
42+
/core/queryable-encryption/tutorials/explicit-encryption

source/core/queryable-encryption/tutorials/aws/aws-automatic.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -102,31 +102,31 @@ Create the Application
102102
:tabid: nodejs
103103

104104
To view the complete code for making a {+dek-long+}, see
105-
`our Github repository <{+sample-app-url-qe+}/node/aws/reader/make_data_key.js>`__.
105+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/node/aws/reader/make_data_key.js>`__.
106106

107107
.. tab::
108108
:tabid: python
109109

110110
To view the complete code for making a {+dek-long+}, see
111-
`our Github repository <{+sample-app-url-qe+}/python/aws/reader/make_data_key.py>`__.
111+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/python/aws/reader/make_data_key.py>`__.
112112

113113
.. tab::
114114
:tabid: java-sync
115115

116116
To view the complete code for making a {+dek-long+}, see
117-
`our Github repository <{+sample-app-url-qe+}/java/aws/reader/src/main/java/com/mongodb/csfle/makeDataKey.java>`__.
117+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/java/aws/reader/src/main/java/com/mongodb/qe/MakeDataKey.java>`__.
118118

119119
.. tab::
120120
:tabid: go
121121

122122
To view the complete code for making a {+dek-long+}, see
123-
`our Github repository <{+sample-app-url-qe+}/go/aws/reader/make-data-key.go>`__.
123+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/go/aws/reader/make-data-key.go>`__.
124124

125125
.. tab::
126126
:tabid: csharp
127127

128128
To view the complete code for making a {+dek-long+}, see
129-
`our Github repository <{+sample-app-url-qe+}/dotnet/aws/reader/QueryableEncryption/MakeDataKey.cs>`__.
129+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/dotnet/aws/reader/QueryableEncryption/MakeDataKey.cs>`__.
130130

131131

132132
.. step:: Configure your MongoClient for Encrypted Reads and Writes
@@ -145,31 +145,31 @@ Create the Application
145145
:tabid: nodejs
146146

147147
To view the complete code for inserting an encrypted document, see
148-
`our Github repository <{+sample-app-url-qe+}/node/aws/reader/insert_encrypted_document.js>`__.
148+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/node/aws/reader/insert_encrypted_document.js>`__.
149149

150150
.. tab::
151151
:tabid: python
152152

153153
To view the complete code for inserting an encrypted document, see
154-
`our Github repository <{+sample-app-url-qe+}/python/aws/reader/insert_encrypted_document.py>`__.
154+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/python/aws/reader/insert_encrypted_document.py>`__.
155155

156156
.. tab::
157157
:tabid: java-sync
158158

159159
To view the complete code for inserting an encrypted document, see
160-
`our Github repository <{+sample-app-url-qe+}/java/aws/reader/src/main/java/com/mongodb/csfle/insertEncryptedDocument.java>`__.
160+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/java/aws/reader/src/main/java/com/mongodb/qe/InsertEncryptedDocument.java>`__.
161161

162162
.. tab::
163163
:tabid: go
164164

165165
To view the complete code for inserting an encrypted document, see
166-
`our Github repository <{+sample-app-url-qe+}/go/aws/reader/insert-encrypted-document.go>`__.
166+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/go/aws/reader/insert-encrypted-document.go>`__.
167167

168168
.. tab::
169169
:tabid: csharp
170170

171171
To view the complete code for inserting an encrypted document, see
172-
`our Github repository <{+sample-app-url-qe+}/dotnet/aws/reader/QueryableEncryption/InsertEncryptedDocument.cs>`__.
172+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/dotnet/aws/reader/QueryableEncryption/InsertEncryptedDocument.cs>`__.
173173

174174

175175
.. step:: Retrieve Your Encrypted Document
@@ -184,31 +184,31 @@ Create the Application
184184
:tabid: nodejs
185185

186186
To view the complete code for finding an encrypted document, see
187-
`our Github repository <{+sample-app-url-qe+}/node/aws/reader/insert_encrypted_document.js>`__.
187+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/node/aws/reader/insert_encrypted_document.js>`__.
188188

189189
.. tab::
190190
:tabid: python
191191

192192
To view the complete code for finding an encrypted document, see
193-
`our Github repository <{+sample-app-url-qe+}/python/aws/reader/insert_encrypted_document.py>`__.
193+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/python/aws/reader/insert_encrypted_document.py>`__.
194194

195195
.. tab::
196196
:tabid: java-sync
197197

198198
To view the complete code for finding an encrypted document, see
199-
`our Github repository <{+sample-app-url-qe+}/java/aws/reader/src/main/java/com/mongodb/csfle/insertEncryptedDocument.java>`__.
199+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/java/aws/reader/src/main/java/com/mongodb/qe/InsertEncryptedDocument.java>`__.
200200

201201
.. tab::
202202
:tabid: go
203203

204204
To view the complete code for finding an encrypted document, see
205-
`our Github repository <{+sample-app-url-qe+}/go/aws/reader/insert-encrypted-document.go>`__.
205+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/go/aws/reader/insert-encrypted-document.go>`__.
206206

207207
.. tab::
208208
:tabid: csharp
209209

210210
To view the complete code for finding an encrypted document, see
211-
`our Github repository <{+sample-app-url-qe+}/dotnet/aws/reader/QueryableEncryption/InsertEncryptedDocument.cs>`__.
211+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/dotnet/aws/reader/QueryableEncryption/InsertEncryptedDocument.cs>`__.
212212

213213

214214

source/core/queryable-encryption/tutorials/azure/azure-automatic.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -101,31 +101,31 @@ Create the Application
101101
:tabid: nodejs
102102

103103
To view the complete code for making a {+dek-long+}, see
104-
`our Github repository <{+sample-app-url-qe+}/node/azure/reader/make_data_key.js>`__.
104+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/node/azure/reader/make_data_key.js>`__.
105105

106106
.. tab::
107107
:tabid: python
108108

109109
To view the complete code for making a {+dek-long+}, see
110-
`our Github repository <{+sample-app-url-qe+}/python/azure/reader/make_data_key.py>`__.
110+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/python/azure/reader/make_data_key.py>`__.
111111

112112
.. tab::
113113
:tabid: java-sync
114114

115115
To view the complete code for making a {+dek-long+}, see
116-
`our Github repository <{+sample-app-url-qe+}/java/azure/reader/src/main/java/com/mongodb/csfle/makeDataKey.java>`__.
116+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/java/azure/reader/src/main/java/com/mongodb/qe/MakeDataKey.java>`__.
117117

118118
.. tab::
119119
:tabid: go
120120

121121
To view the complete code for making a {+dek-long+}, see
122-
`our Github repository <{+sample-app-url-qe+}/go/azure/reader/make-data-key.go>`__.
122+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/go/azure/reader/make-data-key.go>`__.
123123

124124
.. tab::
125125
:tabid: csharp
126126

127127
To view the complete code for making a {+dek-long+}, see
128-
`our Github repository <{+sample-app-url-qe+}/dotnet/azure/reader/QueryableEncryption/MakeDataKey.cs>`__.
128+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/dotnet/azure/reader/QueryableEncryption/MakeDataKey.cs>`__.
129129

130130

131131
.. step:: Configure your MongoClient for Encrypted Reads and Writes
@@ -144,31 +144,31 @@ Create the Application
144144
:tabid: nodejs
145145

146146
To view the complete code for inserting an encrypted document, see
147-
`our Github repository <{+sample-app-url-qe+}/node/azure/reader/insert_encrypted_document.js>`__.
147+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/node/azure/reader/insert_encrypted_document.js>`__.
148148

149149
.. tab::
150150
:tabid: python
151151

152152
To view the complete code for inserting an encrypted document, see
153-
`our Github repository <{+sample-app-url-qe+}/python/azure/reader/insert_encrypted_document.py>`__.
153+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/python/azure/reader/insert_encrypted_document.py>`__.
154154

155155
.. tab::
156156
:tabid: java-sync
157157

158158
To view the complete code for inserting an encrypted document, see
159-
`our Github repository <{+sample-app-url-qe+}/java/azure/reader/src/main/java/com/mongodb/csfle/insertEncryptedDocument.java>`__.
159+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/java/azure/reader/src/main/java/com/mongodb/qe/InsertEncryptedDocument.java>`__.
160160

161161
.. tab::
162162
:tabid: go
163163

164164
To view the complete code for inserting an encrypted document, see
165-
`our Github repository <{+sample-app-url-qe+}/go/azure/reader/insert-encrypted-document.go>`__.
165+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/go/azure/reader/insert-encrypted-document.go>`__.
166166

167167
.. tab::
168168
:tabid: csharp
169169

170170
To view the complete code for inserting an encrypted document, see
171-
`our Github repository <{+sample-app-url-qe+}/dotnet/azure/reader/QueryableEncryption/InsertEncryptedDocument.cs>`__.
171+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/dotnet/azure/reader/QueryableEncryption/InsertEncryptedDocument.cs>`__.
172172

173173

174174
.. step:: Retrieve Your Encrypted Document
@@ -183,31 +183,31 @@ Create the Application
183183
:tabid: nodejs
184184

185185
To view the complete code for finding an encrypted document, see
186-
`our Github repository <{+sample-app-url-qe+}/node/azure/reader/insert_encrypted_document.js>`__.
186+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/node/azure/reader/insert_encrypted_document.js>`__.
187187

188188
.. tab::
189189
:tabid: python
190190

191191
To view the complete code for finding an encrypted document, see
192-
`our Github repository <{+sample-app-url-qe+}/python/azure/reader/insert_encrypted_document.py>`__.
192+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/python/azure/reader/insert_encrypted_document.py>`__.
193193

194194
.. tab::
195195
:tabid: java-sync
196196

197197
To view the complete code for finding an encrypted document, see
198-
`our Github repository <{+sample-app-url-qe+}/java/azure/reader/src/main/java/com/mongodb/csfle/insertEncryptedDocument.java>`__.
198+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/java/azure/reader/src/main/java/com/mongodb/qe/InsertEncryptedDocument.java>`__.
199199

200200
.. tab::
201201
:tabid: go
202202

203203
To view the complete code for finding an encrypted document, see
204-
`our Github repository <{+sample-app-url-qe+}/go/azure/reader/insert-encrypted-document.go>`__.
204+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/go/azure/reader/insert-encrypted-document.go>`__.
205205

206206
.. tab::
207207
:tabid: csharp
208208

209209
To view the complete code for finding an encrypted document, see
210-
`our Github repository <{+sample-app-url-qe+}/dotnet/azure/reader/QueryableEncryption/InsertEncryptedDocument.cs>`__.
210+
`the {+qe+} sample application repository <{+sample-app-url-qe+}/dotnet/azure/reader/QueryableEncryption/InsertEncryptedDocument.cs>`__.
211211

212212

213213
Learn More

0 commit comments

Comments
 (0)