Resource: WorkloadIdentityPoolProvider
A configuration for an external identity provider.
JSON representation |
---|
{ "name": string, "displayName": string, "description": string, "state": enum ( |
Fields | |
---|---|
name |
Output only. The resource name of the provider. |
display |
Optional. A display name for the provider. Cannot exceed 32 characters. |
description |
Optional. A description for the provider. Cannot exceed 256 characters. |
state |
Output only. The state of the provider. |
disabled |
Optional. Whether the provider is disabled. You cannot use a disabled provider to exchange tokens. However, existing tokens still grant access. |
attribute |
Optional. Maps attributes from authentication credentials issued by an external identity provider to Google Cloud attributes, such as Each key must be a string specifying the Google Cloud IAM attribute to map to. The following keys are supported:
You can also provide custom attributes by specifying You can reference these attributes in IAM policies to define fine-grained access for a workload to Google Cloud resources. For example:
Each value must be a Common Expression Language function that maps an identity provider credential to the normalized attribute specified by the corresponding map key. You can use the The maximum length of an attribute mapping expression is 2048 characters. When evaluated, the total size of all mapped attributes must not exceed 8KB. For AWS providers, if no attribute mapping is defined, the following default mapping applies:
If any custom attribute mappings are defined, they must include a mapping to the For OIDC providers, you must supply a custom mapping, which must include the
An object containing a list of |
attribute |
Optional. A Common Expression Language expression, in plain text, to restrict what otherwise valid authentication credentials issued by the provider should not be accepted. The expression must output a boolean representing whether to allow the federation. The following keywords may be referenced in the expressions:
The maximum length of the attribute condition expression is 4096 characters. If unspecified, all valid authentication credential are accepted. The following example shows how to only allow credentials with a mapped
|
expire |
Output only. Time after which the workload identity pool provider will be permanently purged and cannot be recovered. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
Union field provider_config . Identity provider configuration types. provider_config can be only one of the following: |
|
aws |
An Amazon Web Services identity provider. |
oidc |
An OpenId Connect 1.0 identity provider. |
saml |
An SAML 2.0 identity provider. |
State
The current state of the provider.
Enums | |
---|---|
STATE_UNSPECIFIED |
State unspecified. |
ACTIVE |
The provider is active, and may be used to validate authentication credentials. |
DELETED |
The provider is soft-deleted. Soft-deleted providers are permanently deleted after approximately 30 days. You can restore a soft-deleted provider using You cannot reuse the ID of a soft-deleted provider until it is permanently deleted. |
Aws
Represents an Amazon Web Services identity provider.
JSON representation |
---|
{ "accountId": string } |
Fields | |
---|---|
account |
Required. The AWS account ID. |
Oidc
Represents an OpenId Connect 1.0 identity provider.
JSON representation |
---|
{ "issuerUri": string, "allowedAudiences": [ string ], "jwksJson": string } |
Fields | |
---|---|
issuer |
Required. The OIDC issuer URL. Must be an HTTPS endpoint. |
allowed |
Optional. Acceptable values for the If this list is empty, the OIDC token audience must be equal to the full canonical resource name of the WorkloadIdentityPoolProvider, with or without the HTTPS prefix. For example:
|
jwks |
Optional. OIDC JWKs in JSON String format. For details on the definition of a JWK, see https://tools.ietf.org/html/rfc7517. If not set, the |
Saml
Represents an SAML 2.0 identity provider.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field
|
|
idp |
Required. SAML identity provider (IdP) configuration metadata XML doc. The XML document must comply with the SAML 2.0 specification. The maximum size of an acceptable XML document is 128K characters. The SAML metadata XML document must satisfy the following constraints:
When updating the provider's metadata XML, at least one non-expired signing key must overlap with the existing metadata. This requirement is skipped if there are no non-expired signing keys present in the existing metadata. |
Methods |
|
---|---|
|
Creates a new WorkloadIdentityPoolProvider in a WorkloadIdentityPool . |
|
Deletes a WorkloadIdentityPoolProvider . |
|
Gets an individual WorkloadIdentityPoolProvider . |
|
Lists all non-deleted WorkloadIdentityPoolProvider s in a WorkloadIdentityPool . |
|
Updates an existing WorkloadIdentityPoolProvider . |
|
Undeletes a WorkloadIdentityPoolProvider , as long as it was deleted fewer than 30 days ago. |