gutmensch / docker-dmarc-report

211 stars 23 forks source link

Connect to MySQL using SSL #48

Open ghnp5 opened 5 months ago

ghnp5 commented 5 months ago

Hey!

Would it be possible to add SSL to the connection to MySQL?

As I'm using this container in a server that connects to MySQL in another server, I'd like to be able to REQUIRE SSL on that mysql user.

However, I couldn't find an option where I can turn on SSL in the mysql connection details in the env vars.

Thanks!

gutmensch commented 2 weeks ago

Hey @ghnp5 , thanks for the input! I am working on a golang rewrite and ssl/tls will be possible with standard gorm DSN options. I will update this issue accordingly, when the replacement can be used and take into account a toggle for enabling TLS on the database layer.