SOPS encrypts YAML, JSON, ENV, INI, and binary files while leaving keys and structure readable. It wraps values with AES-256-GCM using session keys controlled by PGP, age, or cloud KMS identities.
Overview
SOPS is built for teams that store configuration in version control but need field-level secrecy. It edits encrypted files in place, encrypting values and comments while keys remain visible so reviewers can understand layout without seeing sensitive data.
Supported formats include YAML, JSON, environment files, INI variants, and fully opaque binary payloads. Access rules tie decryption to configured identities, and you can require several identities together before a file unlocks.
Session keys can be protected with offline tools such as age or PGP, or online services including AWS KMS, Google Cloud KMS, Azure Key Vault, HuaweiCloud KMS, HashiCorp Vault, and OpenBAO. That mix supports cloud deployments and local disaster recovery when network identity providers are unavailable.
The tool originated at Mozilla and later joined the CNCF as a sandbox project under community maintainers. Documentation is published on getsops.io.
Security reporting follows a private advisory process. Encryption strength depends on the weakest chosen identity mechanism; age can be configured with hybrid post-quantum options according to project guidance.
Key features
- Encrypt values while keys stay plain
- YAML, JSON, ENV, INI, binary formats
- Multi-identity decryption policies
- Age and PGP offline keys
- AWS, GCP, Azure, Huawei KMS
- HashiCorp Vault and OpenBAO support
- AES-256-GCM value encryption
- In-repo configuration workflow
Use cases
- Storing secrets in Git safely
- Sharing config structure without exposing values
- Cloud KMS-backed team decryption
- Offline disaster recovery key access
- Requiring multiple approvers to decrypt