Workload Identity Federation

Introduction

  • Traditionally, applications running outside Google Cloud can use service account keysarrow-up-right to access Google Cloud resources. Service account keys are long-lived credentials vulnerable to leaks, theft, or mismanagement.

  • Workload Identity Federation is a security mechanism that allows workloads running outside of Google Cloud (e.g., on AWS, Azure, GitHub, or on-premises) to securely access Google Cloud resources without needing long-lived service account keys

Implementation

Step 1

  • Create workload identity pool and add the provider

Step 2

  • Connect the other cloud service account into gcp service account

Step 3

  • Here are the code example of accessing gcp resource by aws service account

Last updated

Was this helpful?