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

SSL connection with Azure MySQL database #230

Open
ghost opened this issue Apr 6, 2022 · 1 comment
Open

SSL connection with Azure MySQL database #230

ghost opened this issue Apr 6, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 6, 2022

Hello!

I wanted to ask if there is a way to connect to Azure MySQL with SSL as a backend? In my case my SQLALCHEMY_DATABASE_URI would have to be like mysql://user@server:pass1234@server.mysql.database.azure.com:3306/superset?ssl_ca=BaltimoreCyberTrustRoot.crt.pem.
I'm a bit of a beginner to Docker, so I don't know how I could pass that cert. Is there way to do that through superset_config.py or by extending Dockerfile and downloading it to some directory (and which directory it would be)?

Any help or tips are deeply appreciated. Thanks!

@kensixx
Copy link

kensixx commented Jun 5, 2022

Maybe you could use volumes to mount the crt.pem file to the Docker container of this Superset image,

Then use something like this in the SQLALCHEMY_DATABASE_URI field in superset_config.py

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

No branches or pull requests

1 participant