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

Google cloud sql iam auth login isn't working with datagrip and google cloud code plugin #3166

Open
its-raj21 opened this issue Oct 25, 2023 · 3 comments
Labels
area/databases For requests / issues related to DBs

Comments

@its-raj21
Copy link

its-raj21 commented Oct 25, 2023

HI Team,

IDE: Datagrip
DB: mysql 8

I'm able to connect to google cloud sql using cloud iam auth with cloud proxy using the following command.

cloud-sql-proxy -i --private-ip

Then in datagrid datasource, just user username without password.

But I really didn't find any option to enable Automatic IAM Authentication with cloud code plugin.

When I tried to use my IAM id, I always get the following error.
SSL connection required for plugin "mysql_clear_password". Check if 'sslMode' is enabled.

I tried all possible solution from internet, I didn't help. As per my understanding automatic iam authentication isn't enabled with cloud code.

Please assist.

Regards,
Raj

@its-raj21 its-raj21 changed the title Google cloud iam sql login is not working with the IDE google cloud code plugin Google cloud sql iam auth login isn't working with the IDE google cloud code plugin Oct 25, 2023
@its-raj21 its-raj21 changed the title Google cloud sql iam auth login isn't working with the IDE google cloud code plugin Google cloud sql iam auth login isn't working with datagrid and google cloud code plugin Oct 25, 2023
@its-raj21 its-raj21 changed the title Google cloud sql iam auth login isn't working with datagrid and google cloud code plugin Google cloud sql iam auth login isn't working with datagrip and google cloud code plugin Oct 25, 2023
@ivanporty ivanporty added the area/databases For requests / issues related to DBs label Oct 25, 2023
@ivanporty
Copy link
Contributor

Thanks for the report @its-raj21! We do have an option to connect using Private IP

Screenshot 2023-10-25 at 11 54 49 AM

Does it help or you are always required to enter password when using Cloud Code connection?

@its-raj21
Copy link
Author

private ip is not the problem, we are able to connect using cloud sql proxy (Private IP) For IAM auth, with password or without password, we get the following error. SSL connection required for plugin "mysql_clear_password". Check if 'sslMode' is enabled.

steps to reproduce the the issue.

Create a user for sql instance with IAM auth (cloud identity) and try to login with that user. I believe Automatic IAM Authentication option is missing with cloud code.

Cli have the following flag. -i, --auto-iam-authn (*) Enables Automatic IAM Authentication for all instances

@ivanporty
Copy link
Contributor

Thanks @its-raj21! We will look into adding support for IAM auth in Cloud Code and let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/databases For requests / issues related to DBs
Projects
None yet
Development

No branches or pull requests

2 participants