QuestionQ100

VerifiedConfiguring access and security

You are deploying an application to Google Kubernetes Engine (GKE). The application needs to make API calls to a private Cloud Storage bucket. You need to configure your application Pods to authenticate to the Cloud Storage API, but your organization policy prevents the usage of service account keys. You want to follow Google-recommended practices. What should you do?

Explanation

Workload Identity Federation for GKE enables Kubernetes ServiceAccounts to impersonate Google service accounts without requiring service account keys, so it complies with the organization policy that blocks key creation. Create both a Kubernetes ServiceAccount (KSA) and a Google service account (GSA), bind them via Workload Identity Federation, and grant the GSA permissions to Cloud Storage. This is Google's recommended approach for secure, keyless authentication.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!