Sign inSign up

opsline/chalk

By opsline

Updated almost 8 years ago

A simple tool for managing secrets via AWS Parameter Store

Image
0

341

opsline/chalk repository overview

chalk

A golang port of @rawr's excellent secrets.py

Install

$ go get github.com/opsline/chalk

Quickstart

$ export APPLICATION=swizzle ENVIRONMENT=staging

$ chalk
export SWIZZLE_REDIS_PORT=6379
export FOO=bar
export SWIZZLE_REDIS_HOST=recstpx0peer3kg.adpowo.ng.0001.use1.cache.amazonaws.com

# load vars using eval
$ eval $(chalk)
$ echo $SWIZZLE_REDIS_PORT
6379

# or alternatively using source
# (uses a temp file and cleans up after itself)
$ _ct=$(mktemp) ; rm -f $_ct ; chalk > $_ct && source $_ct ; rm -f $_ct ; unset _ct

$ chalk --json
{"FOO":"bar","SWIZZLE_REDIS_HOST":"recstpx0peer3kg.adpowo.ng.0001.use1.cache.amazonaws.com","SWIZZLE_REDIS_PORT":"6379"}

# Print debug messages (can be helpful to print these all the time)
$ eval $(chalk --debug)
CHALK_ENV=staging CHALK_APP=swizzle CHALK_VERSION="chalk v0.7.3 (built 2018-06-26T01:51:58+0000 from 3137f5d)"
LOADED KEYS: QUOTE_TEST SWIZZLE_BAZ FOO DOUBLE_QUOTE_TEST

Docker

The Dockerfile found in this repo builds an image against debian stretch, a common base image for many images found on docker hub. It can be built locally and then imported in a multi-stage build from another project.

make docker docker-push

Tag summary

Content type

Image

Digest

Size

47.2 MB

Last updated

almost 8 years ago

docker pull opsline/chalk