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

    • Type: Improvement
    • Status: External Review
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Kubernetes Operator
    • Labels:
      None
    • Last comment by Customer:
      true
    • Story Points:
      1
    • Epic Link:
    • Sprint:
      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)

      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

            Assignee:
            james.sanchez James Sanchez
            Reporter:
            albert.wong Albert Wong
            Participants:
            Last commenter:
            James Sanchez James Sanchez
            Docs Reviewer:
            Dave Cuthbert Dave Cuthbert
            External Reviewer:
            Nikolas De Giorgis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Days since reply:
              2 weeks, 2 days ago
              Date of 1st Reply: