-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add username/pass options for PostgreSQL #2890
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changelog needs an update.
# The available parameters are documented here: | ||
# https://godoc.org/github.com/lib/pq#hdr-Connection_String_Parameters | ||
#hosts: ["postgres://postgres@localhost:5432"] | ||
# | ||
# Warning: specifying the user/password in the hosts array is possible |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if I would add this to the beat.full.yml as not all parts which are in the docs also have to be in the config file. As long as we removed username / password from the example and have username / password below I don't think we need to add this here. It will make it only harder to keep it up-to-date in case of changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You missed it in the mongo PR then :-)
I worry that people will still add the user/pass to the connection string because that's how they are used from other software, and then be surprised to see we've indexed the password. Maybe I'm overreacting here, happy to also take it out. But I guess once we do the sanitization part we take out the warnings and we're done with it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I realised when I wrote that, that i missed it there but that was too late ;-)
Taking it out later SGTM.
d6cabef
to
7a8e8a0
Compare
Similar to elastic#2889 but for PostgreSQL. Also adds docs to the Postgres module, which were missing, and adjusted the integration tests to use the username option instead of the full URL.
7a8e8a0
to
c2db024
Compare
LGTM |
Similar to elastic#2889 but for PostgreSQL. Also adds docs to the Postgres module, which were missing, and adjusted the integration tests to use the username option instead of the full URL. (cherry picked from commit f0b52e1)
Similar to elastic#2889 but for PostgreSQL. Also adds docs to the Postgres module, which were missing, and adjusted the integration tests to use the username option instead of the full URL. (cherry picked from commit f0b52e1)
Similar to elastic#2889 but for PostgreSQL. Also adds docs to the Postgres module, which were missing, and adjusted the integration tests to use the username option instead of the full URL. (cherry picked from commit f1fb61d)
Similar to #2889 but for PostgreSQL. Also adds docs to the Postgres module,
which were missing, and adjusted the integration tests to use the username
option instead of the full URL.