Skip to content

Conversation

buxm
Copy link

@buxm buxm commented Mar 6, 2024

Add support for connecting to MySQL DB over TLS/SSL, as a solution to #199.
New variables added to support this option:

  • DB_SSL
  • MYSQL_ATTR_SSL_CA

Descriptions of the new variables added in the README file.

Ended up implementing much simpler option than anticipated in #199, since the PHP app would either connect to the DB without TLS or with TLS and certificate verification.
So the only options are to either turn on or off the connection over TLS and potentially to provide a custom CA certificate. MySQL server's certificate verification is always on when connection over TLS is on.

@buxm buxm requested a review from crazy-max as a code owner March 6, 2024 22:03
@luckydonald
Copy link
Contributor

From the first glance this looks good.

Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs rebase following this change https://github.com/anonaddy/docker/pull/310/files#diff-6612a04c84d4ff0900226884a0ff714b8913ce20a3afa05d03f31ddd9903180f

Would be better to have this configurable through my.cnf.d conf to have this propagated to the client directly without flags.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants