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
Implements PostgreSQL MD5 password authentication as an alternative to
cleartext (both protected by TLS):
- New AuthMethod config field ("cleartext" default, "md5")
- writeAuthMD5Password sends 4-byte random salt to client
- verifyMD5Password validates md5(md5(password + username) + salt)
- DUCKGRES_AUTH_METHOD env var and auth_method YAML config support
- Cleartext remains default for backwards compatibility
The MD5 auth flow:
1. Server generates random salt, sends AuthenticationMD5Password
2. Client computes "md5" + md5(md5(password+username) + salt)
3. Server verifies the hash matches
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments