Skip to content

Instantly share code, notes, and snippets.

@thoughtspeed7
Created March 28, 2018 11:58
Show Gist options
  • Save thoughtspeed7/19c7605ccbdf694e0d3fab8c887b8f9f to your computer and use it in GitHub Desktop.
Save thoughtspeed7/19c7605ccbdf694e0d3fab8c887b8f9f to your computer and use it in GitHub Desktop.
Using Container Builder with Cloud Key Management Service (KMS) on Google Cloud Platform
# om namah shivay
steps:
# decrypt root/secrets/cloud-datastore.json
- name: gcr.io/cloud-builders/gcloud
args:
- kms
- decrypt
- --location=global
- --keyring=dev-key-ring
- --key=dev-key-cloud-datastore
- --ciphertext-file=./secrets/cloud-datastore.json.enc
- --plaintext-file=./secrets/cloud-datastore.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment