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

Backport: Add explicit username and password option for Mongodb (#2889) #2900

Merged
merged 1 commit into from
Nov 1, 2016

Conversation

tsg
Copy link
Contributor

@tsg tsg commented Nov 1, 2016

Backport of #2889:

We previously only had the option of specifying a user/pass in the
URL string, which is problematic because it results in the password
being indexed in Elasticsearch (#2888).

This adds the option to specify a username/password at the module
configuration. To make this happen, I had to copy some unexported
functions from the mgo driver.
(cherry picked from commit 6c7dfe4)

@ruflin
Copy link
Contributor

ruflin commented Nov 1, 2016

LGTM

@monicasarbu
Copy link
Contributor

@tsg Can you please rebase?

We previously only had the option of specifying a user/pass in the
URL string, which is problematic because it results in the password
being indexed in Elasticsearch (elastic#2888).

This adds the option to specify a username/password at the module
configuration. To make this happen, I had to copy some unexported
functions from the mgo driver.
(cherry picked from commit 6c7dfe4)
@tsg
Copy link
Contributor Author

tsg commented Nov 1, 2016

rebased

@andrewkroh andrewkroh merged commit 4bdfed3 into elastic:5.0 Nov 1, 2016
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…lastic#2900)

We previously only had the option of specifying a user/pass in the
URL string, which is problematic because it results in the password
being indexed in Elasticsearch (elastic#2888).

This adds the option to specify a username/password at the module
configuration. To make this happen, I had to copy some unexported
functions from the mgo driver.
(cherry picked from commit b4f22e3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants