Skip to content

Commit

Permalink
Add GCP IAP authentication configuration and remove unused IAM binding
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcurtis committed Jan 1, 2025
1 parent 1b025c4 commit 68a9fd3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
8 changes: 7 additions & 1 deletion app/app-config.sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ backend:

auth:
providers:
guest: {}
gcpIap:
audience: '/projects/362793201562/global/backendServices/k8s-ig--edd854c497a47e5f'
# jwtHeader: x-custom-header # Optional: Only if you are using a custom header for the IAP JWT
signIn:
resolvers:
# See https://backstage.io/docs/auth/google/gcp-iap-auth#resolvers for more resolvers
- resolver: emailMatchingUserEntityAnnotation

catalog:
# Overrides the default list locations from app-config.yaml as these contain example data.
Expand Down
1 change: 0 additions & 1 deletion deployments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ No requirements.
|------|------|
| [google_iap_brand.this](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/iap_brand) | resource |
| [google_iap_client.this](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/iap_client) | resource |
| [google_iap_web_iam_binding.this](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/iap_web_iam_binding) | resource |

## Inputs

Expand Down
16 changes: 0 additions & 16 deletions deployments/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,3 @@ resource "google_iap_client" "this" {
brand = google_iap_brand.this.name
display_name = "Backstage"
}

# IAP Web IAM Binding Resource
# https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/iap_web_iam

resource "google_iap_web_iam_binding" "this" {

members = [
"domain:osinfra.io"
]

project = module.project.id

# Authoritative for a given role.

role = "roles/iap.httpsResourceAccessor"
}

0 comments on commit 68a9fd3

Please sign in to comment.