Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (16 loc) · 699 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 699 Bytes

Whisper

Runs an arbitrary command using secrets provided in a SOPS-encrypted file.

$ whisper -f <sops yaml file> [-p] <command>

Options:

  • -f (required) path to a SOPS YAML file
  • -p (optional) use the rest of the current environment
  • command (required) the command to provide the decrypted secrets to

SOPS file format just requires a top-level environment key:

environment:
    MY_PASSWORD: wowthisissecret
    MY_OTHER_KEY: license1234

NOTE: Absolutely none of this has been vetted so you probably shouldn't actually use it, I was just seeing if I could get it to work. This is literally the first thing I've written in Go.