Request a Call Back

How to handle secrets securely in a public GitOps repository without leaking credentials?


The biggest hurdle for our GitOps adoption is secret management. Since Git is our "Source of Truth," we can't just commit plain-text API keys or DB passwords. We’ve looked at Sealed Secrets, but it feels a bit clunky for a fast-moving team. What are the modern best practices for integrating HashiCorp Vault or AWS Secrets Manager with a pull-based GitOps workflow in 2024? We need a way to keep secrets encrypted in Git but decrypted in the cluster.


   2024-05-05 in Software Development by Christopher Evans | 18916 Views


All answers to this question.


The industry is moving heavily toward the External Secrets Operator (ESO). Instead of trying to encrypt secrets inside Git (like Sealed Secrets or SOPS), ESO allows you to keep your secrets in a dedicated provider like HashiCorp Vault or AWS Secrets Manager. In your Git repo, you only store a "SecretStore" and an "ExternalSecret" manifest. The ESO controller running in your cluster then fetches the actual values from Vault and injects them as standard Kubernetes Secrets. This keeps your Git history clean of sensitive data and aligns perfectly with the "declarative everything" principle of GitOps.

   Answered 2024-05-08 by Patricia Wilson


Have you considered using Mozilla SOPS with a KMS key? It allows you to keep the files encrypted in Git but still readable by the GitOps controller.

   Answered 2024-05-10 by Robert Martinez

  • We tried SOPS, but managing the GPG keys across a large team became a nightmare. We really need a solution that integrates with our existing IAM roles in AWS so we don't have to manage another layer of identity. Does the External Secrets Operator you mentioned support IAM roles for service accounts (IRSA) to make the authentication process seamless?

       Commented 2024-05-12 by William Taylor


We just use the Vault Agent sidecar pattern. It’s not strictly "GitOps" in the sense that the secret isn't in Git, but it's very secure for dynamic secrets.

   Answered 2024-05-14 by We just use the Vaul

  • While the sidecar works, it adds a lot of overhead. I think Patricia’s suggestion of ESO is the most "GitOps-friendly" way to bridge the gap between Git and Vault.

       Commented 2024-05-15 by Christopher Evans



Write a Comment

Your email address will not be published. Required fields are marked (*)




Suggested Questions

Introduction to Project Management..
Posted 2026-07-07 by learnersera.
Balancing Link Metrics With Structural Entity Maps..
Posted 2025-05-12 by learnersera.
Balancing Link Metrics With Structural Entity Maps..
Posted 2025-05-12 by learnersera.
Impact of Entity Authority on Organic Competitive..
Posted 2025-01-04 by learnersera.
Backlinks vs Entity Authority for SEO Rankings..
Posted 2025-04-14 by learnersera.
How are modern agile organizations evaluating scrum..
Posted 2025-07-19 by learnersera.
Is a specialized technical degree required to..
Posted 2025-10-05 by learnersera.
How heavily do hiring managers weigh professional..
Posted 2025-09-12 by learnersera.

Disclaimer

  • "PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc.
  • "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA.
  • COBIT® is a trademark of ISACA® registered in the United States and other countries.
  • CBAP® and IIBA® are registered trademarks of International Institute of Business Analysis™.

We Accept

We Accept

Follow Us

 facebook icon
 twitter
linkedin

Instagram
twitter
Youtube

Quick Enquiry Form

WhatsApp Us  /      +1 (713)-287-1187