SOPS
$ sops Foundation High Risksops encrypts leaf values inside YAML, JSON, INI, and .env files while keeping keys readable in Git diffs. Agents can inspect sops filestatus safely without decrypting, and update individual encrypted keys via sops set without reading plaintext secrets into context.
brew install sops sops encrypts/decrypts GitOps files directly via local age keys or cloud KMS without introducing an MCP secret-exposure boundary.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports filestatus JSON, --output-type json, sops exec-env, and headless SOPS_AGE_KEY_FILE / KMS auth (avoid interactive sops editor mode).
- Non-interactive
--encrypt,filestatus, andexec-envsubcommands
Keeps encrypted files Git-safe and supports exec-env subprocess injection, though sops -d prints plaintext to stdout.
filestatusandexec-envavoid leaking plaintext;-dexposes secrets
Single static Go binary distributed via brew, go install, and GitHub releases.
- Cross-platform Go binary
Gold standard for GitOps encrypted YAML/JSON diffs where keys stay unencrypted for code review.
- Key-preserving partial file encryption across YAML/JSON/ENV
CNCF Sandbox project (getsops/sops) evolved from Mozilla SOPS.
- CNCF stewardship under MPL-2.0
Well-maintained official docs at getsops.io/docs/ covering .sops.yaml and age/KMS setups.
- Clear official documentation and
--help
Security, Auth & Guardrails
Delegates key custody to age (SOPS_AGE_KEY_FILE), gpg, AWS KMS, GCP KMS, Azure Key Vault, or HashiCorp Vault.
100% free OSS (MPL-2.0); cloud KMS key operations incur minor provider API charges if used.
# SOPS Agent Rules - NEVER run `sops -d` (`--decrypt`) to stdout in agent context—decrypted secrets will enter the LLM transcript. - Use `sops filestatus` to verify encryption and `sops exec-env` when running tests that need decrypted values.
Agent-Ready Command Recipes
Safe Read-Only Queries
sops filestatus secrets.enc.yaml
Reports whether the file is encrypted and lists key status in JSON without revealing secret values.
Controlled Writes & Previews
.sops.yaml rules sops --encrypt --in-place staging.enc.yaml
Encrypts leaf values according to .sops.yaml creation rules while leaving YAML keys readable.
Strengths for Agents
- + Preserves YAML/JSON key names in Git while encrypting values with
ageor cloud KMS. - +
sops filestatusverifies encryption in JSON without decrypting, andexec-envinjects into child processes.
Caveats & Pitfalls
- ! Running
sops file.yamlwithout flags launches$EDITORinteractively—always pass explicit subcommands/flags. - ! Running
sops -dprints decrypted secrets to stdout into agent history.