Skip to content

A Go test utility for working with mozilla/sops in tests, backed by FiloSottile/age

License

Notifications You must be signed in to change notification settings

Silicon-Ally/testsops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

GoDoc CI Workflow

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.

How does it work?

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.

Contributing

Contribution guidelines can be found on our website.

About

A Go test utility for working with mozilla/sops in tests, backed by FiloSottile/age

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages