Documentation
¶
Index ¶
Constants ¶
View Source
const ( // UseWorkloadIdentityLabel represents the service account is to be used for workload identity UseWorkloadIdentityLabel = "azure.workload.identity/use" // ClientIDAnnotation represents the clientID to be used with pod ClientIDAnnotation = "azure.workload.identity/client-id" // TenantIDAnnotation represent the tenantID to be used with pod TenantIDAnnotation = "azure.workload.identity/tenant-id" // ServiceAccountTokenExpiryAnnotation represents the expirationSeconds for projected service account token // [OPTIONAL] field. User might want to configure this to prevent any downtime caused by errors during service account token refresh. // Kubernetes service account token expiry will not be correlated with AAD tokens. AAD tokens expiry will be 24h. ServiceAccountTokenExpiryAnnotation = "azure.workload.identity/service-account-token-expiration" // #nosec // SkipContainersAnnotation represents list of containers to skip adding projected service account token volume. // By default, the projected service account token volume will be added to all containers if the service account is labeled with `azure.workload.identity/use: true` SkipContainersAnnotation = "azure.workload.identity/skip-containers" // MinServiceAccountTokenExpiration is the minimum service account token expiration in seconds MinServiceAccountTokenExpiration = int64(3600) // MaxServiceAccountTokenExpiration is the maximum service account token expiration in seconds MaxServiceAccountTokenExpiration = int64(86400) // DefaultServiceAccountTokenExpiration is the default service account token expiration in seconds // This is the Kubernetes default value for projected service account token DefaultServiceAccountTokenExpiration = int64(3600) )
Annotations and labels defined in service account
View Source
const ( AzureClientIDEnvVar = "AZURE_CLIENT_ID" AzureTenantIDEnvVar = "AZURE_TENANT_ID" AzureFederatedTokenFileEnvVar = "AZURE_FEDERATED_TOKEN_FILE" // #nosec AzureAuthorityHostEnvVar = "AZURE_AUTHORITY_HOST" TokenFilePathName = "azure-identity-token" TokenFileMountPath = "/var/run/secrets/azure/tokens" // #nosec // DefaultAudience is the audience added to the service account token audience // This value is to be consistent with other token exchange flows in AAD and has // no impact on the actual token exchange flow. DefaultAudience = "api://AzureADTokenExchange" )
Environment variables injected in the pod
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.