1
1
ref : csfle-requires-enabling-encryption
2
2
content : |
3
3
4
- The ``mongo` ` client-side field level encryption methods
4
+ The :binary:`~bin.mongosh ` client-side field level encryption methods
5
5
require a database connection with client-side field level encryption
6
6
enabled. If the current database connection was not initiated with
7
7
client-side field level encryption enabled, either:
8
8
9
- - Use the :method:`Mongo()` constructor from the ``mongo` `
10
- shell to establish a connection with the required client-side field
9
+ - Use the :method:`Mongo()` constructor from the :binary:`~bin.mongosh `
10
+ to establish a connection with the required client-side field
11
11
level encryption options. The :method:`Mongo()` method supports the
12
12
following Key Management Service (KMS) providers for Customer
13
13
Master Key (CMK) management:
@@ -19,7 +19,8 @@ content: |
19
19
20
20
*or*
21
21
22
- - Use the ``mongo`` shell command line options to establish a
22
+ - Use the :binary:`~bin.mongosh` :ref:`command line options
23
+ <mongosh-client-side-field-level-encryption-options>` to establish a
23
24
connection with the required options. The command line options only
24
25
support the :ref:`Amazon Web Services KMS
25
26
<field-level-encryption-aws-kms>` provider for CMK management.
@@ -49,10 +50,10 @@ content: |
49
50
50
51
To mitigate the risk of the AWS Access Key or AWS Secret Key leaking
51
52
into logs, consider specifying an environment variable containing the
52
- required values as part of the ``mongo` ` startup. For
53
+ required values as part of the :binary:`~bin.mongosh ` startup. For
53
54
example, the following operation loads the ``AWS_ACCESS_KEY_ID`` and
54
55
``AWS_SECRET_ACCESS_KEY`` environment variables into local variables
55
- in the ``mongo`` shell :
56
+ in :binary:`~bin.mongosh` :
56
57
57
58
.. code-block:: bash
58
59
@@ -74,7 +75,7 @@ content: |
74
75
managed key requires specifying a base64-encoded 96-byte
75
76
string with no line breaks. The following operation generates
76
77
a key that meets the stated requirements and loads it into
77
- the ``mongo`` shell :
78
+ :binary:`~bin.mongosh` :
78
79
79
80
.. code-block:: bash
80
81
:emphasize-lines: 1
0 commit comments