Installing Mozilla SOPS Encryption Tool
source link: https://techno-tim.github.io/posts/install-mozilla-sops/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
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 turial on how use this? [Checkout 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.
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
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
sudo apt --fix-broken install ./sops.deb
Then we’ll clean up our download
rm -rf sops.deb
Then we can test to make sure sops
is working by running:
sops -version
Uninstall
To uninstall, it’s as simple as using apt to remove it
sudo apt remove sops
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK