scrt
is a secret manager for the command-line. Use scrt
to encrypt and decrypt secrets from a variety of storage backends.
See the documentation for details on how to run scrt
.
docker run loderuner/scrt --help
scrt
can be configured in a container with the command-line argument, with environment variables or using a .scrt.yml
configuration file.
Run the docker image and pass the options as to the executable.
docker run loderunner/scrt --storage=s3 \
--location=s3://scrt-bucket/store.scrt \
--password=p4ssw0rd \
init
Use the environment variables to configure scrt
:
docker run --env SCRT_STORAGE=s3 \
--env SCRT_LOCATION=s3://scrt-bucket/store.scrt \
--env SCRT_PASSWORD=p4ssw0rd \
init
Create a .scrt.yml
configuration file on the host:
storage: s3
location: s3://scrt-bucker/store.scrt
password: p4ssw0rd
then mount the configuration file at the root of the container filesystem:
docker run -v .scrt.yml:/.scrt.yml loderunner/scrt init