A small CLI for project secrets
Keep your
secrets in git.
Encrypted, obviously.
Sudsy keeps encrypted .env files next to your code. Share them with your team, run your app, and skip the custom SOPS scripts.
DATABASE_URL=ENC[AES256_GCM,data:…] API_KEY=ENC[AES256_GCM,data:…] SESSION_SECRET=ENC[AES256_GCM,data:…] # Names stay readable. Values don't.
Git stores encrypted values, your private key lets you read them.
SOPS is great.
The setup isn't.
Stop writing the same scripts for every project to create keys, edit secrets, share access, and run commands. Sudsy puts those bits in one small CLI.
Commit encrypted secrets.
The files live versioned with your code. Only the values are encrypted, so diffs still make sense.
Give each person their own key.
Grant access to individual environments and remove it when needed. No passing around plaintext files.
Run your app normally.
Sudsy decrypts the right environment for a command. You don't need to manually export variables.
Four steps. That's it.
Create or reuse an age key.
sudsy initEdit an encrypted vault for dev.
sudsy edit devYour vault and access rules live in git.
git add .sops.yaml dev.enc.env
git commit -m "Add encrypted secrets"Sudsy gives the command the right environment.
sudsy run dev -- npm startAdd your public key to the project with sudsy init, then commit and push .sops.yaml.
sudsy initPull the change, verify the new key with its owner, and re-encrypt the vaults. Then commit and push the updated files.
git pull && sudsy syncsudsy sync shows who will gain access and asks for confirmation before re-encrypting.
Get Sudsy.
One small CLI, three ways to install it. Sudsy runs on macOS and Linux.
Full installation guide ↗Latest stable release
curl -fsSL https://sudsy.monotropiclabs.com/install.sh | bashInstall SOPS and age first. The installer verifies the release checksum and puts Sudsy in ~/.local/bin.
Homebrew takes care of the dependencies
brew tap monotropiclabs/sudsy https://github.com/monotropiclabs/sudsy.git
brew install monotropiclabs/sudsy/sudsyInstalls SOPS and age too. Update with brew update and brew upgrade monotropiclabs/sudsy/sudsy.
Install SOPS and age (macOS / Linuxbrew)
brew install sops ageAdd Sudsy to your project
npm install --save-dev @monotropiclabs/sudsyUse npx --no sudsy in your shell, or run Sudsy in an npm script. See the README for other dependency and global installation options.