Skip to content

Conversation

ikalnytskyi
Copy link
Owner

It turns out that PostgreSQL comes with weird default that allows passwordless authentication for localhost connections [1]. This essentially means that 'password' input parameter for this action was ignored.

The 'setup-postgres' action's primary use case is to be used on CI where most of the time authentication is desired in order to verify that passwords are passed correctly from applications under test.

This patch enforces password authentication even for localhost connections, making sure that passwords are verified and not ignored. This will break everyone who previously passed wrong password or didn't pass it at all.

[1] https://www.postgresql.org/docs/15/auth-trust.html

Resolves #5

@ikalnytskyi ikalnytskyi force-pushed the enforce-auth branch 4 times, most recently from 51dfb3a to 1d8e9a5 Compare January 3, 2023 15:16
It turns out that PostgreSQL comes with weird default that allows
passwordless authentication for localhost connections [1]. This
essentially means that 'password' input parameter for this action was
ignored.

The 'setup-postgres' action's primary use case is to be used on CI where
most of the time authentication is desired in order to verify that
passwords are passed correctly from applications under test.

This patch enforces password authentication even for localhost
connections, making sure that passwords are verified and not ignored.
This will break everyone who previously passed wrong password or didn't
pass it at all.

[1] https://www.postgresql.org/docs/15/auth-trust.html

Fixes: #5
@ikalnytskyi ikalnytskyi merged commit 3574bd5 into master Jan 3, 2023
@ikalnytskyi ikalnytskyi deleted the enforce-auth branch January 3, 2023 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong credentials are not rejected
1 participant