You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could PostgreSQL password authentication be placed behind an optional feature, following the pattern introduced for MySQL RSA in #4142?
sqlx-postgres currently always includes cleartext password, MD5, and SCRAM authentication support. This pulls in dependencies such as md-5, hmac, sha2, and stringprep, even for deployments that exclusively use PostgreSQL client-certificate authentication.
Making password authentication optional would reduce unused dependencies and audit surface. It would also help FIPS-oriented deployments ensure that unused cryptographic operations are excluded from the binary rather than implemented outside their selected validated cryptographic module.
Potentially. Public APIs can remain compatible, but builds using default-features = false may need to enable postgres-password-auth
to retain existing password-authentication behavior. This is similar
to the compatibility impact described in #4142.
Activity
feat(postgres): make password authentication optional
feat(postgres): make password authentication optional
feat(postgres): make password authentication optional