forwardauth

by Helm

Helm chartv2.0.13App 2.0-rc1

A Helm chart for Kubernetes to install Auth0 Authorization application for Traefik forward authentication.

About this chart

ForwardAuth Helm Chart

ForwardAuth for Auth0 is a authorization proxy written specifically for use with the Traefik, The Cloud Native Edge Router, and the Auth0 Identity Management Platform.

Traefik_ will act as the gate to your applications, and the ForwardAuth application will act as the gatekeeper and authorize requests to your applications. The management of users, roles and permissions are handled in Auth0.

Prerequisites Details

  • Kubernetes 1??+

Chart Details

This chart will do the following:

  • Deploy ForwardAuth application
  • Create configmap for application.yaml (application config file)
  • Create secrets for default clientId and clientSecret
  • Optionally, create Traefik 2 CRD Middleware
  • Optionally, create Traefik 2 CRD IngressRoute for auth.example.test
  • Optionally, create Traefik 2 CRD IngressRoute for *.example.test/auth0
  • Optionally, create Ingress Object for auth.example.test
  • Optionally, create Ingress Object for *.example.test/auth0

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release dniel/forwardauth

Configuration

The following table lists the configurable parameters of the consul chart and their default values.

ParameterDescriptionDefault
ImageContainer image namedniel/forwardauth
ImageTagContainer image taglatest
ImagePullPolicyContainer pull policyAlways
logLevelapplication loglevelDEBUG
domainAuth0 tenant domain
tokenEndpointAuth0 token endpoint
default.namedefault app nameexample.test
default.clientiddefault clientid from Auth0 App<from auth0 config>
default.clientsecretdefault clientsecret from Auth0 App.<from auth0 config>
default.audiencedefault Auth0 API audience<from auth0 api>
default.scopedefault scopes to requesprofile openid email
default.redirectUridefault redirect url for signinhttp://auth.example.test/signin
default.tokenCookieDomaindefault cookie domainexample.test
mode.hostenable/disable host modefalse
mode.pathenable/disable path modefalse
ingressroute.enabledgenerate Traefik CRD IngressRoutefalse
ingressroute.hostnamehostname for IngressRouteexample.test
ingressroute.pathpath for IngressRoute/auth
ingressroute.certResolvercertificate resolver to usedefault
middleware.enabledgenerate Traefik CRD Middlewarefalse
middleware.trustForwardHeaderenable/disable trustForwardHeadertrue
middleware.authResponseHeadersheaders to add from ForwardAuth resp.[authorization,x-forwardauth-name,x-forwardauth-sub,x-forwardauth-email]
ingress.enabledenable/disable Ingressfalse
ingress.hostnamehostname for Ingressauth.example.test
ingress.annotationsannotations to add to Ingress[]
ingress.pathpath to add for Ingress/auth
applicationYamlApplication config for configmap
resources.limits.memory512Mi
resources.requests.memory512Mi
nodeSelector{}
tolerations[]
affinity{}

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml dniel/forwardauth

Tip: You can use the default values.yaml

Deploy forwardauth with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has forwardauth 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 chartforwardauth is pinned at v2.0.13 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