边车如何重新启动应用程序容器或其自己的吊舱?

发布于 2025-01-20 12:40:39 字数 362 浏览 3 评论 0原文

我想要一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

红ご颜醉 2025-01-27 12:40:39

如果您在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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文