|
9 | 9 |
|
10 | 10 | <xsd:complexType name="config"> |
11 | 11 | <xsd:sequence> |
12 | | - <xsd:element name="default-commit-options" type="default-commit-options" minOccurs="0" maxOccurs="1" /> |
| 12 | + <xsd:element name="default-commit-options" type="default-commit-options" minOccurs="0" /> |
13 | 13 | <xsd:element name="connection" type="connection" minOccurs="0" maxOccurs="unbounded" /> |
14 | 14 | <xsd:element name="document-manager" type="document-manager" minOccurs="0" maxOccurs="unbounded" /> |
15 | 15 | <xsd:element name="resolve-target-document" type="resolve_target_document" minOccurs="0" maxOccurs="unbounded" /> |
|
46 | 46 |
|
47 | 47 | <xsd:complexType name="connection"> |
48 | 48 | <xsd:sequence> |
49 | | - <xsd:element name="options" type="connection-options" minOccurs="0" maxOccurs="1" /> |
50 | | - <xsd:element name="driver-options" type="connection-driver-options" minOccurs="0" maxOccurs="1" /> |
| 49 | + <xsd:element name="options" type="connection-options" minOccurs="0" /> |
| 50 | + <xsd:element name="driver-options" type="connection-driver-options" minOccurs="0" /> |
| 51 | + <xsd:element name="autoEncryption" type="auto-encryption" minOccurs="0" /> |
51 | 52 | </xsd:sequence> |
52 | 53 | <xsd:attribute name="id" type="xsd:string" use="required" /> |
53 | 54 | <xsd:attribute name="server" type="xsd:string" /> |
|
84 | 85 | </xsd:complexType> |
85 | 86 |
|
86 | 87 | <xsd:complexType name="connection-driver-options"> |
| 88 | + <xsd:all> |
| 89 | + <xsd:element name="autoEncryption" type="auto-encryption" minOccurs="0"/> |
| 90 | + </xsd:all> |
87 | 91 | <xsd:attribute name="context" type="xsd:string" /> |
88 | 92 | </xsd:complexType> |
89 | 93 |
|
|
119 | 123 | <xsd:attribute name="value" type="xsd:string" use="required" /> |
120 | 124 | </xsd:complexType> |
121 | 125 |
|
| 126 | + <xsd:complexType name="auto-encryption"> |
| 127 | + <xsd:sequence> |
| 128 | + <xsd:element name="kmsProvider" type="kms-provider" /> |
| 129 | + <xsd:element name="masterKey" type="master-key" minOccurs="0" /> |
| 130 | + <xsd:element name="keyVaultClient" type="xsd:string" minOccurs="0" /> |
| 131 | + <xsd:element name="keyVaultNamespace" type="xsd:string" minOccurs="0" /> |
| 132 | + <xsd:element name="tlsOptions" type="tls-options" minOccurs="0" /> |
| 133 | + <xsd:element name="encryptedFieldsMap" type="encrypted-fields-map" minOccurs="0" /> |
| 134 | + <xsd:element name="extraOptions" type="extra-options" minOccurs="0" /> |
| 135 | + </xsd:sequence> |
| 136 | + <xsd:attribute name="bypassAutoEncryption" type="xsd:boolean" /> |
| 137 | + <xsd:attribute name="bypassQueryAnalysis" type="xsd:boolean" /> |
| 138 | + </xsd:complexType> |
| 139 | + |
| 140 | + <xsd:complexType name="kms-provider"> |
| 141 | + <xsd:attribute name="type" type="xsd:string" use="required" /> |
| 142 | + <!-- AWS --> |
| 143 | + <xsd:attribute name="accessKeyId" type="xsd:string" /> |
| 144 | + <xsd:attribute name="secretAccessKey" type="xsd:string" /> |
| 145 | + <xsd:attribute name="sessionToken" type="xsd:string" /> |
| 146 | + <!-- Azure --> |
| 147 | + <xsd:attribute name="tenantId" type="xsd:string" /> |
| 148 | + <xsd:attribute name="clientId" type="xsd:string" /> |
| 149 | + <xsd:attribute name="clientSecret" type="xsd:string" /> |
| 150 | + <xsd:attribute name="keyVaultEndpoint" type="xsd:string" /> |
| 151 | + <xsd:attribute name="identityPlatformEndpoint" type="xsd:string" /> |
| 152 | + <xsd:attribute name="keyName" type="xsd:string" /> |
| 153 | + <xsd:attribute name="keyVersion" type="xsd:string" /> |
| 154 | + <!-- GCP --> |
| 155 | + <xsd:attribute name="email" type="xsd:string" /> |
| 156 | + <xsd:attribute name="privateKey" type="xsd:string" /> |
| 157 | + <xsd:attribute name="endpoint" type="xsd:string" /> |
| 158 | + <xsd:attribute name="projectId" type="xsd:string" /> |
| 159 | + <xsd:attribute name="location" type="xsd:string" /> |
| 160 | + <xsd:attribute name="keyRing" type="xsd:string" /> |
| 161 | + <!-- Attribute already present for another KMS type --> |
| 162 | + <!-- <xsd:attribute name="keyName" type="xsd:string" /> --> |
| 163 | + <!-- <xsd:attribute name="keyVersion" type="xsd:string" /> --> |
| 164 | + <!-- KMIP --> |
| 165 | + <!-- <xsd:attribute name="endpoint" type="xsd:string" /> --> |
| 166 | + <!-- Local --> |
| 167 | + <xsd:attribute name="key" type="xsd:string" /> |
| 168 | + </xsd:complexType> |
| 169 | + |
| 170 | + <xsd:complexType name="master-key"> |
| 171 | + <!-- AWS --> |
| 172 | + <xsd:attribute name="region" type="xsd:string" /> |
| 173 | + <xsd:attribute name="key" type="xsd:string" /> |
| 174 | + <xsd:attribute name="endpoint" type="xsd:string" /> |
| 175 | + <!-- Azure --> |
| 176 | + <xsd:attribute name="keyVaultEndpoint" type="xsd:string" /> |
| 177 | + <xsd:attribute name="keyName" type="xsd:string" /> |
| 178 | + <xsd:attribute name="keyVersion" type="xsd:string" /> |
| 179 | + <!-- GCP --> |
| 180 | + <xsd:attribute name="projectId" type="xsd:string" /> |
| 181 | + <xsd:attribute name="location" type="xsd:string" /> |
| 182 | + <xsd:attribute name="keyRing" type="xsd:string" /> |
| 183 | + <!-- Attribute already present for another master key type --> |
| 184 | + <!-- <xsd:attribute name="keyName" type="xsd:string" /> --> |
| 185 | + <!-- <xsd:attribute name="keyVersion" type="xsd:string" /> --> |
| 186 | + <!-- <xsd:attribute name="endpoint" type="xsd:string" /> --> |
| 187 | + <!-- KMIP --> |
| 188 | + <xsd:attribute name="keyId" type="xsd:string" /> |
| 189 | + <!-- <xsd:attribute name="endpoint" type="xsd:string" /> --> |
| 190 | + <xsd:attribute name="delegated" type="xsd:boolean" /> |
| 191 | + </xsd:complexType> |
| 192 | + |
| 193 | + <xsd:complexType name="tls-options"> |
| 194 | + <xsd:attribute name="tlsCAFile" type="xsd:string" /> |
| 195 | + <xsd:attribute name="tlsCertificateKeyFile" type="xsd:string" /> |
| 196 | + <xsd:attribute name="tlsCertificateKeyFilePassword" type="xsd:string" /> |
| 197 | + <xsd:attribute name="tlsDisableOCSPEndpointCheck" type="xsd:boolean" /> |
| 198 | + </xsd:complexType> |
| 199 | + |
| 200 | + <xsd:simpleType name="encrypted-fields-map"> |
| 201 | + <xsd:restriction base="xsd:string"/> |
| 202 | + </xsd:simpleType> |
| 203 | + |
| 204 | + <xsd:complexType name="encrypted-queries"> |
| 205 | + <xsd:attribute name="queryType" type="xsd:string" use="required" /> |
| 206 | + <xsd:attribute name="min" type="xsd:string" /> |
| 207 | + <xsd:attribute name="max" type="xsd:string" /> |
| 208 | + <xsd:attribute name="sparsity" type="xsd:string" /> |
| 209 | + <xsd:attribute name="trimFactor" type="xsd:string" /> |
| 210 | + </xsd:complexType> |
| 211 | + |
| 212 | + <xsd:complexType name="extra-options"> |
| 213 | + <xsd:sequence> |
| 214 | + <xsd:element name="mongocryptdSpawnArgs" type="xsd:string" minOccurs="0" maxOccurs="unbounded" /> |
| 215 | + </xsd:sequence> |
| 216 | + <xsd:attribute name="mongocryptdURI" type="xsd:string" /> |
| 217 | + <xsd:attribute name="mongocryptdBypassSpawn" type="xsd:boolean" /> |
| 218 | + <xsd:attribute name="mongocryptdSpawnPath" type="xsd:string" /> |
| 219 | + <xsd:attribute name="cryptSharedLibPath" type="xsd:string" /> |
| 220 | + <xsd:attribute name="cryptSharedLibRequired" type="xsd:boolean" /> |
| 221 | + </xsd:complexType> |
| 222 | + |
122 | 223 | <xsd:complexType name="document-manager"> |
123 | 224 | <xsd:choice maxOccurs="unbounded"> |
124 | 225 | <xsd:element name="filter" type="filter" minOccurs="0" maxOccurs="unbounded" /> |
125 | 226 | <xsd:element name="mapping" type="mapping" minOccurs="0" maxOccurs="unbounded" /> |
126 | | - <xsd:element name="metadata-cache-driver" type="metadata-cache-driver" minOccurs="0" maxOccurs="1" /> |
127 | | - <xsd:element name="profiler" type="profiler" minOccurs="0" maxOccurs="1" /> |
| 227 | + <xsd:element name="metadata-cache-driver" type="metadata-cache-driver" minOccurs="0" /> |
| 228 | + <xsd:element name="profiler" type="profiler" minOccurs="0" /> |
128 | 229 | </xsd:choice> |
129 | 230 | <xsd:attribute name="id" type="xsd:string" use="required" /> |
130 | 231 | <xsd:attribute name="auto-mapping" type="xsd:boolean" /> |
|
167 | 268 |
|
168 | 269 | <xsd:complexType name="metadata-cache-driver"> |
169 | 270 | <xsd:all> |
170 | | - <xsd:element name="class" type="xsd:string" minOccurs="0" maxOccurs="1" /> |
171 | | - <xsd:element name="host" type="xsd:string" minOccurs="0" maxOccurs="1" /> |
172 | | - <xsd:element name="instance-class" type="xsd:string" minOccurs="0" maxOccurs="1" /> |
173 | | - <xsd:element name="port" type="xsd:integer" minOccurs="0" maxOccurs="1" /> |
| 271 | + <xsd:element name="class" type="xsd:string" minOccurs="0" /> |
| 272 | + <xsd:element name="host" type="xsd:string" minOccurs="0" /> |
| 273 | + <xsd:element name="instance-class" type="xsd:string" minOccurs="0" /> |
| 274 | + <xsd:element name="port" type="xsd:integer" minOccurs="0" /> |
174 | 275 | </xsd:all> |
175 | 276 | <xsd:attribute name="id" type="xsd:string" /> |
176 | 277 | <xsd:attribute name="type" type="xsd:string" /> |
|
0 commit comments