Skip to content

ux(postgres): a server that wants SSL says so, with an Enable SSL and retry button (#1754) - #1806

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
fix/postgres-no-encryption-hint
Oct 25, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
devfrom
fix/postgres-no-encryption-hint

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1754.

  • mapDatabaseError: pg_hba.conf rejects connection ... no encryption becomes a TlsFailureException: The server only accepts encrypted connections (pg_hba.conf rejects connection for host ..., no encryption). Enable SSL in the connection settings and try again. The server's own line stays in the message; before, it read like a wrong password or a blocked IP.
  • PostgreSQL connection form: next to that Test result a Enable SSL and retry button (shown only while SSL is off) turns SSL on and runs the test again.
  • Tests: the mapped message and hint, the wrapped connect error, and a rejection that is not about missing encryption gets no hint.

Not done from the issue: the optional sslmode=prefer fallback (try plain, then TLS). The button is not covered by a widget test; it needs a click in the form to be sure it looks right. The earlier PR #1755 only added the connect logging and went to main. Not run locally, CI will.

@github-actions github-actions Bot added enhancement New feature or request connections Database connections, URI parsing, pools ux User experience, keyboard shortcuts and interactions P2 Medium priority / Parity & Refactoring labels Oct 25, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit a67dd8e into dev Oct 25, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

connections Database connections, URI parsing, pools enhancement New feature or request P2 Medium priority / Parity & Refactoring ux User experience, keyboard shortcuts and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant