Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14128

[MEKO] Clarify that you can assign a user to only one MongoDB resource

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Done
    • None
    • None
    • Kubernetes Operator
    • 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

      1. Match to metadata.name of the User Secret
        key: password
        username: "awong"
        db: "admin" #
        mongodbResourceRef:
        name: "my-replica-set4"
      2. 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?

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

      Attachments

        Activity

          People

            james.sanchez@mongodb.com James Sanchez (Inactive)
            albert.wong@mongodb.com Albert Wong
            James Sanchez James Sanchez (Inactive)
            Dave Cuthbert Dave Cuthbert
            Nikolas De Giorgis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              50 weeks ago