边车如何重新启动应用程序容器或其自己的吊舱?
我想要一个 sidecar 管理秘密轮换,这需要应用程序容器重新启动才能强制它获取更新的凭据。
Sidecar 如何强制同一 Pod 中的容器重新启动或整个 Pod 重新启动?
详细说明:
- 不同技术栈的服务都需要开始使用secret。密钥可以通过 CI/CD 注入,也可以在运行时从 AWS Secrets Manager 获取。
- 出于安全合规性原因,机密需要每 3 个月轮换一次。
- 秘密仅在启动时使用一次以创建相关客户端。由于它们不是连续使用的,因此如果在源存储上更新,它们不会自然刷新。
- 为了最大限度地减少每个服务的开发时间,应避免或最大限度地减少每个服务中用于刷新机密的自定义逻辑
I want to have a sidecar manage secret rotation, which requires the app container to restart in order to force it to pick up the updated credentials.
How can a sidecar force a container within the same pod to restart or the whole pod to restart?
Detailed explanation:
- Services of different tech stacks need to start using secrets. Secrets can either be injected via CI/CD or fetched at runtime from AWS Secrets Manager.
- Secrets need to be rotated every 3 months for security compliance reasons.
- Secrets are only used once at startup to create the related client. Since they are not used continuously, they are not naturally refreshed if updated at source storage.
- To minimise per-service development time, custom logic within each service to refresh the secrets should be avoided or minimised
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您在EKS或ECS中运行应用程序,则有以下模式可以旋转秘密而无需重新启动容器。
https:// docs。 aws.amazon.com/prescriptive-guidance/latest/patterns/rotate-credentials-without-prestarting-containers.html
There is a following pattern to rotate secrets without need to restart containers if you are running apps in EKS or ECS.
https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/rotate-credentials-without-restarting-containers.html