On September 15, 2026, all Cloud Composer 1 versions and versions 2.0.x of Cloud Composer 2 will reach their planned end of life. You will not be able to use environments with these versions. We recommend planning migration to Cloud Composer 3. Cloud Composer 2 versions 2.1.x and later are still supported and are not impacted by this change.
User workloads Secret used by Airflow tasks that run with Kubernetes executor or KubernetesPodOperator.
JSON representation
{"name": string,"data": {string: string,...}}
Fields
name
string
Identifier. The resource name of the Secret, in the form: "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}"
data
map (key: string, value: string)
Optional. The "data" field of Kubernetes Secret, organized in key-value pairs, which can contain sensitive values such as a password, a token, or a key. The values for all keys have to be base64-encoded strings. For details see: https://kubernetes.io/docs/concepts/configuration/secret/
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-30 UTC."],[[["\u003cp\u003eUserWorkloadsSecret is a resource used by Airflow tasks running with Kubernetes executor or KubernetesPodOperator.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON representation includes a \u003ccode\u003ename\u003c/code\u003e string identifier and a \u003ccode\u003edata\u003c/code\u003e map of base64-encoded key-value pairs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edata\u003c/code\u003e field contains sensitive information like passwords, tokens, or keys, and values must be base64-encoded.\u003c/p\u003e\n"],["\u003cp\u003eThis resource supports methods for creating, deleting, getting, listing, and updating user workloads secrets.\u003c/p\u003e\n"],["\u003cp\u003eThe resource name of the Secret is in the form "projects/{projectId}/locations/{locationId}/environments/{environmentId}/userWorkloadsSecrets/{userWorkloadsSecretId}".\u003c/p\u003e\n"]]],[],null,["# REST Resource: projects.locations.environments.userWorkloadsSecrets\n\n- [Resource: UserWorkloadsSecret](#UserWorkloadsSecret)\n - [JSON representation](#UserWorkloadsSecret.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: UserWorkloadsSecret\n-----------------------------\n\nUser workloads Secret used by Airflow tasks that run with Kubernetes executor or KubernetesPodOperator."]]