Details
-
Improvement
-
Status: Closed
-
Minor - P4
-
Resolution: Done
-
None
-
None
-
None
-
1
-
CET: Lemur (1 - 8 Nov 21), CET: Mongoose (9 - 15 Nov 21), CET: Narwhal (16 - 22 Nov 21), CET: Otter (23 - 29 Nov 21), CET: Puffin (30 Nov-6 Dec 21), CET: Quokka (7 - 13 Dec 21), CET: Reindeer (14 - 20 Dec 21)
-
true
Description
Description
Per https://docs.mongodb.com/kubernetes-operator/stable/tutorial/manage-database-users-scram/#k8s-manage-db-users-scram, it implies that only one user (awong) can belong in a single MongoDB resource (my-replica-set4).
apiVersion: mongodb.com/v1
kind: MongoDBUser
metadata:
name: mms-scram-awong
spec:
passwordSecretKeyRef:
name: awong-password
- Match to metadata.name of the User Secret
key: password
username: "awong"
db: "admin" #
mongodbResourceRef:
name: "my-replica-set4" - Match to MongoDB resource using authenticaiton
roles:
- db: admin
name: clusterAdmin - db: admin
name: dbAdminAnyDatabase - db: admin
name: userAdminAnyDatabase - db: admin
name: readWriteAnyDatabase
I tried to assign this user to my-replica-set4 and my-replica-set5 and it wouldn't let me. Is it possible? If so, can we update the instructions?