You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extract autoEncryption driver options in MongoDB\Driver\Manager::__construct() (#4754)
* Extract MongoDB autoEncryption options into a distinct table for readability
* Add link to autoEncryption options
---------
Co-authored-by: Andreas Braun <git@alcaeus.org>
<literal>encryptedFields</literal> document. This is used to
741
-
configure queryable encryption. See
742
-
<linkxlink:href="&url.mongodb.docs;core/queryable-encryption/fundamentals/encrypt-and-query/">Field Encryption and Queryability</link>
743
-
in the MongoDB manual for more information. It is an error to
744
-
specify a collection in both
745
-
<literal>encryptedFieldsMap</literal> and
746
-
<literal>schemaMap</literal>.
747
-
</para>
748
-
<note>
749
-
<simpara>
750
-
Supplying an <literal>encryptedFieldsMap</literal> provides
751
-
more security than relying on an
752
-
<literal>encryptedFields</literal> obtained from the server.
753
-
It protects against a malicious server advertising a false
754
-
<literal>encryptedFields</literal>.
755
-
</simpara>
756
-
</note>
757
-
</entry>
758
-
</row>
759
-
<row>
760
-
<entry>extraOptions</entry>
761
-
<entry><type>array</type></entry>
762
-
<entry>
763
-
<para>
764
-
The <literal>extraOptions</literal> relate to the
765
-
<literal>mongocryptd</literal> process. The following options
766
-
are supported:
767
-
</para>
768
-
<simplelist>
769
-
<member><literal>mongocryptdURI</literal> (<type>string</type>): URI to connect to an existing <literal>mongocryptd</literal> process. Defaults to <literal>"mongodb://localhost:27020"</literal>.</member>
770
-
<member><literal>mongocryptdBypassSpawn</literal> (<type>bool</type>): If &true;, prevent the driver from spawning <literal>mongocryptd</literal>. Defaults to &false;.</member>
771
-
<member><literal>mongocryptdSpawnPath</literal> (<type>string</type>): Absolute path to search for <literal>mongocryptd</literal> binary. Defaults to empty string and consults system paths.</member>
772
-
<member><literal>mongocryptdSpawnArgs</literal> (<type>array</type>): Array of string arguments to pass to <literal>mongocryptd</literal> when spawning. Defaults to <literal>["--idleShutdownTimeoutSecs=60"]</literal>.</member>
773
-
<member><literal>cryptSharedLibPath</literal> (<type>string</type>): Absolute path to <literal>crypt_shared</literal> shared library. Defaults to empty string and consults system paths.</member>
774
-
<member><literal>cryptSharedLibRequired</literal> (<type>bool</type>): If &true;, require the driver to load <literal>crypt_shared</literal>. Defaults to &false;.</member>
775
-
</simplelist>
776
-
<para>
777
-
See the <linkxlink:href="&url.mongodb.specs;/blob/master/source/client-side-encryption/client-side-encryption.rst#extraoptions">Client-Side Encryption Specification</link> for more information.
778
-
</para>
779
-
</entry>
780
-
</row>
781
-
</tbody>
782
-
</tgroup>
783
-
</table>
784
-
</para>
785
-
786
-
<note>
787
-
<simpara>
788
-
Automatic encryption is an enterprise only feature that only
789
-
applies to operations on a collection. Automatic encryption is not
790
-
supported for operations on a database or view, and operations that
791
-
are not bypassed will result in error. To bypass automatic
792
-
encryption for all operations, set <literal>bypassAutoEncryption=true</literal>
793
-
in <literal>autoEncryption</literal>. For more information on
<literal>encryptedFields</literal> document. This is used to
810
+
configure queryable encryption. See
811
+
<linkxlink:href="&url.mongodb.docs;core/queryable-encryption/fundamentals/encrypt-and-query/">Field Encryption and Queryability</link>
812
+
in the MongoDB manual for more information. It is an error to
813
+
specify a collection in both
814
+
<literal>encryptedFieldsMap</literal> and
815
+
<literal>schemaMap</literal>.
816
+
</para>
817
+
<note>
818
+
<simpara>
819
+
Supplying an <literal>encryptedFieldsMap</literal> provides
820
+
more security than relying on an
821
+
<literal>encryptedFields</literal> obtained from the server.
822
+
It protects against a malicious server advertising a false
823
+
<literal>encryptedFields</literal>.
824
+
</simpara>
825
+
</note>
826
+
</entry>
827
+
</row>
828
+
<row>
829
+
<entry>extraOptions</entry>
830
+
<entry><type>array</type></entry>
831
+
<entry>
832
+
<para>
833
+
The <literal>extraOptions</literal> relate to the
834
+
<literal>mongocryptd</literal> process. The following options
835
+
are supported:
836
+
</para>
837
+
<simplelist>
838
+
<member><literal>mongocryptdURI</literal> (<type>string</type>): URI to connect to an existing <literal>mongocryptd</literal> process. Defaults to <literal>"mongodb://localhost:27020"</literal>.</member>
839
+
<member><literal>mongocryptdBypassSpawn</literal> (<type>bool</type>): If &true;, prevent the driver from spawning <literal>mongocryptd</literal>. Defaults to &false;.</member>
840
+
<member><literal>mongocryptdSpawnPath</literal> (<type>string</type>): Absolute path to search for <literal>mongocryptd</literal> binary. Defaults to empty string and consults system paths.</member>
841
+
<member><literal>mongocryptdSpawnArgs</literal> (<type>array</type>): Array of string arguments to pass to <literal>mongocryptd</literal> when spawning. Defaults to <literal>["--idleShutdownTimeoutSecs=60"]</literal>.</member>
842
+
<member><literal>cryptSharedLibPath</literal> (<type>string</type>): Absolute path to <literal>crypt_shared</literal> shared library. Defaults to empty string and consults system paths.</member>
843
+
<member><literal>cryptSharedLibRequired</literal> (<type>bool</type>): If &true;, require the driver to load <literal>crypt_shared</literal>. Defaults to &false;.</member>
844
+
</simplelist>
845
+
<para>
846
+
See the <linkxlink:href="&url.mongodb.specs;/blob/master/source/client-side-encryption/client-side-encryption.rst#extraoptions">Client-Side Encryption Specification</link> for more information.
847
+
</para>
848
+
</entry>
849
+
</row>
850
+
</tbody>
851
+
</tgroup>
852
+
</table>
853
+
<note>
854
+
<simpara>
855
+
Automatic encryption is an enterprise only feature that only
856
+
applies to operations on a collection. Automatic encryption is not
857
+
supported for operations on a database or view, and operations that
858
+
are not bypassed will result in error. To bypass automatic
859
+
encryption for all operations, set <literal>bypassAutoEncryption=true</literal>
860
+
in <literal>autoEncryption</literal>. For more information on
0 commit comments