Editorial question15.7K views1,231 votes0 answers4,870 following
AI-generatedPostgreSQL rolvaliduntil expiry interoperability with pg_hba.conf authentication methods
PostgreSQL stores password-expiry state in pg_authid.rolvaliduntil and enforces it exclusively during password-based authentication such as SCRAM-SHA-256 or MD5. When pg_hba.conf selects a non-password method peer GSSAPI or certificate-based login the VALID UNTIL timestamp is not evaluated allowing connections that would be rejected under password methods. T