Gosec manages secrets using PGP. Given the following project layout it will decrypt/encrypt/grep through given secrets:
project1/files/logins.gpg
project2/files/cloud.gpg
For example, to grep for accountA
in project1
:
gosec -s project1 -g accountA
Usage of ./gosec:
-d=false: Decrypt
-e=false: Encrypt
-g="": Regex String
-s="": Directory
Root directory must be specified
GO15VENDOREXPERIMENT=1 godep get github.com/rphillips/gosec