You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 10, 2019. It is now read-only.
This plugin facilitates work with Google Key Management Service for such operations like *encrypting* and *decrypting*
4
+
5
+
# Usage
6
+
7
+
kms [OPERATION][VALUE_1][VALUE_n...]
8
+
9
+
Set the plugin required environment variables for the pipeline and use the plugin as a freestyle step with a command like:
10
+
11
+
```yaml
12
+
GoogleKMS:
13
+
image: codefresh/google-kms
14
+
commands:
15
+
- kms encrypt VALUE_1 VALUE_n
16
+
```
17
+
where VALUE_1 and VALUE_n are the **names** of the environment variables containing the values you need to encrypt or decrypt.
18
+
19
+
The operation is mutable and when the step finishes the variables with the same names will contain encrypted values. For decryption the process is similar
20
+
21
+
# Required environment variables
22
+
23
+
- `KMS_PROJECT` - GCP project name in which your KMS entities are present
24
+
- `KMS_LOCATION`- Google KMS location
25
+
- `KMS_KEYRING`- Google KMS keyring
26
+
- `KMS_KEY`- Google KMS key
27
+
- `GCP_SA_KEY`- [Google Service Account Key (JSON)](https://cloud.google.com/iam/docs/creating-managing-service-account-keys)
0 commit comments