A CLI over age(1) — MIT
Commit your team's .env to git — encrypted.
Small teams don't need a secrets manager. They need one file, versioned with the code, readable by exactly the right people. That's the whole tool.
Go 1.25+ Linux · macOS · Windows ~7k lines of Go
See it work
Seventy seconds, one real terminal.
Alice shares the team's .env. Bob clones the repo and has working config in one command. Mallory isn't on the team, adds herself to the access list anyway, and CI fails her pull request. Every line is output from the actual binary. The final check, check --base, is on main and ships in the next release.
The mental model
Three questions decide everything the tool does.
If you know the answers, you can predict exactly what any command will do — and, more importantly, what it will refuse to do.
Anatomy
What actually lives in your repo.
Nothing hidden, nothing surprising. A directory of TOML files, an .age blob per environment, and a detached signature. Everything a reviewer needs to look at is a plaintext file already tracked in git.
The one file that never ships is the plaintext. init adds it to .gitignore for you.
- .envguardian/
- ├─ config.tomlgit
- ├─ recipients.tomlgit
- ├─ lock.tomlgit
- ├─ rotation.tomlgit
- └─ auto-decrypt-state.tomllocal only
- .env.agegit
- .env.age.siggit
- .envgitignored
A day in the life
What using it actually looks like.
From cloning the repo to shipping a new secret, this is the entire flow — no additional CLI to learn, no dashboards to log into.
# You edit .env locally, then re-encrypt. Idempotent — no diff if nothing changed. $ envguardian encrypt encrypted .env → .env.age $ git add .env.age .env.age.sig .envguardian/lock.toml $ git commit -m "feat(config): add API_RATE_LIMIT"
# A teammate pulls. The ciphertext changed, so nothing is written until they review it. $ git pull $ envguardian decrypt envguardian: decryption blocked for commit 9f319ce0eea7: - ciphertext .env.age changed keys: + API_RATE_LIMIT - ciphertext signature .env.age.sig changed review the commit, then run `envguardian decrypt --accept-changes` to allow these managed changes $ envguardian decrypt --accept-changes decrypted .env.age → .env accepted managed changes at commit 9f319ce0eea7
Scope discipline
What EnvGuardian isn't.
Deliberately narrow. The whole reason a small tool can be careful and finishable is that it says no to the things it isn't. If you need any of the below, reach for the right side.
Not this
- A runtime secrets manager
- Production secret injection
- A server or SaaS
- Storage for large or binary secrets
- Compliance and audit tooling
Use instead
- HashiCorp Vault, AWS Secrets Manager
- Your cloud provider's parameter store
- There is no server. That's the point.
- Object storage with its own encryption
- IAM with audit logs
Early users wanted
I'm looking for the first teams to try it.
If your team passes .env files around in chat, I'd be grateful if you tried EnvGuardian on a side project or with test values. I'm happy to help you set it up, and any feedback, good or bad, helps a lot.
Where the work stands
An honest release status.
v0.1.0 was a development tag with known critical findings. v0.2.3 is the latest release candidate — the implementation work is done; the launch verification is not. Newer security fixes are on main and ship in the next release. This isn't marketing copy.
→ supported versions in SECURITY.md
Path containment, transactional sealing, fail-closed verification, detached SSH signatures, secret-safe diagnostics, atomic writes.
Revocation + rotation ledger, semantic merge driver, multi-file support, ADRs 0001–0009.
Coverage gates (80% overall, 85% on crypt / keys / config / dotenv). Every action pin verified.
Branch protection on main: pull requests, required CI checks, no force-push or deletion.
Load-bearing for the trust story — set on the GitHub side, not in code.
On main, not yet released: check --base for pull requests, ssh-agent signing, doctor, and SBOMs with build-provenance attestations.
Published-binary verification on each supported OS, then the pre-release banner comes off.
Install today: brew install --cask yehiagewily/tap/envguardian (macOS/Linux) or go install …@latest.