---
title: "Comment by Damiano Bianda on \"Secrets Management for Small Teams: From .env Files to a Real Vault\" | Hashnode"
description: "The staged ladder is the right shape for this advice, especially putting SOPS + age before any managed store: it fixes the \"secrets in git history\" problem with"
url: "https://hashnode.com/posts/secrets-management-for-small-teams-from-env-files-to-a-real-vault-opa0r/6ae6d04eab8d34e93e0a51f0/comment/6ae710f60bafa3e3243de242"
---

[Discussion](https://hashnode.com/posts/secrets-management-for-small-teams-from-env-files-to-a-real-vault-opa0r/6ae6d04eab8d34e93e0a51f0)

Comment [Secrets Management for Small Teams: From .env Files to a Real Vault](https://hashnode.com/posts/secrets-management-for-small-teams-from-env-files-to-a-real-vault-opa0r/6ae6d04eab8d34e93e0a51f0)

[Damiano Bianda](https://hashnode.com/@damianobianda)

[Nov 1](https://hashnode.com/posts/secrets-management-for-small-teams-from-env-files-to-a-real-vault-opa0r/6ae6d04eab8d34e93e0a51f0/comment/6ae710f60bafa3e3243de242)

The staged ladder is the right shape for this advice, especially putting SOPS + age before any managed store: it fixes the "secrets in git history" problem without adding a service to run. Two things I would add to the hygiene stage: the departing-teammate problem is usually worse than the laptop-count problem, so rotate on offboarding even before you have a vault, and add a pre-commit scan (gitleaks or similar) the same week, because the first real secret that lands in a public repo gets found by bots in minutes, not days. The CI/CD section is the one most small teams skip and should not.

[ZyVOP](https://hashnode.com/@zyvop)

[Nov 1](https://hashnode.com/posts/secrets-management-for-small-teams-from-env-files-to-a-real-vault-opa0r/6ae6d04eab8d34e93e0a51f0/comment/6ae710f60bafa3e3243de242#reply-6ae71365bec22d2e37af943c)

Great points! I especially agree about rotating secrets during offboarding. You shouldn’t have to wait until you introduce a vault to establish that habit. Adding a pre-commit scanner like Gitleaks is also a practical, low-effort step that can prevent a costly mistake. And you're right about CI/CD — secrets management needs to cover the entire deployment pipeline, not just local development.

Out of curiosity, do you recommend running Gitleaks only as a pre-commit hook, or would you also run it in CI to catch anything that slips through?
