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

MySQL SSL does not work #76136

Open
danthonywalker opened this issue Jan 9, 2025 · 1 comment
Open

MySQL SSL does not work #76136

danthonywalker opened this issue Jan 9, 2025 · 1 comment
Assignees
Labels
mysql tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@danthonywalker
Copy link

danthonywalker commented Jan 9, 2025

Name and Version

bitnami/mysql:9.0.1@sha256:48ce690effadbc5042c7f3edddeac50baf190d59a438b6a92ed714c3dea1ea19

What architecture are you using?

arm64

What steps will reproduce the bug?

Similar to #76032 , but using MYSQL_CLIENT_SSL_* environment variables instead and of course setting MYSQL_CLIENT_ENABLE_SSL to yes.

What is the expected behavior?

Clients are able to and/or required to use SSL.

What do you see instead?

SSL is simply not enabled. There are multiple ways to confirm this:
Despite all environment variables being set:

$ docker exec -it mysql /bin/sh
$ echo "${MYSQL_CLIENT_ENABLE_SSL}\n${MYSQL_CLIENT_SSL_CA_FILE}\n${MYSQL_CLIENT_SSL_CERT_FILE}\n${MYSQL_CLIENT_SSL_KEY_FILE}"
yes
/run/tls/ca.crt
/run/tls/leaf.crt
/run/tls/leaf.key

mysql --help reports SSL is not enabled:

ssl-ca                                                 (No default value)
ssl-capath                                             (No default value)
ssl-cert                                               (No default value)
ssl-cipher                                             (No default value)
ssl-key                                                (No default value)

phpMyAdmin similarly says SSL is not enabled.

Additional information

This issue is created to mirror #76032 to track that this issue also applies to MySQL, not just MariaDB. I have bitnami Redis and PostgreSQL set up with SSL without issue, so it's a bummer MySQL is not working properly.

@danthonywalker danthonywalker added the tech-issues The user has a technical issue about an application label Jan 9, 2025
@github-actions github-actions bot added the triage Triage is needed label Jan 9, 2025
@carrodher
Copy link
Member

Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.

Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mysql tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

3 participants