gangway
by Helm
Helm chartv1.1.0App v3.2.0
An application that can be used to easily enable authentication flows via OIDC for a kubernetes cluster.
About this chart
gangway
gangway is an application that can be used to easily enable authentication flows via OIDC for a kubernetes cluster.
TL;DR
helm install gabibbo97/gangway \
--set config.apiServerURL='https://api.example.com:6443' \
--set config.authorizeURL='https://auth.example.com/auth' \
--set config.tokenURL='https://auth.example.com/token' \
--set config.clientSecret='superSecret' \
--set config.sessionSecurityKey='superSecure'
Introduction
This chart deploys a Gangway authentication server
IMPORTANT SECURITY ADVICE
You MUST set a config.sessionSecurityKey
Configuration options
| Parameter | Description | Default |
|---|---|---|
trustedCA.content | Specify inline a CA certificate | `` |
trustedCA.secretName | Specify the CA certificate secret name | `` |
config.clusterName | The name of the cluster to show on the generated KUBECONFIG | k8s |
config.apiServerURL | The kubernetes API server url | http://example.com:6443 |
config.authorizeURL | The OIDC IDP Authorization URL | http://example.com/auth |
config.tokenURL | The OIDC IDP Token URL | http://example.com/token |
config.audience | The OIDC IDP Userinfo URL | http://example.com/userinfo |
config.clientID | The OIDC Client ID | gangway |
config.clientSecret | The OIDC Client secret | gangway |
config.redirectURL | The redirect URL, will be defaulted to first configured ingress if absent | `` |
config.scopes | The OIDC scopes that will be requested | ['openid','email','profile','offline_access'] |
config.usernameClaim | The OIDC username claim | name |
config.emailClaim | The OIDC username claim | email |
config.sessionSecurityKey | The cookie security key | verySecureKey |
existingSecret | Specify an existing secret containing clientSecret and sessionSecurityKey | `` |
Use of a selfsigned certificate / custom CA
In order to use a selfsigned certificate / custom CA, one can either:
- set
trustedCA.contentto the contents of the certificate - set
trustedCA.secretNameto the name of a secret inside the gangway namespace
Easy generation of the session security key
tr -dc a-zA-Z0-9 < /dev/urandom | head -c 32; echo ''
Deploy gangway with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gangway on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgangway is pinned at v1.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply