-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Developer Tools
Background
Some customers need read access to internal auto embedding collections for monitoring/other use cases .
Problem
The current internal check is a blanket prefix match with no way to exempt a specific database:
packages/mongodb-ns/src/index.ts:53
this.internal = /^__mdb_internal_\w/.test(this.database);
This flows into packages/database-model/lib/model.js:267 (.filter((db) => !toNS(db._id).internal)), which is what Compass's database list (and the compass-web bundle used by Atlas Data Explorer) uses to decide what to display.
Proposed fix
Add a narrow exception for exactly __mdb_internal_search.