Without some kind of physical organisation it's a little difficult to understand whether things are going "in" (supplying users to Keycloak) or "out" (getting auth/user info from Keycloak). Change-Id: I516501081e3448c81c710fcbc79cc68ad2a80f3b Reviewed-on: https://cl.tvl.fyi/c/depot/+/4762 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			756 B
		
	
	
	
		
			HCL
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			756 B
		
	
	
	
		
			HCL
		
	
	
	
	
	
| # Configure TVL Keycloak instance.
 | |
| #
 | |
| # TODO(tazjin): Configure GitHub/GitLab IDP
 | |
| 
 | |
| terraform {
 | |
|   required_providers {
 | |
|     keycloak = {
 | |
|       source = "mrparkers/keycloak"
 | |
|     }
 | |
|   }
 | |
| 
 | |
|   backend "s3" {
 | |
|     endpoint = "https://objects.dc-sto1.glesys.net"
 | |
|     bucket   = "tvl-state"
 | |
|     key      = "terraform/tvl-keycloak"
 | |
|     region   = "glesys"
 | |
| 
 | |
|     skip_credentials_validation = true
 | |
|     skip_region_validation      = true
 | |
|     skip_metadata_api_check     = true
 | |
|   }
 | |
| }
 | |
| 
 | |
| provider "keycloak" {
 | |
|   client_id = "terraform"
 | |
|   url       = "https://auth.tvl.fyi"
 | |
| }
 | |
| 
 | |
| resource "keycloak_realm" "tvl" {
 | |
|   realm                       = "TVL"
 | |
|   enabled                     = true
 | |
|   display_name                = "The Virus Lounge"
 | |
|   default_signature_algorithm = "RS256"
 | |
| }
 |