Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 1.43 KB

azure-gcp-workload-identity-federation.md

File metadata and controls

26 lines (17 loc) · 1.43 KB

Azure GCP Workload Identity Federation

This allows Azure AKS client to access GCP resources without the use of plain text API Keys, that are considered a security risk.

Workload Identity Federation requires configuration on both Azure and GCP.

Overview

GCP Configuration

To configure GCP to run the gcloud scripts see GCloud FAQ.

GCloud scripts and documentation

For GCloud WIF helper scripts and documentation see GCloud scripts and Documentation.

Azure configuration

The required resources are added per namespace. Add namespaces to the gcp_wif_namespaces variable list to enable WIF. This creates a service account in the namespace, linked to a managed identity with specific federated credentials.

Applications

To enable the feature for an application in the namespace:

  • Set enable_gcp_wif = true
  • Download the Google credentials from the connected service account
  • Set the GOOGLE_CLOUD_CREDENTIALS environment variable via from key vault
  • For the dfe-analytics ruby gem, set config.azure_federated_auth = true