GoogleCloudPlatform / GoogleCloudPlatform/cloud-sql-proxy

Reload service account keyfile periodically

Đang mở
#205 20 bình luận 4 reaction 1 người được giao Được giao cho @hessjcg Xem trên GitHub
priority: p2 type: feature request
Ngôn ngữ chính
Go
Star
1.4k
Fork
352
Merge trung bình
14 giờ 54 phút
Pull request đã merge (30 ngày)
5

Mô tả

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.
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.