1

Google's Cloud SQL Proxy uses service accounts to login. That's nice, but does not give you visibility as to who is the actual user that accessing the DB, for security purposes.

How can I use "regular" users credentials with Cloud SQL proxy? Obviously a login step would be required...

Thanks!

4

1 回答 1

1

根据README,您有几个选择,具体取决于您的情况:

  • 您可以自己获取 EndUser 的身份验证令牌(请参见此处)并使用token命令提供它。
  • 如果您安装了 gcloud,则可以使用该gcloud auth login命令,代理将自动使用凭据。

希望这可以帮助。

于 2019-02-24T20:58:45.117 回答