Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB connection over TLS/SSL #266

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

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