Fix WIF provider groups mapping
This commit is contained in:
parent
51f34c9a64
commit
5276b57c4d
2 changed files with 2 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ locals {
|
|||
|
||||
google_runner_wif_group_members = var.google_wif_runner_group != "" ? (
|
||||
toset([
|
||||
"principalSet://iam.googleapis.com/projects/${var.google_project_number}/locations/global/workloadIdentityPools/${var.google_wif_pool_id}/attribute.burrow_groups/${var.google_wif_runner_group}"
|
||||
"principalSet://iam.googleapis.com/projects/${var.google_project_number}/locations/global/workloadIdentityPools/${var.google_wif_pool_id}/group/${var.google_wif_runner_group}"
|
||||
])
|
||||
) : (
|
||||
toset([])
|
||||
|
|
@ -142,7 +142,6 @@ resource "google_iam_workload_identity_pool_provider" "forgejo_runners" {
|
|||
"attribute.burrow_subject" = "assertion.sub"
|
||||
"attribute.burrow_username" = "assertion.preferred_username"
|
||||
"attribute.burrow_email" = "assertion.email"
|
||||
"attribute.burrow_groups" = "assertion.groups"
|
||||
"attribute.burrow_client_id" = "assertion.azp"
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ variable "google_wif_allowed_audiences" {
|
|||
}
|
||||
|
||||
variable "google_wif_runner_group" {
|
||||
description = "Mapped Authentik group allowed to assume the runner service account. Leave empty for machine-to-machine client credentials."
|
||||
description = "Google groups principal allowed to assume the runner service account. Leave empty for machine-to-machine client credentials."
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue