Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
feat: add keycloak saml client for github enterprise cloud (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrparkers authored Oct 22, 2021
1 parent 490cc66 commit 1e2aa2d
Show file tree
Hide file tree
Showing 11 changed files with 36 additions and 10 deletions.
2 changes: 1 addition & 1 deletion modules/config/harbor/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}
keycloak = {
source = "mrparkers/keycloak"
version = "3.3.0"
version = "3.5.1"
}
helm = {
source = "hashicorp/helm"
Expand Down
2 changes: 1 addition & 1 deletion modules/config/keycloak/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ terraform {
}
keycloak = {
source = "mrparkers/keycloak"
version = "= 3.3.0"
version = "3.5.1"
}
kubernetes = {
source = "hashicorp/kubernetes"
Expand Down
2 changes: 1 addition & 1 deletion modules/lead/product-jenkins/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ terraform {
}
keycloak = {
source = "mrparkers/keycloak"
version = "3.3.0"
version = "3.5.1"
}
kubernetes = {
source = "hashicorp/kubernetes"
Expand Down
2 changes: 1 addition & 1 deletion modules/lead/toolchain/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ terraform {
}
keycloak = {
source = "mrparkers/keycloak"
version = "3.3.0"
version = "3.5.1"
}
kubernetes = {
source = "hashicorp/kubernetes"
Expand Down
2 changes: 1 addition & 1 deletion stacks/product-jenkins/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ terraform {

keycloak = {
source = "mrparkers/keycloak"
version = "3.3.0"
version = "3.5.1"
}

template = {
Expand Down
2 changes: 1 addition & 1 deletion stages/apps/lead/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ terraform {
}
keycloak = {
source = "mrparkers/keycloak"
version = "3.3.0"
version = "3.5.1"
}
kubernetes = {
source = "hashicorp/kubernetes"
Expand Down
2 changes: 1 addition & 1 deletion stages/config/lead/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ terraform {
}
keycloak = {
source = "mrparkers/keycloak"
version = "3.3.0"
version = "3.5.1"
}
template = {
source = "hashicorp/template"
Expand Down
26 changes: 26 additions & 0 deletions stages/config/sharedsvc/keycloak.tf
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,29 @@ resource "keycloak_openid_client" "sonarqube" {
"https://${var.sonarqube_hostname}/oauth2/callback/oidc"
]
}

resource "keycloak_saml_client" "github_enterprise_cloud" {
realm_id = keycloak_realm.sharedsvc.id
client_id = "https://github.com/orgs/liatrio-cloud"

name = "github enterprise cloud"
enabled = true

include_authn_statement = true
sign_documents = true
sign_assertions = true
client_signature_required = false

signature_algorithm = "RSA_SHA256"
signature_key_name = "KEY_ID"

force_post_binding = true
front_channel_logout = true

name_id_format = "username"

valid_redirect_uris = [
"https://github.com/orgs/liatrio-cloud/*"
]
master_saml_processing_url = "https://github.com/orgs/liatrio-cloud/saml/consume"
}
2 changes: 1 addition & 1 deletion stages/config/sharedsvc/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
keycloak = {
source = "mrparkers/keycloak"
version = "3.3.0"
version = "3.5.1"
}
sonarqube = {
source = "jdamata/sonarqube"
Expand Down
2 changes: 1 addition & 1 deletion stages/vault/sharedsvc/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
keycloak = {
source = "mrparkers/keycloak"
version = "= 3.3.0"
version = "3.5.1"
}
vault = {
source = "hashicorp/vault"
Expand Down
2 changes: 1 addition & 1 deletion tests/testdata/config/harbor/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}
keycloak = {
source = "mrparkers/keycloak"
version = "3.3.0"
version = "3.5.1"
}
helm = {
source = "hashicorp/helm"
Expand Down

0 comments on commit 1e2aa2d

Please sign in to comment.