-
Notifications
You must be signed in to change notification settings - Fork 88
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 to Azure Mysql DB doesn't work #90
Comments
@loomsen hi, thanks for reporting the issue! |
@loomsen , I looked at the module's documentation looks like the @Jorge-Rodriguez what do you think? |
@Andersson007 Thank you for looking into this. I haven't tried the |
@Andersson007 you're right, the I'll get back to you @loomsen |
Hi @Jorge-Rodriguez @Andersson007, looking into the code made me somewhat figure out, that I think this issue could be closed technically, but I would really suggest updating the docs. WDYT? |
Hi everyone, |
@loomsen I'd welcome your suggestions for the parameter name. As someone who found |
Hi @Jorge-Rodriguez, The current docs for This is misleading in a way, that it kind of implies there would be another option to actually initiate the SSL connection. At least that's how I read it. When in fact this very option initiates the SSL connection in the first place. How about |
@loomsen it's a bit more complicated than that, because this is not the only option that initiates an SSL connection. You could have While I agree with you that the option name can be misleading, it seems to me renaming is not the best solution. Also Maybe a better solution would be to add an Alternatively, we could go further and have a Or we could go even further and nest both solutions with the @Andersson007 @bmalynovytch any thoughts on these? |
for me personally, everything that is really needed / nice to have and doesn't introduce breaking changes is ok;) |
I see. Maybe we could settle for an addition to the docs like: |
@loomsen , to add a clarification to documentation is always a good idea. Feel free to create a PR. |
Clarifying the documentation is of course there path of least resistance, I have no problem with that. |
OK, folks, if you work with it, you know how to formulate the update better, please do it. I'd be happy to review |
I'm reopening this issue as it is related to an obscure handling of TLS by the MySQLdb connector. |
SUMMARY
When trying to connect to an Azure Mysql Server instance, the SSL option doesn't work.
ISSUE TYPE
COMPONENT NAME
mysql_user
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Target:
Azure Database for MySQL server
Version: 5.7
Default settings have
Enforce SSL Connection
checked.STEPS TO REPRODUCE
Create a server on azure and try to connect with below playbook.
Connection works from CLI with:
mysql -h instance -u dba@instance -p --ssl
EXPECTED RESULTS
Create a database users with all database privileges on the specifiied database on an Azure Mysql Server.
ACTUAL RESULTS
TL;DR
unable to connect to database, check login_user and login_password are correct or /home/nvarz/.my.cnf has the credentials. Exception message: (9002, 'SSL connection is required. Please specify SSL options and retry.\x00')
The text was updated successfully, but these errors were encountered: