Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-56741

How was _schema collection created?

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.2.8
    • Component/s: None
    • Labels:
      None

      Hi,

      We are using trinodb to fetch the data from our existing MongoDB cluster.

      In order to make connection, we created a user with readonly privileges as:

      "_id" : "admin.readonly", "_id" : "admin.readonly", "userId" : UUID("***"), "user" : "readonly", "db" : "admin", "roles" : [ { "role" : "clusterMonitor", "db" : "admin" }, { "role" : "readAnyDatabase", "db" : "admin" } ],

       

      When we make connection using trinodb, we found a collection named "_schema" is created and we found metadata information like data type and collections name inside it.

      https://trino.io/docs/current/connector/mongodb.html#mongodb-schema-collection

      Now we are wondering with readonly, how it allow to create "_schema" collection.

      Please help us to understand if we are having any leakage/missing in our user management or anything.

            Assignee:
            eric.sedor@mongodb.com Eric Sedor
            Reporter:
            aayushi.mangal@visiblealpha.com Aayushi Mangal
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: