A CLI tool for common tasks relating to the Single Digital Presence hosting platform, Bay.
These commands simplify common cryptographic processes.
*Encrypt secrets to store in the project codebase.
cat /tmp/oauth.pem | bay kms encrypt \
--project content-foo-vic-gov-au \
--key production > /keys/production/oauth.pem.asc
This will store the encrypted file at keys/production/oauth.pem.asc
.
Decrypt secrets stored in the codebase with this tool
cat oauth.pen.asc | bay kms decrypt > oauth.pem
brew tap dpc-sdp/bay-cli
brew install bay-cli
Download the binaries for your OS / platform from the releases page - https://github.com/dpc-sdp/bay-cli/releases