You should not provide password in yout dns string. See https://github.com/GoogleCloudPlatform/cloud-sql-go-connector/blob/main/README.md#automatic-iam-database-authentication
dsn := "[email protected] dbname=mydb sslmode=disable"