Skip to content

Add cleartext password authentication#181

Merged
SeanTAllen merged 1 commit intomainfrom
add-cleartext-password-auth
Mar 23, 2026
Merged

Add cleartext password authentication#181
SeanTAllen merged 1 commit intomainfrom
add-cleartext-password-auth

Conversation

@SeanTAllen
Copy link
Copy Markdown
Member

Summary

  • Add support for PostgreSQL cleartext password authentication (auth type 3)
  • Previously, servers requesting cleartext auth would get pg_session_authentication_failed with UnsupportedAuthenticationMethod — now the driver sends the password and completes authentication normally
  • No public API changes: the driver detects the server's requested method automatically using the existing DatabaseConnectInfo password

Test plan

  • New parser unit test: ResponseParser/AuthenticationCleartextPasswordMessage
  • New parser chain test: ResponseParser/MultipleMessages/CleartextFirst
  • New mock server auth success test: Cleartext/AuthenticationSuccess
  • New mock server auth failure test: Cleartext/AuthenticationFailure
  • Updated PBT generator to include cleartext auth messages
  • Updated existing tests that used type 3 as "unsupported" to use type 2 (KerberosV5)
  • Counterfactual checks on all 4 new tests
  • Full unit test suite passes (417 tests)

@SeanTAllen SeanTAllen added the changelog - added Automatically add "Added" CHANGELOG entry on merge label Mar 23, 2026
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Mar 23, 2026
@SeanTAllen SeanTAllen force-pushed the add-cleartext-password-auth branch from 0780a60 to 0c56983 Compare March 23, 2026 02:35
@SeanTAllen SeanTAllen merged commit c4dad07 into main Mar 23, 2026
8 checks passed
@SeanTAllen SeanTAllen deleted the add-cleartext-password-auth branch March 23, 2026 02:49
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Mar 23, 2026
github-actions bot pushed a commit that referenced this pull request Mar 23, 2026
github-actions bot pushed a commit that referenced this pull request Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog - added Automatically add "Added" CHANGELOG entry on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants