Skip to content

Commit

Permalink
Introduce quarkus-oidc-proxy (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi authored Feb 21, 2024
1 parent 5f83c18 commit 9e198ca
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ terraform-scripts/quarkus-morphia.tf @quarkiverse/qua
terraform-scripts/quarkus-mybatis.tf @quarkiverse/quarkiverse-mybatis
terraform-scripts/quarkus-neo4j.tf @quarkiverse/quarkiverse-neo4j
terraform-scripts/quarkus-ngrok.tf @quarkiverse/quarkiverse-ngrok
terraform-scripts/quarkus-oidc-proxy.tf @quarkiverse/quarkiverse-oidc-proxy
terraform-scripts/quarkus-omnifaces.tf @quarkiverse/quarkiverse-omnifaces
terraform-scripts/quarkus-openapi-generator.tf @quarkiverse/quarkiverse-openapi-generator
terraform-scripts/quarkus-opencv.tf @quarkiverse/quarkiverse-opencv
Expand Down
36 changes: 36 additions & 0 deletions terraform-scripts/quarkus-oidc-proxy.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Create repository
resource "github_repository" "quarkus_oidc_proxy" {
name = "quarkus-oidc-proxy"
description = "OpenID Connect Proxy"
homepage_url = "https://some-url/"
allow_update_branch = true
archive_on_destroy = true
delete_branch_on_merge = true
has_issues = true
vulnerability_alerts = true
topics = ["quarkus-extension", "oidc", "proxy", "openid-connect", "oauth2"]
}

# Create team
resource "github_team" "quarkus_oidc_proxy" {
name = "quarkiverse-oidc-proxy"
description = "oidc-proxy team"
create_default_maintainer = false
privacy = "closed"
parent_team_id = data.github_team.quarkiverse_members.id
}

# Add team to repository
resource "github_team_repository" "quarkus_oidc_proxy" {
team_id = github_team.quarkus_oidc_proxy.id
repository = github_repository.quarkus_oidc_proxy.name
permission = "maintain"
}

# Add users to the team
resource "github_team_membership" "quarkus_oidc_proxy" {
for_each = { for tm in ["sberyozkin"] : tm => tm }
team_id = github_team.quarkus_oidc_proxy.id
username = each.value
role = "maintainer"
}

0 comments on commit 9e198ca

Please sign in to comment.