-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Connect to Azure MySQL PaaS from Docker Snipe-IT container using SSL #7870
Comments
MicrosoftDocs/azure-docs#24210 (comment) Update: I tried implementing the flag a la:
in the database driver Lines 90 to 95 in 0e0fe96
|
Update: Found a config that works...
Will put up a PR. |
sorry to drag this up. what's your minimum TLS version on azure mysql? I can't seem to get my instance to connect with
|
@benny-gold sorry didn't see your comment here. I'm actually revisiting this myself as I haven't touched it in quite some time and need to move some infrastructure around. Did you ever figure it out? |
Please confirm you have done the following before posting your bug report:
Describe the bug
Unable to connect to Azure MySQL PaaS database from Docker Snipe-IT container using SSL from the application. Can connect from mysql cli, however.
To Reproduce
Steps to reproduce the behavior:
Requires Azure MySQL PaaS database
Dockerfile
docker-compose.yml
.env
docker-compose up
from the base dir.Expected behavior
Able to connect to MySQL on Azure using SSL from snipe-it app container.
Server (please complete the following information):
Desktop (please complete the following information):
N/A Server side install issue
Smartphone (please complete the following information):
N/A Server side install issue
Error Messages
The log overflows my terminal (I'm assuming from all the database migrations trying to run) but grabbed the trace for a representative error. All the errors seem to be at PDOConnection.php:27 or PDOConnection.php:31
Additional context
Docker
snipe/snipe-it docker container (with one added layer to copy a certificate)
Docker
No
Add any other context about the problem here.
I am able to connect to the database from the docker container shell using:
mysql -h yourmysqlinstance.mysql.database.azure.com --ssl-mode=REQUIRED --ssl-ca=/usr/local/share/ca-certificates/BaltimoreCyberTrustRoot.crt.pem -u yourmysqluser@yourmysqlinstance -p
The text was updated successfully, but these errors were encountered: