Reference
Google Cloud Run
Sync secrets into a Cloud Run service's environment variables.
Sync secrets into a Cloud Run service's environment variables.
Connection
| What | This provider |
|---|---|
| Vendor | Google Cloud |
| Key | gcp-cloud-run-env |
| Availability | available. You can connect it today. |
| Credential we hold | gcp-service-account |
| Values read back | yes |
| Activation | on-next-deploy |
Directions
| Direction | What it does |
|---|---|
import | We read names and values out of the store into your environment. |
export | We write names and values from your environment into the store. |
Activation
on-next-deploy. A new value waits there and arrives with your next deploy.
Conflict policies
| Direction | Policies you can pick |
|---|---|
import | skip_existing, new_version, fail |
export | create_only, overwrite, overwrite_and_prune |
How syncs work says what each one does.
Connect
Paste a credential from the vendor. We seal it and never show it again.
| Field | Label | Kind | Required | What it is |
|---|---|---|---|---|
serviceAccountKey | Service account key | secret; we mask it here and seal it | yes | The JSON key file for a service account that can update this service. |
Connection fields
You set these when you connect. Every mapping on the connection shares them.
| Field | Label | Kind | Required | Advanced | What it is |
|---|---|---|---|---|---|
projectId | Project | text | yes | no | The project holding the service. One connection covers one project. |
region | Region | text | yes | no | The region this connection reaches. One connection covers one region. |
Mapping fields
You answer these once per environment you map.
| Field | Label | Kind | Required | Advanced | What it is |
|---|---|---|---|---|---|
serviceName | Service | text | yes | no | The Cloud Run service whose variables this environment maps onto. Import needs literal values; a Secret Manager reference cannot be read back. |
Required permissions
We probe for these when we verify the connection.
| Permission | Directions | Blocking | Without it |
|---|---|---|---|
run.services.get | every direction | yes | Preview cannot list the service's variables. |
run.services.list | every direction | no | We cannot confirm the key reaches this project and region before a sync runs. |
run.services.update | export | yes | Export cannot write anything. |
run.operations.get | export | no | We cannot confirm the new revision went live. |