Skip to content
vetkitChecksChangelogDocumentation

vetkit.postgres.hba.trust-remote

pg_hba.conf allows passwordless trust authentication for TCP connections from non-loopback addresses. Anyone who can reach PostgreSQL can log in as the listed users (often any user).

Last updated:

Suite: Security

regex

pg_hba.conf allows passwordless trust authentication for TCP connections from non-loopback addresses. Anyone who can reach PostgreSQL can log in as the listed users (often any user).

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Use scram-sha-256 for network connections and limit trust to local socket connections on single-user machines.

References

Source: packages/engine/rules/sast/config.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.