On DevOps — 31. A Comprehensive Guide to SOPS: Managing Your Secrets Like A Visionary, Not a Functionary
Published in
11 min readSep 21, 2022
1. Introduction to SOPS
1.1 What is SOPS?
First, let’s cut to the chase and get straight to the elephant in the room: what’s SOPS?
SOPS, short for Secrets OPeration S, is an open-source text file editor that encrypts/decrypts files automagically.
Emphasis on the text editor, encryption, and automation.
Typically, when you want to encrypt a text file, this is what you do:
- Use your favorite editor for writing, editing, and manipulating the text data, and save it as a file.
- Use an encryption/decryption tool to encrypt the whole file.
When you need to read the encrypted file:
- First, you need to decrypt the file with an encryption/decryption tool.
- Open the decrypted file (now it’s a regular text file) with a text editor of your choice.
The drawback of this “normal” process is obvious: you need two tools (an editor and an encryption/decryption tool) for one job.
Enter SOPS.