Map WIF runner client from audience
This commit is contained in:
parent
5276b57c4d
commit
65809da33a
3 changed files with 3 additions and 3 deletions
|
|
@ -18,7 +18,7 @@ It may manage:
|
||||||
signatures (`sparkle-ed25519`)
|
signatures (`sparkle-ed25519`)
|
||||||
- an Authentik-backed WIF pool/provider for Forgejo runners
|
- an Authentik-backed WIF pool/provider for Forgejo runners
|
||||||
- the runner service account and its narrow IAM binding for the Authentik WIF
|
- the runner service account and its narrow IAM binding for the Authentik WIF
|
||||||
client ID `google-wif.burrow.net`; human/group grants are opt-in
|
audience/client value `google-wif.burrow.net`; human/group grants are opt-in
|
||||||
|
|
||||||
It must not manage:
|
It must not manage:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ resource "google_iam_workload_identity_pool_provider" "forgejo_runners" {
|
||||||
"attribute.burrow_subject" = "assertion.sub"
|
"attribute.burrow_subject" = "assertion.sub"
|
||||||
"attribute.burrow_username" = "assertion.preferred_username"
|
"attribute.burrow_username" = "assertion.preferred_username"
|
||||||
"attribute.burrow_email" = "assertion.email"
|
"attribute.burrow_email" = "assertion.email"
|
||||||
"attribute.burrow_client_id" = "assertion.azp"
|
"attribute.burrow_client_id" = "assertion.aud"
|
||||||
}
|
}
|
||||||
|
|
||||||
attribute_condition = var.google_wif_attribute_condition
|
attribute_condition = var.google_wif_attribute_condition
|
||||||
|
|
|
||||||
|
|
@ -183,7 +183,7 @@ variable "google_wif_runner_group" {
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "google_wif_runner_client_id" {
|
variable "google_wif_runner_client_id" {
|
||||||
description = "Mapped Authentik OIDC client ID allowed to assume the runner service account for machine-to-machine CI. Empty disables this grant."
|
description = "Mapped Authentik OIDC audience/client value allowed to assume the runner service account for machine-to-machine CI. Empty disables this grant."
|
||||||
type = string
|
type = string
|
||||||
default = "google-wif.burrow.net"
|
default = "google-wif.burrow.net"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue