Skip to content

Instantly share code, notes, and snippets.

Avatar

Steve Brunton nshttpd

  • Atlanta, GA
View GitHub Profile
@nshttpd
nshttpd / decrypt-secret.sh
Created August 1, 2017 12:57
gcloud decrypt
View decrypt-secret.sh
#!/bin/bash
set -e
GCP_PROJECT="${GCP_PROJECT:-default}"
KMS_KEYRING="${KMS_KEYRING:-default}"
KMS_LOCATION="${KMS_LOCATION:-default}"
KMS_KEY="${KMS_KEY:-default}"
hash gcloud 2>/dev/null || { echo >&2 "glcoud command required to decrypt secrets."; exit 1; }
@nshttpd
nshttpd / encrypt-secret.sh
Created August 1, 2017 12:54
gcloud encrypt
View encrypt-secret.sh
#!/bin/bash
set -e
GCP_PROJECT="${GCP_PROJECT:-default}"
KMS_KEYRING="${KMS_KEYRING:-default}"
KMS_LOCATION="${KMS_LOCATION:-default}"
KMS_KEY="${KMS_KEY:-default}"
hash gcloud 2>/dev/null || { echo >&2 "glcoud command required to encrypt secrets."; exit 1; }
@nshttpd
nshttpd / keybase.md
Last active September 22, 2017 02:18
View keybase.md

Keybase proof

I hereby claim:

  • I am nshttpd on github.
  • I am nshttpd (https://keybase.io/nshttpd) on keybase.
  • I have a public key whose fingerprint is E829 873D A58A EF7F 54B1 BDAF D23E 2035 ECFC 1568

To claim this, I am signing this object: