talira

Simple and flexible tool for managing secrets

open sourceMPL-2.0self-hostablefree

SOPS (Secrets OPerationS) is an editor of encrypted files: it encrypts the values in YAML, JSON, ENV and INI files (and whole binary files) while leaving keys readable, so encrypted secrets can live in git and show meaningful diffs. Keys come from age, PGP, AWS KMS, GCP KMS, Azure Key Vault, HuaweiCloud KMS or HashiCorp Vault and OpenBao; key groups with Shamir's Secret Sharing can require several of them to decrypt. sops exec-env and exec-file pass decrypted secrets to a process without writing them to disk. It started at Mozilla in 2015 and became a CNCF Sandbox project in 2023.

Ways to install

Problems it solves

  • commit our secrets to git without anyone being able to read them
  • encrypt only the values in a YAML config so reviewers can still see which keys changed
  • decrypt a secrets file in CI with our cloud KMS key instead of sharing a password
  • give each environment its own encryption key for the same config files
  • require two of three teams' keys before a production secret can be decrypted
  • run a command with secrets in its environment without writing them to a file
  • see readable diffs of encrypted files in git
  • encrypt Kubernetes secret manifests so GitOps can apply them from the repo
  • rotate the data key on all our encrypted files after someone leaves

Features

  • encrypts values in YAML, JSON, ENV and INI files, and whole binary files
  • age, PGP, AWS KMS, GCP KMS, Azure Key Vault, HuaweiCloud KMS and HashiCorp Vault / OpenBao keys
  • creation rules in .sops.yaml
  • key groups with Shamir's Secret Sharing thresholds
  • exec-env and exec-file to pass secrets to a process
  • cleartext diffs in git with a textconv
  • publish decrypted or re-encrypted files to S3, GCS or Vault
  • extract or set one value in a document tree

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what SOPS does.

  1. dotenvx A secure dotenv, from the creator of dotenv
  2. git-crypt Transparent file encryption in git
  3. Sealed Secrets A Kubernetes controller and tool for one-way encrypted Secrets

Compare SOPS with the top 3