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
// The storage.NewClient(ctx) internally uses Application Default Credentials (ADC) to authenticate,
120
+
// and ADC works with Workload Identity when the required environment variables and setup are correctly configured.
121
+
// If the environment variables are not set, the client will use the default service account credentials.
122
+
// To use Google Workload Identity with storage.NewClient(ctx), ensure the following environment variables are properly set in your pod:
123
+
// GOOGLE_APPLICATION_CREDENTIALS (Optional):
124
+
// If you're not using the default workload identity path (/var/run/secrets/google.cloud/com.google.cloudsecrets/metadata/token),
125
+
// you can set GOOGLE_APPLICATION_CREDENTIALS to point to the federated token file manually.
126
+
// Otherwise, this can be left unset when Workload Identity is configured correctly.
127
+
// GOOGLE_CLOUD_PROJECT (Optional):
128
+
// Set this to your Google Cloud project ID if the SDK is not detecting it automatically.
129
+
// Additional Kubernetes Setup for Workload Identity:
130
+
// The Workload Identity configuration on your cluster ensures that the necessary tokens are automatically mounted for the pod and available without needing GOOGLE_APPLICATION_CREDENTIALS.
0 commit comments