Post

Installing Mozilla SOPS Encryption Tool

What is Mozilla SOPS?

SOPS is an editor of encrypted files that supports YAML, JSON, ENV, INI and BINARY formats and encrypts with AWS KMS, GCP KMS, Azure Key Vault, age, and PGP.It’s open source and you can read more about it on the GitHub repo.Looking for a tutorial on how use this? Check out this video on how to use SOPS and Age for your Git Repos!

Install

We want to get the latest release of SOPS so we need to look at their github repo for the latest version.

1
SOPS_LATEST_VERSION=$(curl -s "https://api.github.com/repos/mozilla/sops/releases/latest" | grep -Po '"tag_name": "v\K[0-9.]+')

Then we’ll use curl to download the latest .deb

1
2
curl -Lo sops.deb "https://github.com/mozilla/sops/releases/latest/download/sops_${SOPS_LATEST_VERSION}_amd64.deb"

Then we’ll want to install sops.deb along with any missing dependencies

1
sudo apt --fix-broken install ./sops.deb

Then we’ll clean up our download

1
rm -rf sops.deb

Then we can test to make sure sops is working by running:

1
sops -version

Uninstall

To uninstall, it’s as simple as using apt to remove it

1
sudo apt remove sops

⚙️ See all the hardware I recommend at https://l.technotim.live/gear

🚀 Don’t forget to check out the 🚀Launchpad repo with all of the quick start source files

This post is licensed under CC BY 4.0 by the author.