Skip to content

Commit

Permalink
Grant SA listing to auditors
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Mar 4, 2024
1 parent ff5e7cd commit 6194f6c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions environments/belgium/audit.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,21 @@ resource "google_project_iam_member" "auditors_secret_manager" {
role = "roles/secretmanager.viewer"
member = each.value
}

resource "google_project_iam_custom_role" "auditor_additional_perms" {
project = var.gcp_project_id
role_id = "tmp_auditor"
title = "Security auditor"
permissions = [
"iam.serviceAccounts.list",
]
}

resource "google_project_iam_member" "auditor_additional_perms" {
// repeat for each auditor_uris
for_each = toset(var.temporary_auditor_iam_uris)

project = var.gcp_project_id
role = google_project_iam_custom_role.auditor_additional_perms.name
member = each.value
}

0 comments on commit 6194f6c

Please sign in to comment.