Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoDB connector: add documentation/examples for connecting to an instance with user that has no permissions to connect to default database #2518

Open
artem-shelkovnikov opened this issue May 8, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@artem-shelkovnikov
Copy link
Member

Problem Description

MongoDB has a special way to authenticate users: https://www.mongodb.com/docs/manual/core/security-scram/

In short, user is authenticated against a database. If no database is passed, user is authenticated to default database (admin), see https://www.mongodb.com/docs/manual/reference/connection-string/#standard-connection-string-format.

In case a readonly user is created, that has access only to database that user wants to sync, for example foo_database, this user can only authenticate against this DB. In practice it means, that in connector user needs to specify their host like this:

mongodb://hostname:port/foo_database

It's not clear and not obvious, so we need to add documentation and other UI hints to make it clear.

Proposed Solution

  1. Add this information into our official MongoDB documentation
  2. Maybe add a tooltip for host?
@artem-shelkovnikov artem-shelkovnikov added enhancement New feature or request documentation Improvements or additions to documentation labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant