File tree Expand file tree Collapse file tree 11 files changed +198
-9
lines changed
samples/mongodb/authentication/ldap Expand file tree Collapse file tree 11 files changed +198
-9
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ spec:
183
183
type : array
184
184
items :
185
185
type : string
186
- enum : ["SCRAM", "X509"]
186
+ enum : ["SCRAM", "X509", "LDAP" ]
187
187
ignoreUnknownUsers :
188
188
type : boolean
189
189
tls :
@@ -193,11 +193,34 @@ spec:
193
193
type : boolean
194
194
ca :
195
195
type : string
196
+ secretRef :
197
+ type : object
198
+ properties :
199
+ name :
200
+ type : string
196
201
additionalCertificateDomains :
197
202
type : array
198
203
items :
199
204
type : string
200
205
206
+ ldap :
207
+ type : object
208
+ properties :
209
+ bindQueryUser :
210
+ type : string
211
+ servers :
212
+ type : string
213
+ transportSecurity :
214
+ type : string
215
+ enum : ["none", "tls"]
216
+ bindQueryPasswordSecretRef :
217
+ type : object
218
+ properties :
219
+ name :
220
+ type : string
221
+ caConfigMapRef :
222
+ type : object
223
+
201
224
# Sharded Cluster properties
202
225
shardPodSpec :
203
226
type : object
Original file line number Diff line number Diff line change 1
1
name : mongodb-enterprise-operator
2
2
description : MongoDB Kubernetes Enterprise Operator
3
- version : 1.5.5
3
+ version : 1.6.0
4
4
kubeVersion : ' >=1.13-0'
5
5
keywords :
6
6
- mongodb
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ spec:
183
183
type : array
184
184
items :
185
185
type : string
186
- enum : ["SCRAM", "X509"]
186
+ enum : ["SCRAM", "X509", "LDAP" ]
187
187
ignoreUnknownUsers :
188
188
type : boolean
189
189
tls :
@@ -193,11 +193,34 @@ spec:
193
193
type : boolean
194
194
ca :
195
195
type : string
196
+ secretRef :
197
+ type : object
198
+ properties :
199
+ name :
200
+ type : string
196
201
additionalCertificateDomains :
197
202
type : array
198
203
items :
199
204
type : string
200
205
206
+ ldap :
207
+ type : object
208
+ properties :
209
+ bindQueryUser :
210
+ type : string
211
+ servers :
212
+ type : string
213
+ transportSecurity :
214
+ type : string
215
+ enum : ["none", "tls"]
216
+ bindQueryPasswordSecretRef :
217
+ type : object
218
+ properties :
219
+ name :
220
+ type : string
221
+ caConfigMapRef :
222
+ type : object
223
+
201
224
# Sharded Cluster properties
202
225
shardPodSpec :
203
226
type : object
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ operator:
15
15
deployment_name : mongodb-enterprise-operator
16
16
17
17
# Version of mongodb-enterprise-operator and mongodb-enterprise-database images
18
- version : 1.5.5
18
+ version : 1.6.0
19
19
20
20
# The Custom Resources that will be watched by the Operator. Needs to be changed if only some of the CRDs are installed
21
21
watchedResources :
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ operator:
16
16
deployment_name : mongodb-enterprise-operator
17
17
18
18
# Version of mongodb-enterprise-operator and mongodb-enterprise-database images
19
- version : 1.5.5
19
+ version : 1.6.0
20
20
21
21
# The Custom Resources that will be watched by the Operator. Needs to be changed if only some of the CRDs are installed
22
22
watchedResources :
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ spec:
188
188
serviceAccountName : enterprise-operator
189
189
containers :
190
190
- name : mongodb-enterprise-operator
191
- image : registry.connect.redhat.com/mongodb/enterprise-operator:1.5.5
191
+ image : registry.connect.redhat.com/mongodb/enterprise-operator:1.6.0
192
192
imagePullPolicy : Always
193
193
args :
194
194
- " -watch-resource=mongodb"
@@ -210,7 +210,7 @@ spec:
210
210
- name : MANAGED_SECURITY_CONTEXT
211
211
value : ' true'
212
212
- name : MONGODB_ENTERPRISE_DATABASE_IMAGE
213
- value : registry.connect.redhat.com/mongodb/enterprise-database:1.5.5
213
+ value : registry.connect.redhat.com/mongodb/enterprise-database:1.6.0
214
214
- name : IMAGE_PULL_POLICY
215
215
value : Always
216
216
- name : OPS_MANAGER_IMAGE_REPOSITORY
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ spec:
191
191
runAsUser : 2000
192
192
containers :
193
193
- name : mongodb-enterprise-operator
194
- image : quay.io/mongodb/mongodb-enterprise-operator:1.5.5
194
+ image : quay.io/mongodb/mongodb-enterprise-operator:1.6.0
195
195
imagePullPolicy : Always
196
196
args :
197
197
- " -watch-resource=mongodb"
@@ -211,7 +211,7 @@ spec:
211
211
fieldRef :
212
212
fieldPath : metadata.namespace
213
213
- name : MONGODB_ENTERPRISE_DATABASE_IMAGE
214
- value : quay.io/mongodb/mongodb-enterprise-database:1.5.5
214
+ value : quay.io/mongodb/mongodb-enterprise-database:1.6.0
215
215
- name : IMAGE_PULL_POLICY
216
216
value : Always
217
217
- name : OPS_MANAGER_IMAGE_REPOSITORY
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : mongodb.com/v1
3
+ kind : MongoDBUser
4
+ metadata :
5
+ name : my-ldap-user
6
+ spec :
7
+ username : my-ldap-user
8
+ db : $external
9
+ mongodbResourceRef :
10
+ name : my-ldap-enabled-replica-set # The name of the MongoDB resource this user will be added to
11
+ roles :
12
+ - db : admin
13
+ name : clusterAdmin
14
+ - db : admin
15
+ name : userAdminAnyDatabase
16
+ - db : admin
17
+ name : readWrite
18
+ - db : admin
19
+ name : userAdminAnyDatabase
Original file line number Diff line number Diff line change
1
+ # Creates a MongoDB Replica Set with LDAP Authentication Enabled.
2
+ # LDAP is an Enterprise-only feature.
3
+
4
+ ---
5
+ apiVersion : mongodb.com/v1
6
+ kind : MongoDB
7
+ metadata :
8
+ name : my-ldap-enabled-replica-set
9
+ spec :
10
+ type : ReplicaSet
11
+ members : 3
12
+ version : 4.0.4-ent
13
+
14
+ opsManager :
15
+ configMapRef :
16
+ name : my-project
17
+ credentials : my-credentials
18
+
19
+ security :
20
+ authentication :
21
+ enabled : true
22
+ # Enabled LDAP Authentication Mode
23
+ modes : ["LDAP"]
24
+
25
+ # LDAP related configuration
26
+ ldap :
27
+ # Specify the hostname:port combination of one or
28
+ # more LDAP servers
29
+ servers : " <ldap-servers>"
30
+
31
+ # Set to "tls" to use LDAP over TLS. Leave blank if
32
+ # LDAP server does not accept TLS.
33
+ transportSecurity : " tls"
34
+
35
+ # ConfigMap containing a CA certificate that validates
36
+ # the LDAP server's TLS certificate.
37
+ caConfigMapRef :
38
+ name : " <configmap-name>"
39
+ key : " <configmap-entry-key>"
40
+
41
+ # Specify the LDAP Distinguished Name to which
42
+ # MongoDB binds when connecting to the LDAP server
43
+ bindQueryUser : " cn=admin,dc=example,dc=org"
44
+
45
+ # Specify the password with which MongoDB binds
46
+ # when connecting to an LDAP server. This is a
47
+ # reference to a Secret Kubernetes Object containing
48
+ # one "password" key.
49
+ bindQueryPasswordSecretRef :
50
+ name : " <secret-name>"
51
+
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : mongodb.com/v1
3
+ kind : MongoDBUser
4
+ metadata :
5
+ name : my-ldap-user
6
+ spec :
7
+ username : my-ldap-user
8
+ db : $external
9
+ mongodbResourceRef :
10
+ name : my-ldap-enabled-sharded-cluster # The name of the MongoDB resource this user will be added to
11
+ roles :
12
+ - db : admin
13
+ name : clusterAdmin
14
+ - db : admin
15
+ name : userAdminAnyDatabase
16
+ - db : admin
17
+ name : readWrite
18
+ - db : admin
19
+ name : userAdminAnyDatabase
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : mongodb.com/v1
3
+ kind : MongoDB
4
+ metadata :
5
+ name : my-ldap-enabled-sharded-cluster
6
+ spec :
7
+ type : ShardedCluster
8
+
9
+ shardCount : 2
10
+ mongodsPerShardCount : 3
11
+ mongosCount : 2
12
+ configServerCount : 3
13
+
14
+ version : 4.0.4-ent
15
+
16
+ opsManager :
17
+ configMapRef :
18
+ name : my-project
19
+ credentials : my-credentials
20
+
21
+ security :
22
+ authentication :
23
+ enabled : true
24
+
25
+ # Enabled LDAP Authentication Mode
26
+ modes : ["LDAP"]
27
+
28
+ # LDAP related configuration
29
+ ldap :
30
+ # Specify the hostname:port combination of one or
31
+ # more LDAP servers
32
+ servers : " <ldap-servers>"
33
+
34
+ # Set to "tls" to use LDAP over TLS. Leave blank if
35
+ # LDAP server does not accept TLS.
36
+ transportSecurity : " tls"
37
+
38
+ # ConfigMap containing a CA certificate that validates
39
+ # the LDAP server's TLS certificate.
40
+ caConfigMapRef :
41
+ name : " <configmap-name>"
42
+ key : " <configmap-entry-key>"
43
+
44
+ # Specify the LDAP Distinguished Name to which
45
+ # MongoDB binds when connecting to the LDAP server
46
+ bindQueryUser : " cn=admin,dc=example,dc=org"
47
+
48
+ # Specify the password with which MongoDB binds
49
+ # when connecting to an LDAP server. This is a
50
+ # reference to a Secret Kubernetes Object containing
51
+ # one "password" key.
52
+ bindQueryPasswordSecretRef :
53
+ name : " <secret-name>"
54
+
You can’t perform that action at this time.
0 commit comments