Encrypt
cloud_kms.encrypt
ActionGoogle Cloudconnection required
Calls Cloud KMS POST cryptoKeys/{key}:encrypt.
Encrypt text with a Cloud KMS symmetric key; emits base64 ciphertext.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Cloud KMS
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- project_id, location, key_ring
- Resolved by
- config.connection_id, else node.connection_id
Configuration
5 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
project_id GCP project id (overrides connection). | string | No | — | — | — |
location KMS location (overrides connection). | string | No | — | — | — |
key_ring Key ring id (overrides connection). | string | No | — | — | — |
key CryptoKey id. | string | Yes | — | — | — |
plaintext Text to encrypt. | string | Yes | — | — | — |
Input
Fallback source of the plaintext.
| Field | Type | Example |
|---|---|---|
plaintext Text to encrypt; read when the config leaves plaintext blank. | string | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
ok | boolean | — |
ciphertext | string | — |
key_name | string | — |
{
"ciphertext": "",
"key_name": "",
"ok": false
}See Encrypt run in a workflow.
In a technical demo we add the Google Cloud KMS connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.