Skip to content

feat(connections): add SSL certificate file pickers to PostgreSQL form - #264

Merged
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/260-postgres-ssl-certificates
Jul 10, 2026
Merged

feat(connections): add SSL certificate file pickers to PostgreSQL form#264
ZhuchkaTriplesix merged 1 commit into
devfrom
issue/260-postgres-ssl-certificates

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #260

Summary

Add optional file pickers for PostgreSQL TLS client certificates and custom CA roots, removing the need for users to hand-craft URIs with sslrootcert=, sslcert=, and sslkey= parameters.

Changes

  • Added three file pickers (Root CA, Client Certificate, Client Key) to the PostgreSQL connection form, shown when Use SSL/TLS is enabled.
  • Selected paths are merged into the connection URI as query parameters.
  • If the user fills certificate paths while in host/port mode, a connection URI is automatically generated so the driver receives the certificate configuration.
  • Existing certificate parameters in a pasted URI are parsed back into the form fields.
  • Added widget tests for URI sync, auto-generated URI from host/port mode, and certificate path handling.

Test plan

  • flutter analyze
  • flutter test test/features/postgresql/postgresql_connection_form_test.dart
  • flutter test test/core/database/postgres_connection_test.dart
  • flutter test test/core/database/postgres_connection_pool_test.dart

#260)

Add optional file pickers for sslrootcert, sslcert, and sslkey. Paths are
stored in the connection URI (which is already persisted in the secure store),
and the URI is auto-generated when certificate paths are provided in host/port
mode. The certificate fields are also pre-populated from an existing URI.
@github-actions github-actions Bot added the enhancement New feature or request label Jul 10, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit fe07746 into dev Jul 10, 2026
4 checks passed
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Jul 12, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/260-postgres-ssl-certificates branch July 26, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant