Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
3

Run a KMS command google-kms

Run a command with Google Key Management Service, usually to encrypt or decrypt a value.

arguments

  • GCP_SA_KEY - Google Service Account Key (JSON)
  • KMS_KEY - Google KMS key
  • KMS_KEYRING - Google KMS keyring
  • KMS_LOCATION - Google KMS location
  • KMS_PROJECT - GCP project name in which your KMS entities are present
  • VALUE - value to encrypt
    run:
  type: google-kms
  arguments:
    KMS_PROJECT: '${{KMS_PROJECT}}'
    KMS_LOCATION: '${{KMS_LOCATION}}'
    KMS_KEYRING: '${{KMS_KEYRING}}'
    KMS_KEY: '${{KMS_KEY}}'
    GCP_SA_KEY: '${{GCP_SA_KEY}}'
    VALUE: '${{VALUE}}'

  
github.com
Will Malone
Jul 4, 2021