Allow IAP configuration with default IdP

Load balancers can be configured with IAP-enabled backends.
They can either be configured to use external Identity Providers (IdP)
or to use Cloud Identity. The latter is the default and is used when
the OAuth2 parameters are not specified.

The iap_config parameter in the backend_service_configs variable
already supported the external IdP option, but did not support the
default one.
This commit is contained in:
Stefano Tribioli
2025-04-11 17:20:38 +02:00
committed by Stefano Tribioli
parent 03db2e45cf
commit ffe1fbdfea
8 changed files with 12 additions and 12 deletions

View File

@@ -98,8 +98,8 @@ variable "backend_service_configs" {
}))
}))
iap_config = optional(object({
oauth2_client_id = string
oauth2_client_secret = string
oauth2_client_id = optional(string)
oauth2_client_secret = optional(string)
oauth2_client_secret_sha256 = optional(string)
}))
locality_lb_policies = optional(list(object({