Why I Chose SOPS Over Vault for a Small Team

Vault is the right answer at scale. For four engineers and one product, it is a server nobody on the team wants to run — and running it badly is worse than not running it at all.

The decision came up the way these things always do. We had secrets scattered across a mix of untracked .env files, a shared password manager, and one alarming Slack thread. Someone said the word “Vault”, everyone nodded, and a ticket got written. I killed the ticket. We adopted SOPS with age instead, kept the secrets encrypted in the repository they already lived next to, and have not regretted it. This is the reasoning, including the part where I tell you exactly when it stops being the right call.

What you are actually signing up for with Vault

The Vault demo is wonderful. Dynamic database credentials that expire on their own, a clean HTTP API, encryption as a service, fine-grained policies. None of that is a lie. The lie is by omission, and the omission is the word operate.

Free · 4 minutes

Would you survive contact with a determined attacker — or an auditor?

Fourteen questions on access, patching, detection, and recovery — the basics that prevent most real incidents, and the ones most often assumed rather than verified. Banded finding on screen, full sheet by email.

A Vault you can depend on is a server. That server needs a storage backend, a high-availability pair so a single node reboot does not take your secrets offline, and an unseal story. Vault comes up sealed; something has to unseal it, which in practice means auto-unseal against a cloud KMS or a transit key on another Vault — so now you are operating the thing that operates the thing. It needs backups you have actually tested restoring, TLS certificates that rotate, an audit device shipping somewhere durable, and a patching cadence, because a secrets store running six months behind on releases is a governance finding waiting to be written up.

I have stood up a baseline Vault with KV v2 and it is not hard to get to “works”. It is hard to get to “I would let this hold the only copy of our production credentials and go on holiday”. For a team of four, the honest question is: who is the on-call for the secrets server at 2am, and what do they do when it will not unseal? If the answer is a shrug, you do not have a secrets store, you have a single point of failure with good marketing.

What SOPS with age actually is

SOPS — now maintained by the getsops community after Mozilla stepped back — encrypts the values in a structured file (YAML, JSON, ENV, INI) while leaving the keys in plaintext. So a committed secrets file still diffs sensibly in a pull request: you can see that DATABASE_URL changed without ever seeing what it changed to. The ciphertext sits in the repo alongside the code it configures.

age is the encryption underneath it. It is a small, modern tool built around X25519 keypairs. A public key is a short string beginning age1; the matching private key lives on each engineer’s machine and, ideally, is itself held in a password manager or hardware token. A .sops.yaml at the repo root maps file paths to the list of age recipients allowed to decrypt them. Adding a new engineer means adding their public key and re-encrypting; removing one means deleting their key and rotating. No server. No unseal. No 2am.

The whole moving-parts inventory is: a binary on each laptop, a config file in the repo, and a private key per person. That is the entire operational surface. There is nothing to patch that a routine dependency bump does not already cover, nothing to back up that git is not already backing up, and nothing to monitor.

The trade you are making — say it out loud

This is not a free lunch, and pretending it is gets teams into trouble. Here is precisely what you give up.

  • Dynamic secrets. SOPS stores static values. It cannot mint a short-lived database credential on demand and expire it, the way Vault’s dynamic secrets engine can. Your database password is long-lived until you rotate it, and rotation is a manual act.
  • Leasing and automatic revocation. There is no lease, no TTL, no central “revoke everything this token could reach”. Revocation means rotating the secret and re-encrypting.
  • Fine-grained, queryable audit. Your audit trail is the git history — who committed which encrypted change, when. That is genuinely useful and often enough, but it is not “who read this secret at 14:32”. SOPS does not record reads at all.
  • Central policy. Access is per-file via recipient lists, not a policy language. Coarse by design.

For a regulated firm this list matters, so read it against your actual obligations rather than a generic checklist. If a supervisor expects read-level audit on credential access, or you have a genuine need for short-lived database credentials, the calculus changes. For most small teams shipping one product, none of those four is a live requirement yet. Losing them costs nothing you were using.

The line where I would switch

I am not anti-Vault. I am anti-Vault-too-early. The decision flips when any one of these becomes true: you need credentials that expire without a human rotating them; you need to prove to an auditor who accessed a secret and when; you have enough engineers that per-file recipient lists become unmanageable; or you have machine identities — CI runners, services — that need to fetch secrets at runtime rather than at deploy time. Static, committed ciphertext is a poor fit for a fleet of ephemeral workloads asking for credentials on the fly.

The reassuring part is that SOPS is not a dead end. Vault is one of the key backends SOPS itself can use, so a later migration is a re-key, not a rewrite: the file format, the workflow, and the .sops.yaml discipline all survive. Choosing SOPS now does not tax you if you outgrow it — much like other deliberately boring tooling choices, the point is to defer the operational bill until you are actually large enough to pay it.

The right amount of secrets infrastructure for four engineers is the amount they will still maintain correctly on their worst week. For us, that was an encrypted file in a repo — not a server standing between the team and its own production.

Free interactive tool

Website compliance checklist

What your site has to do, based on what it actually does

Answer as much or as little as you like — the list builds as you go. Nothing is stored against your name and no email is required.

Most technology problems are not technology problems. They are control problems.

The systems exist. The investment has been made. The question is whether leadership can understand, direct, evidence, and sustain what those systems produce. Find out where control exists — and where it only appears to.