How to manage environment variable-based secrets in Kubernetes using HashiCorp Vault (without Kubernetes Secrets) - Stack Overfl

I am trying to use HashiCorp Vault for secret management in kubernetes environment and want to fetch se

I am trying to use HashiCorp Vault for secret management in kubernetes environment and want to fetch secrets directly from Vault without relying on Kubernetes Secrets.

So far, I have explored two approaches:

Vault Sidecar Injector: Fetches the secret and stores it in a plain text file. The application must manually load the secret into an environment variable.

Vault CSI Driver: Periodically updates the secret but also writes it to a file, rather than directly injecting it into an environment variable.

My goal is to:

Inject secrets as environment variables without storing them in plaintext files.

Ensure secrets are automatically updated when they change in Vault.

Is there a recommended approach or best practice to achieve this?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744209905a4563284.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信