Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
/ whisper Public archive
forked from dschaub/whisper

Inject secrets from a SOPS file into the environment of an arbitrary command

License

Notifications You must be signed in to change notification settings

WellSheet/whisper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Inject secrets from a SOPS file into the environment of an arbitrary command

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%