VPC Service Controls uses ingress and egress rules to control access to and from resources and clients within service perimeters. To refine access further, you can specify supported identities in ingress and egress rules.
This page lists the identities supported by VPC Service Controls and their identifier formats.
Supported identities
VPC Service Controls supports the following identities from Principal identifiers
for allow policies
, which use the IAM v1
API:
user: USER_EMAIL_ADDRESS
serviceAccount: SA_EMAIL_ADDRESS
group: GROUP_EMAIL_ADDRESS
principal://iam.googleapis.com/locations/global/workforcePools/ POOL_ID
/subject/ SUBJECT_ATTRIBUTE_VALUE
principalSet://iam.googleapis.com/locations/global/workforcePools/ POOL_ID
/group/ GROUP_ID
principalSet://iam.googleapis.com/locations/global/workforcePools/ POOL_ID
/attribute. ATTRIBUTE_NAME
/ ATTRIBUTE_VALUE
principalSet://iam.googleapis.com/locations/global/workforcePools/ POOL_ID
/*
principal://iam.googleapis.com/projects/ PROJECT_NUMBER
/locations/global/workloadIdentityPools/ POOL_ID
/subject/ SUBJECT_ATTRIBUTE_VALUE
principalSet://iam.googleapis.com/projects/ PROJECT_NUMBER
/locations/global/workloadIdentityPools/ POOL_ID
/group/ GROUP_ID
principalSet://iam.googleapis.com/projects/ PROJECT_NUMBER
/locations/global/workloadIdentityPools/ POOL_ID
/attribute. ATTRIBUTE_NAME
/ ATTRIBUTE_VALUE
principalSet://iam.googleapis.com/projects/ PROJECT_NUMBER
/locations/global/workloadIdentityPools/ POOL_ID
/*
principal:// TRUST_DOMAIN
/ AGENT_UNIQUE_IDENTIFIER
principalSet:// TRUST_DOMAIN
/attribute. ATTRIBUTE_NAME
/ ATTRIBUTE_VALUE
principalSet:// TRUST_DOMAIN
/*
For more information about these identities, see Principal identifiers for allow policies .
VPC Service Controls also supports the following SPIFFE formats for third-party workforce and workload identities:
principal:// POOL_ID
.global.workforce.id.goog/ SUBJECT_ATTRIBUTE_VALUE
principalSet:// POOL_ID
.global.workforce.id.goog/attribute. ATTRIBUTE_NAME
/ ATTRIBUTE_VALUE
principalSet:// POOL_ID
.global.workforce.id.goog/*
principal:// POOL_ID
.global. ORGANIZATION_ID
.workload.id.goog/ SUBJECT_ATTRIBUTE_VALUE
principalSet:// POOL_ID
.global. ORGANIZATION_ID
.workload.id.goog/attribute. ATTRIBUTE_NAME
/ ATTRIBUTE_VALUE
principalSet:// POOL_ID
.global. ORGANIZATION_ID
.workload.id.goog/*

