Skip to content

TLS/SSL feature requests #4

Open
@hoylen

Description

@hoylen

I'm using sqljocky5 with SSL connections to the database, and have some suggestions/feature requests:

  1. Reduce the logging level. In lib/src/auth/handshake_handler.dart line 135, it performs some logging with log.shout("SSL enabled"); which tends to fill the logs with unnecessary entries. It would be better if that was a fine, finer, or finest level log entry.

  2. Provide hooks for a client program to perform additional security checks. For example,

    a. Validating the server/database certificate (as well as the trust chain of CA certificates).
    b. Checking the domain name inside the certificate matches the expected database host.
    b. Performing other checks, such as if the certificate has expired.

  3. The ability to specify (or obtain) the version of SSL/TLS and ciphers used.

Activity

tejainece

tejainece commented on Feb 15, 2019

@tejainece
Contributor

@hoylen Can you submit a PR for 2 and 3?

hoylen

hoylen commented on Feb 15, 2019

@hoylen
Author

Unfortunately, sqljocky5 v2.2.0 no longer supports TLS/SSL. This is disappointing.

Line 168 of comm/comm.dart triggers an assertion if useSSL is true.

tejainece

tejainece commented on Feb 15, 2019

@tejainece
Contributor

I will implement it.

Did original sqljocky package support useSSL properly?

hoylen

hoylen commented on Feb 15, 2019

@hoylen
Author

Yes, sqljocky5 v1.0.0 used to work with useSSL set to true.

tejainece

tejainece commented on Feb 15, 2019

@tejainece
Contributor

Ok. I will fix this. PRs are also welcome.

hoylen

hoylen commented on Feb 15, 2019

@hoylen
Author

Sorry, I can't help with this. I don't understand the sqljocky5 code base well enough, and can't figure out the API documentation.

tejainece

tejainece commented on Feb 15, 2019

@tejainece
Contributor

Ok. No problem. Help with pointers to mysql protocols and code review will also be very helpful.

tejainece

tejainece commented on Feb 15, 2019

@tejainece
Contributor

I will also add more documentation to APIs and architecture.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      TLS/SSL feature requests · Issue #4 · dart-db/sqljocky5