feat(tools): Introduce pass-compatible wrapper using Cloud KMS

Adds a shell script that supports a subset of the 'pass' interface for
compatibility with kontemplate, and wraps kontemplate in a script that
places this version on the PATH.

This makes it possible to use Cloud KMS encrypted secrets with kontemplate.
This commit is contained in:
Vincent Ambo 2019-09-03 15:56:31 +01:00
parent abd5d7538c
commit bcd7710be5
5 changed files with 78 additions and 0 deletions

View file

@ -22,6 +22,9 @@ case "${TARGET_TOOL}" in
stern)
attr="stern"
;;
pass)
attr="tazjin.kms_pass"
;;
*)
echo "The tool '${TARGET_TOOL}' is currently not installed in this repository."
exit 1