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

User Admin #42

Open
naphtalidavies opened this issue Jul 6, 2020 · 3 comments
Open

User Admin #42

naphtalidavies opened this issue Jul 6, 2020 · 3 comments

Comments

@naphtalidavies
Copy link

Hi,
What permissions does the user need in order to write to the log?
It seems that in order to write to the log there is a need to use admin rights on the whole mongo instance. Anything less than that would not write to logs to the mongodb

@snakefoot
Copy link
Contributor

snakefoot commented Jul 6, 2020

Know nothing about MongoDb. But I guess if you create user with the builtin role readWriteAnyDatabase then it should work:

https://docs.mongodb.com/manual/reference/built-in-roles/#readWriteAnyDatabase

You can perform a grantRole-action for the user:

https://docs.mongodb.com/manual/tutorial/manage-users-and-roles/#modify-access-for-an-existing-user

@naphtalidavies
Copy link
Author

But why should it have read write to all databases? It should have read write only for the logging database

@snakefoot
Copy link
Contributor

snakefoot commented Jul 7, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants