-
Notifications
You must be signed in to change notification settings - Fork 43
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
Multiple-line pgpass file doesn't work #54
Comments
Oh, I just noticed that https://github.com/sensu-plugins/sensu-plugins-postgres#pgpass-file does document this issue, so I guess it is my fault for missing that initially. I suspect that this module is not really supporting the pgpass format in general, though, as wildcards in fields other than the database (eg the host or port) would be misinterpreted? I'm also curious why this module needs to parse the |
@majormoses I don't see any mention of
As am I however I suspect this is a shortcoming of the pg gem and not libpq or I suspect I should review the C library.
The module supports a single line
According to https://www.postgresql.org/docs/11/libpq-pgpass.html all fields except Coming full circle I'm not 100% certain what the issue is.
I'm happy to take this on but I'm not sure how to scope the work. |
If I have a .pgpass file with multiple lines, it seems only the first line is used.
I think this is due to the
[0]
insensu-plugins-postgres/lib/sensu-plugins-postgres/pgpass.rb
Line 4 in 1653c8b
Given the postgres docs on the pgpass file format, I expected this to work the same way.
The text was updated successfully, but these errors were encountered: