-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Graylog cannot authenticate on MongoDB if password contains the sign + #5680
Comments
Hi @frantz45, |
@frantz45 unfortunately we can't jump easily to a more recent mongo-java-driver version. For now the user needs to escape plus signs by hand with this string: We will add this to the examples in the default configuration. |
Since we have a (documented #5795) workaround now, I will close this ticket. The underlying issue is not fixed, but will be fixed once we update the MongoDB driver. |
Expected Behavior
Graylog should authenticate on MongoDB
Current Behavior
Graylog does not authenticate on MongoDB
Possible Solution
Choose a password without the sign +
Steps to Reproduce (for bugs)
mongo mongodb://grayloguser:secret+@localhost:27017/graylog
MongoDB doc does not say the sign + needs to be encoded:
If the username or password includes the at sign @, colon :, slash /, or the percent sign % character, use percent encoding.
https://docs.mongodb.com/manual/reference/connection-string/
Context
Puppet automatically chooses a password for the graylog MongoDB user. + was in the charset used.
Your Environment
The text was updated successfully, but these errors were encountered: