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

setup Mongo authSource by ENV #358

Closed
wants to merge 1 commit into from

Conversation

@sinacek
Copy link
Contributor

commented Aug 15, 2019

Enable setup Mongo connection option authSource by environment variable.

It's required when credentials are stored in separe collection.

ENV variable is easiest way for use by docker.

@vrana

This comment has been minimized.

Copy link
Owner

commented Aug 21, 2019

This is too magic. You can try implementing it as a plugin.

What's the difference between db and authSource?

@vrana vrana closed this Aug 21, 2019

@sinacek

This comment has been minimized.

Copy link
Contributor Author

commented Aug 21, 2019

db is database with data. authSource is database which contains users and their credentials and is used for authentization.
We have more db on same machine with one authSource for all of them.

I don't know how to send the information from extension to connection, when there are no arguments. https://github.com/vrana/adminer/blob/master/adminer/drivers/mongo.inc.php#L622

@vrana

This comment has been minimized.

Copy link
Owner

commented Aug 22, 2019

OK, merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.