-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Labels
Description
Work around
- Terraform apply
- Hit error
- Download connect auth proxy https://cloud.google.com/sql/docs/mysql/connect-auth-proxy
- Run it with correct SQL "Connection name". Eg.
./cloud-sql-proxy ccdc-red-team-infra:us-east4:tavern-db2 - Login with mysql
$ mysql --get-server-public-key -h 127.0.0.1 -u tavern -p
Enter password: Describe the bug
When deploying Realm with Terraform the container fails to start with error:
2024/10/25 15:58:08 fatal error: failed to initialize graph schema: mysql: querying mysql version Error 1045 (28000): Access denied for user 'tavern2'@'cloudsqlproxy~34.34.234.112' (using password: YES)
To Reproduce
Follow terraform setup.
Terraform apply.
Expected behavior
Realm should be able to authenticate to the sql database.
Additional context
Able to reproduce locally using the cloud sql auth proxy https://cloud.google.com/sql/docs/mysql/connect-auth-proxy
Testing a manually created user tavern2 and an automated user created tavern-auto


The manually created user is able to authenticate the automatically created one is not (even after updating TF to explicitly allow "%")
Reactions are currently unavailable


