Closed OuesFa closed 3 years ago
The error message "The client is not authorized to make this request" seems to indicate that the service account serviceAccount:my-project.svc.id.goog[sre/demo-app]
does not have IAM access when invoking the instances.get
method.
This documentation section on IAM authentication might help: https://cloud.google.com/sql/docs/postgres/authentication#user_and_service_account_administration
The permission name is cloudsql.instances.get
; the best role for this usecase is likely roles/cloudsql.client
: https://cloud.google.com/iam/docs/understanding-roles#cloud-sql-roles
Closing. @OuesFa feel free to reopen if you are still not able to resolve this issue.
Hello!
Following this guide, I'm trying to setup a simple test application to use a cloudsql postgresql instance using
spring-cloud-gcp-starter-sql-postgresql
When I start the app I get this errorOn CloudSql side I can see error logs of this kind
Here is my properties file
Here is a sample of my build.gradle file
I tested my user/password and everything works well on the postgresql instance.
But seems that my credentials are not taken into account in my app. What am I missing here please ? Thanks for your help