Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

SOPS

$ sops Foundation High Risk
CNCF / Mozilla SOPS · Security & Secrets · MPL-2.0 · macos / linux / windows

sops 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.

FCRS-1.0 Score
87 /100
Good
Medium Confidence
Zero-Friction Install
brew install sops
CLI vs MCP Decision CLI Preferred vs MCP

sops encrypts/decrypts GitOps files directly via local age keys or cloud KMS without introducing an MCP secret-exposure boundary.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

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, and exec-env subcommands
Trust & Safety 19 / 25

Keeps encrypted files Git-safe and supports exec-env subprocess injection, though sops -d prints plaintext to stdout.

  • filestatus and exec-env avoid leaking plaintext; -d exposes secrets
Setup & Portability 14 / 15

Single static Go binary distributed via brew, go install, and GitHub releases.

  • Cross-platform Go binary
Utility & Efficiency 14 / 15

Gold standard for GitOps encrypted YAML/JSON diffs where keys stay unencrypted for code review.

  • Key-preserving partial file encryption across YAML/JSON/ENV
Maintenance & Lineage 10 / 10

CNCF Sandbox project (getsops/sops) evolved from Mozilla SOPS.

  • CNCF stewardship under MPL-2.0
Docs & Verifiability 9 / 10

Well-maintained official docs at getsops.io/docs/ covering .sops.yaml and age/KMS setups.

  • Clear official documentation and --help

Security, Auth & Guardrails

Auth Modes
Env API Key Config File Service Account
Credential Storage

Delegates key custody to age (SOPS_AGE_KEY_FILE), gpg, AWS KMS, GCP KMS, Azure Key Vault, or HashiCorp Vault.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free OSS (MPL-2.0); cloud KMS key operations incur minor provider API charges if used.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Check SOPS file encryption status without decrypting
sops filestatus secrets.enc.yaml

Reports whether the file is encrypted and lists key status in JSON without revealing secret values.

Controlled Writes & Previews

Encrypt a prepared staging file in-place using .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 age or cloud KMS.
  • + sops filestatus verifies encryption in JSON without decrypting, and exec-env injects into child processes.

Caveats & Pitfalls

  • ! Running sops file.yaml without flags launches $EDITOR interactively—always pass explicit subcommands/flags.
  • ! Running sops -d prints decrypted secrets to stdout into agent history.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI