Gatekeeper is an open source system for interacting with secrets in AWS Secrets Manager; providing basic mechanisms for creation, and rotation of secrets.
Download Gatekeeper - Linux, MacOS and Windows
Please download the proper package for your operating system and architecture. You can find the SHA256 checksums for Gatekeeper here and you can verify the checksums signature file which has been signed using AXOE's GPG key.
Gatekeeper is built on cobra and utilises a structure of commands, arguments & flags. It supports Fully POSIX-compliant flags (including short & long versions)
Gatekeeper uses the AWS_PROFILE environment variable
ls - List secrets in a specific region:
gatekeeper ls --region eu-west-2
get - Get the value of a secret:
gatekeeper get --secret nameofsecret --region eu-west-2
add - Add a new secret:
gatekeeper add --name nameofsecret --region eu-west-2 --description "exampledescription" --value "{\"username\":\"foo\",\"password\":\"bar\"}"
update - Update a secret:
gatekeeper update --secret nameofsecret --region eu-west-2 --value "{\"username\":\"foo\",\"password\":\"foobar\"}"
del - Delete a secret:
gatekeeper del --secret nameofsecret --region eu-west-2
This repository hosts all information about building Gatekeeper from source, how to contribute code and documentation.
If you want to build Gatekeeper right away there are two options:
$ go get -d github.com/axoe/gatekeeper
$ cd $GOPATH/src/github.com/axoe/gatekeeper
$ gatekeeper
$ git clone https://github.com/axoe/gatekeeper
$ cd gatekeeper
$ docker build -t gatekeeper .
By default the Docker image does not have an ENTRYPOINT set. Uncomment the last line on the Dockerfile to launch Gatekeeper when the container starts
$ docker run -it gatekeeper
Export AWS ACCESS KEYS:
Once you are inside the container you need to export your AWS ACCESS KEYS
/# export AWS_ACCESS_KEY_ID=AKIAXXXXXXXXXX
/# export AWS_SECRET_ACCESS_KEY=XxXxXxXXXX
/# gatekeeper ls --region eu-west-2