FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(mysql): ssl-mode=prefer must not disable TLS; verify_* must verify the CA · Issue #805 · QueryaHub/Querya-Desktop · GitHub

fix(mysql): ssl-mode=prefer must not disable TLS; verify_* must verify the CA #805

Description

Summary

MysqlConnection._parseMysqlUri maps ssl-mode=prefer (and false/disable) to secure: false. prefer is a common URI default and must not turn TLS off. require / verify_ca / verify_identity only set secure: true; the driver encrypts without verifying unless sslrootcert builds a SecurityContext.

Form default useSSL = true is encrypt-only (secure:), same class as Postgres #790.

Scope

  • Treat prefer as TLS on (or try TLS then fall back — if fallback, say so in the UI). Do not map it to disable.
  • When verify_ca / verify_identity (or form equivalent) is set, require a CA and fail closed without it.
  • Tests in mysql_connection_test for prefer, require, verify_identity.

Out of scope

  • Rewriting the vendored mysql_client handshake beyond securityContext.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconnectionsDatabase connections, URI parsing, poolsmysqlMySQL database driver and workspace

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL