This package was developed by Silicon Ally while working on a project for Adventure Scientists. Many thanks to Adventure Scientists for supporting our open source mission!
testsops
is a simple package for testing libraries that use Mozilla's
sops tool for encryption. Specifically, this
package can be used for testing libraries that make use of sops' decrypt
package. See
testsops_test.go for an example.
In normal usage, a sops-encrypted file uses a key stored in a cloud KMS system,
but that's impractical for local testing. However, sops
also supports GPG +
age, the latter of which we use in
testsops
. When a file is requested a be encrypted, a new age
identity is
created and used to encrypt the file. To decrypt, the client points sops
at
the age
key.txt
file via the SOPS_AGE_KEY_FILE
env var.
Contribution guidelines can be found on our website.