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

[bitnami/mysql] Support replication with TLS #32188

Open
gretro opened this issue Feb 27, 2025 · 1 comment
Open

[bitnami/mysql] Support replication with TLS #32188

gretro opened this issue Feb 27, 2025 · 1 comment
Assignees
Labels

Comments

@gretro
Copy link

gretro commented Feb 27, 2025

Name and Version

bitnami/mysql 12.3.0

What is the problem this feature will solve?

Currently, I'm in the process of setting up a hardened MySQL database (mTLS) with replication.

I understand the TLS options are quite new to the chart, but they seem to clash a bit with the replication feature.

It would be nice if:

  • The replicas stopped using the root user to ping the primary node, and instead used the replication user, which has less permissions.
    • This would allow users to limit the root user to be limited to localhost connections.
  • The replicas used secured transport to the primary node when either checking for readiness and when setting up the replica.

I think making some minor modifications would make the bitnami MySQL chart more secure and more convivial for security-minded users.

What is the feature you are proposing to solve the problem?

I'm proposing modifications be made to the chart and the scripts to harmonize the TLS settings with replication.

The primary node works fine with the previously mentioned modifications, but the replicas are unable to boot. The setup script has a couple of behaviours that should be adjusted:

Additionally, there are a couple of strange behaviours with the tls configuration in the current version of the chart.

  • Setting tls.existingSecret=<whatever my secret> and tls.autoGenerated.enabled=false does not prevent the generation of an unused Helm TLS certificate (<release-name>-crt)
  • Setting the tls.autoGenerated.engine='cert-manager' does not inject the CA config, preventing self-signed certificates from working. It would be nice if this could be controlled via a manual setting, rather than depend on the engine be set to helm.

I may have missed some areas that would require changes.

What alternatives have you considered?

I am considering deploying two standalone instances and triggering the replication myself. However, since the chart offers both TLS and replication, it would be nice if those two features were harmonized better.

Is there an appetite for making the changes I described above? I could give it a shot, but I would rather ask if this is something that is likely to be merged at the end.

@github-actions github-actions bot added the triage Triage is needed label Feb 27, 2025
@javsalgar javsalgar changed the title Support replication with TLS [bitnami/mysql] Support replication with TLS Feb 27, 2025
@javsalgar
Copy link
Contributor

Hi!

Thank you so much for the proposal! We are open to contributions, so we would definitely appreciate a contribution and would help with any suggestions so it's merged at the end :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants