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
Queryable Encryption (QE) allows you to run queries on encrypted fields. To use QE, you may need to provide an ``encryptedFieldsMap`` or use a schema map, depending on your driver and use case.
82
+
You can configure which fields are encrypted in each collection by specifying the
83
+
``autoEncryption.encryptedFieldsMap`` option in the connection configuration.
84
+
This setting is **recommended** for improved security and performance.
85
+
86
+
- If the connection ``encryptedFieldsMap`` object contains a key for the specified
87
+
collection, the client uses that object to perform automatic Queryable Encryption,
88
+
rather than using the remote schema. At minimum, the local rules must encrypt
89
+
all fields that the remote schema does.
90
+
91
+
- If the connection ``encryptedFieldsMap`` object doesn't contain a key for the
92
+
specified collection, the client downloads the server-side remote schema for
93
+
the collection and uses it instead.
94
+
95
+
For more details, see the official MongoDB documentation: `Encrypted Fields and Enabled Queries <https://www.mongodb.com/docs/manual/core/queryable-encryption/fundamentals/encrypt-and-query/>`_.
83
96
84
97
.. tabs::
85
98
@@ -133,6 +146,51 @@ Queryable Encryption (QE) allows you to run queries on encrypted fields. To use
133
146
]);
134
147
};
135
148
149
+
Automatic Encryption Shared Library
150
+
-----------------------------------
151
+
152
+
To use automatic encryption, the MongoDB PHP driver requires the `Automatic Encryption Shared Library`_.
153
+
154
+
If the driver is not able to find the library, you can specify its path using the ``cryptSharedLibPath`` extra option in your connection configuration.
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
-48Lines changed: 0 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -36,12 +36,6 @@ parameters:
36
36
count:1
37
37
path:src/CacheWarmer/ProxyCacheWarmer.php
38
38
39
-
-
40
-
message:'#^Method Doctrine\\Bundle\\MongoDBBundle\\CacheWarmer\\ProxyCacheWarmer\:\:getClassesForProxyGeneration\(\) return type with generic class Doctrine\\ODM\\MongoDB\\Mapping\\ClassMetadata does not specify its types\: T$#'
message:'#^Expression on left side of \?\? is not nullable\.$#'
125
-
identifier:nullCoalesce.expr
126
-
count:1
127
-
path:src/DataCollector/ConnectionDiagnostic.php
128
-
129
117
-
130
118
message:'#^Method Doctrine\\Bundle\\MongoDBBundle\\DataCollector\\ConnectionDiagnostic\:\:__construct\(\) has parameter \$driverOptions with no value type specified in iterable type array\.$#'
131
119
identifier:missingType.iterableValue
132
120
count:1
133
121
path:src/DataCollector/ConnectionDiagnostic.php
134
122
135
-
-
136
-
message:'#^Method Doctrine\\Bundle\\MongoDBBundle\\DataCollector\\ConnectionDiagnostic\:\:getAutoEncryptionInfo\(\) return type has no value type specified in iterable type array\.$#'
137
-
identifier:missingType.iterableValue
138
-
count:1
139
-
path:src/DataCollector/ConnectionDiagnostic.php
140
-
141
-
-
142
-
message:'#^Method Doctrine\\Bundle\\MongoDBBundle\\DataCollector\\ConnectionDiagnostic\:\:getPhpExtensionInfo\(\) return type has no value type specified in iterable type array\.$#'
143
-
identifier:missingType.iterableValue
144
-
count:1
145
-
path:src/DataCollector/ConnectionDiagnostic.php
146
-
147
-
-
148
-
message:'#^Method Doctrine\\Bundle\\MongoDBBundle\\DataCollector\\ConnectionDiagnostic\:\:getServerInfo\(\) return type has no value type specified in iterable type array\.$#'
message:'#^Method Doctrine\\Bundle\\MongoDBBundle\\Form\\DoctrineMongoDBTypeGuesser\:\:getMetadata\(\) return type with generic class Doctrine\\ODM\\MongoDB\\Mapping\\ClassMetadata does not specify its types\: T$#'
377
-
identifier:missingType.generics
378
-
count:1
379
-
path:src/Form/DoctrineMongoDBTypeGuesser.php
380
-
381
339
-
382
340
message:'#^Method Doctrine\\Bundle\\MongoDBBundle\\Form\\DoctrineMongoDBTypeGuesser\:\:getMetadata\(\) should return array\{Doctrine\\ODM\\MongoDB\\Mapping\\ClassMetadata, string\}\|null but returns array\{Doctrine\\Persistence\\Mapping\\ClassMetadata\<object\>, string\}\.$#'
383
341
identifier:return.type
@@ -420,12 +378,6 @@ parameters:
420
378
count:1
421
379
path:src/Form/DoctrineMongoDBTypeGuesser.php
422
380
423
-
-
424
-
message:'#^Property Doctrine\\Bundle\\MongoDBBundle\\Form\\DoctrineMongoDBTypeGuesser\:\:\$cache with generic class Doctrine\\ODM\\MongoDB\\Mapping\\ClassMetadata does not specify its types\: T$#'
425
-
identifier:missingType.generics
426
-
count:1
427
-
path:src/Form/DoctrineMongoDBTypeGuesser.php
428
-
429
381
-
430
382
message:'#^Unable to resolve the template type T in call to method Doctrine\\Persistence\\ObjectManager\:\:getClassMetadata\(\)$#'
0 commit comments