jwt-to-rbac

by Helm

Helm chartv0.6.7App 0.6.6

A Helm chart for Kubernetes

About this chart

JWT-to-RBAC helm chart

Helm chart for JWT-to-RBAC that lets you automatically generate RBAC resources based on JWT token.

Installing the Chart

$ helm repo add banzaicloud-stable http://kubernetes-charts.banzaicloud.com/branch/master
$ helm repo update

Deploying jwt-to-rbac:

$ helm install --name <name> --set config.tokenhandler.oidc.clientID=<client-id> --set config.tokenhandler.oidc.issuerURL=<http://dex-url/dex>

Configuration

The following table lists configurable parameters of the jwt-to-rbac chart and their default values.

ParameterDescriptionDefault
image.repositoryjwt-to-rbac imagebanzaicloud/jwt-to-rbac
image.tagimage tag0.2.0
image.pullPolicyimage pull policyIfNotPresent
port.nameport namehttp
port.containerPortport port5555
post.protocolport protocolTCP
service.typeservice typeClusterIP
service.portservice port5555
configDirjwt-to-rbac config directory/etc/jwt-to-rbac
config.app.addrjwt-to-rbac listen address":5555"
config.log.leveljwt-to-rbac log level"4"
config.log.formatjwt-to-rbac log format"json"
config.log.noColorjwt-to-rbac log noColortrue
config.tokenhandler.caCertPathCA cert for Oidc used self-signed cert""
config.tokenhandler.insecureTurn off cert verificationfalse
config.tokenhandler.oidc.clientIDclient ID for Oidc""
config.tokenhandler.oidc.issuerURLOidc url""
config.rbachandler.githubOrgspecified github organization""
config.rbachandler.customGroupscustom group mapping, more details in JWT-to-RBAC[]
config.rbachandler.tokenTTLTTL of the generated tokens"24h"
config.rbachandler.enableCreateSATokenflag for enabling create token api endpointfalse
imagePullSecretsimage pull credentials (k8s notation) doc[]

Deploy jwt-to-rbac with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has jwt-to-rbac 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartjwt-to-rbac is pinned at v0.6.7 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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