Skip to content

Commit

Permalink
Grant read-only access to auditors
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Mar 4, 2024
1 parent 4522f29 commit 4fd5101
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions environments/belgium/gateway.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,13 @@ module "gateway" {

gcp_shared_infra_project_id = var.shared_infra_gcp_project_id
}

// TODO: Remove once the security audit is over
resource "google_project_iam_member" "temporary_auditors" {
// repeat for each auditor_uris
for_each = toset(var.temporary_auditor_iam_uris)

project = var.gcp_project_id
role = "roles/viewer"
member = each.value
}
5 changes: 5 additions & 0 deletions environments/belgium/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ variable "gcp_project_id" {}
variable "shared_infra_gcp_project_id" {}

variable "mongodbatlas_project_id" {}

// TODO: Remove once the security audit is over
variable "temporary_auditor_iam_uris" {
type = list(string)
}

0 comments on commit 4fd5101

Please sign in to comment.