Google Cloud Engineer interview question
How do you give GitHub Actions access to Google Cloud without a service account key?
How you'd do it Asked in Cloud Engineer interviews
Summary
Create a workload identity pool with an OIDC provider for token.actions.githubusercontent.com, restrict it
with an attribute condition to your repository (and branch or environment), allow that identity to impersonate a
deployment service account, and use google-github-actions/auth with workload_identity_provider and
service_account in the workflow.
Keep reading with a membership
The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.
More Google Cloud Engineer questions
- How do you design a Google Cloud landing zone for a company with several teams?
- Explain Google Cloud's resource hierarchy: organisation, folders, projects and resources.
- How does IAM work in Google Cloud, and why should you avoid basic roles?
- When would you choose Cloud Run, GKE or Compute Engine?
- What are service accounts, and how should workloads authenticate without service account keys?
- Compare Google Cloud's database options: Cloud SQL, AlloyDB, Spanner, Firestore and Bigtable.
- How is networking in a Google Cloud VPC different from AWS?
- How do you run Terraform for Google Cloud safely in a team?