Skip to content

feat(connections): add SSL client certificate support for MySQL, MongoDB, Redis (#278) - #292

Merged
ZhuchkaTriplesix merged 3 commits into
devfrom
issue/278-ssl-certs-mysql-mongo-redis
Jul 10, 2026
Merged

feat(connections): add SSL client certificate support for MySQL, MongoDB, Redis (#278)#292
ZhuchkaTriplesix merged 3 commits into
devfrom
issue/278-ssl-certs-mysql-mongo-redis

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Add unified SSL certificate fields (Root CA, Client Cert, Client Key) to MySQL, MongoDB, and Redis connection forms, aligned with PostgreSQL (sslrootcert, sslcert, sslkey URI params).
  • MySQL: vendored mysql_client patch passes SecurityContext into SecureSocket.secure.
  • MongoDB: translate Querya SSL params to tlsCAFile / tlsCertificateKeyFile for mongo_dart at connect time.
  • Redis: support rediss:// and TLS via SecureSocket.connect + connectWithSocket.

Fixes #278.

Test plan

  • flutter test test/features/connections/ssl_certificate_support_test.dart test/core/database/mysql_connection_test.dart test/core/database/mongodb_connection_test.dart test/core/database/redis_connection_test.dart
  • Create MySQL/MongoDB/Redis connections with SSL certs and verify Test Connection against a TLS-enabled server
  • Confirm cert paths are persisted in connection URI (secure store)

…oDB, Redis (#278)

- Add shared SSL certificate URI helpers and form fields (sslrootcert/sslcert/sslkey).
- Extend MySQL, MongoDB, and Redis connection forms with cert file pickers and URI sync.
- Pass SecurityContext in MysqlConnection (vendored mysql_client patch), translate
  Querya SSL params for mongo_dart TLS, and use SecureSocket for Redis rediss://.
- Add unit tests for SSL helpers and driver URI parsing.
@github-actions github-actions Bot added enhancement New feature or request core Core library logic and services ui User interface components and widgets mysql MySQL database driver and workspace connections Database connections, URI parsing, pools labels Jul 10, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit eb7a57e into dev Jul 10, 2026
4 checks passed
@ZhuchkaTriplesix ZhuchkaTriplesix self-assigned this Jul 12, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/278-ssl-certs-mysql-mongo-redis branch July 26, 2026 14:39
ZhuchkaTriplesix added a commit that referenced this pull request Jul 27, 2026
…o-redis

feat(connections): add SSL client certificate support for MySQL, MongoDB, Redis (#278)
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 core Core library logic and services enhancement New feature or request mysql MySQL database driver and workspace ui User interface components and widgets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant