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

Add username/pass options for PostgreSQL #2890

Merged
merged 1 commit into from
Nov 1, 2016

Conversation

tsg
Copy link
Contributor

@tsg tsg commented Oct 31, 2016

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.

@tsg tsg added in progress Pull request is currently in progress. review labels Oct 31, 2016
Copy link
Contributor

@ruflin ruflin left a 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
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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.

@tsg tsg force-pushed the postgres_user_and_pass branch from d6cabef to 7a8e8a0 Compare November 1, 2016 10:51
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.
@tsg tsg force-pushed the postgres_user_and_pass branch from 7a8e8a0 to c2db024 Compare November 1, 2016 11:15
@tsg tsg added the needs_backport PR is waiting to be backported to other branches. label Nov 1, 2016
@ruflin
Copy link
Contributor

ruflin commented Nov 1, 2016

LGTM

@tsg tsg removed the in progress Pull request is currently in progress. label Nov 1, 2016
@ruflin ruflin merged commit f0b52e1 into elastic:master Nov 1, 2016
tsg added a commit to tsg/beats that referenced this pull request Nov 1, 2016
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)
tsg added a commit to tsg/beats that referenced this pull request Nov 1, 2016
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)
monicasarbu pushed a commit that referenced this pull request Nov 1, 2016
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.
(cherry picked from commit f0b52e1)
@tsg tsg removed the needs_backport PR is waiting to be backported to other branches. label Nov 4, 2016
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants