GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-proxy

Reload service account keyfile periodically

未关闭
#205 20 条评论 4 个 reaction 已指派 1 人 已指派给 @hessjcg 在 GitHub 查看
priority: p2 type: feature request
主要语言
Go
星标
1.4k
派生
352
平均合并
14 小时 54 分钟
30 天内合并 PR
5

描述

Hi,

We run the CloudSQL proxy in our kubernetes cluster as a deployment and sometimes we rotate the secret that is used to provide the credentials file for IAM authentication.

As a result the credentials loaded at start-up of the proxy become invalid and the proxy begins printing invalid credentials errors, but does not error out. What's the recommended way to handle this situation? Is there a way to have the proxy reload the credentials?

My understanding is that mounted secrets are updated automatically, so it's up to the application [to respond accordingly](https://stackoverflow.com/questions/37945800/update-kubernetes-secrets-doesnt-update-running-container-env-vars):

```
Mounted Secrets are updated automatically When a secret being already consumed in a volume is updated, projected keys are eventually updated as well. The update time depends on the kubelet syncing period.
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。