GCP Workload Identity Federation
Install the GCP Workload Identity Federation component so P0 can grant and revoke Google Cloud access for OIDC-authenticated agents running through the P0 AI Gateway.
Prerequisites
Install the Workload Identity Federation component
resource "google_iam_workload_identity_pool" "p0_wif_pool" { project = local.project_id workload_identity_pool_id = "p0-wif-pool-<identifier>" } resource "google_iam_workload_identity_pool_provider" "p0_wif_provider" { project = local.project_id workload_identity_pool_id = google_iam_workload_identity_pool.p0_wif_pool.workload_identity_pool_id workload_identity_pool_provider_id = "p0-wif-provider-<identifier>" attribute_mapping = { "google.subject" = "assertion.sub" } attribute_condition = "assertion.aud=='<audience>'" oidc { issuer_uri = local.oidc_provider_url allowed_audiences = [local.audience] } }
How it works
Next steps
Last updated