gatekeeper

by Gogatekeeper

Helm chartv0.1.68App 5.1.0Verified publisher

Gatekeeper is a proxy which integrates with OpenID Connect (OIDC) Providers, it supports both access tokens in a browser cookie or bearer tokens.

About this chart

gatekeeper

Gatekeeper is a proxy which integrates with OpenID Connect (OIDC) Providers, it supports both access tokens in a browser cookie or bearer tokens.

TL;DR

$ helm repo add gogatekeeper https://gogatekeeper.github.io/helm-gogatekeeper
$ helm install my-gatekeeper gogatekeeper/gatekeeper

Prerequisites

  • Helm v3.0.0+

Configuration options

Configuration of Gatekeeper mentioned in the user-guide.md can be defined in your helm values file directly under the key config:. Eg.:

config:
  discovery-url: <DISCOVERY URL>
  client-id: <CLIENT_ID>
  client-secret: <CLIENT_SECRET>
  upstream-url: http://127.0.0.1:80
  scopes:
  - vpn-user
  resources:
  - uri: /admin/test
  methods:
  - GET
  roles:
  - openvpn:vpn-user
  - openvpn:prod-vpn
  - test
  - uri: /admin/*
  methods:
  - GET
  roles:
  - openvpn:vpn-user
  - openvpn:commons-prod-vpn

For the complete list of all available configuration options, please read the Configuration Options reference.

Values

KeyTypeDefaultDescription
affinityobject{}Affinity settings for pod assignment
automountServiceAccountTokenboolfalseEnable automounting service account credentials, please be aware that there is more secure way of exposing serviceAccountToken in pods with projected volumes
autoscaling.enabledboolfalseEnable autoscaling
autoscaling.maxReplicasint100Maximum number of Gatekeeper replicas
autoscaling.minReplicasint1Minimum number of Gatekeeper replicas
autoscaling.targetCPUUtilizationPercentageint80Target CPU utilization percentage
autoscaling.targetMemoryUtilizationPercentagestringnilTarget Memory utilization percentage
configobjectSee values.yamlGatekeeper configuration options, see Configuration options section
config.enable-metricsboolfalseSetting this enables the prometheus metrics collector at /oauth/metrics
config.listenstring"0.0.0.0:3000"the interface definition you wish the proxy to listen, all interfaces is specified as :<port>, unix sockets as unix://<REL_PATH> or unix://</ABS PATH>
config.listen-adminstring"0.0.0.0:4000"port on which metrics and health endpoints will be available, if not specified it will be on above specified port
containerSecurityContextobjectSee values.yamlEnables container-level security attributes and common container settings
deploymentAnnotationsobject{}Annotations for the deployment
extraArgslist[]Additional command line arguments to pass to the container
extraEnvVarslist[]Any extra environment variables you would like to pass on to the pod
extraVolumeMountslist[]Array to add extra mounts
extraVolumeslist[]Array to add extra volumes
fullnameOverridestring""Overrides the full name of the chart
hostAliaseslist[]
image.digeststring""Container image digest sha256:(hash)
image.pullPolicystring"IfNotPresent"Image pull policy. One of Always, Never, IfNotPresent
image.registrystring"quay.io"Container image registry
image.repositorystring"gogatekeeper/gatekeeper"Container image name
image.tagstring""Container image tag (overrides the image tag whose default is the chart appVersion.)
imagePullSecretslist[]An optional list of references to secrets in the same namespace to use for pulling any of the images used
ingress.annotationsobject{}Annotations for Ingress resource
ingress.classNamestring""The name of the IngressClass cluster resource. (Needs Kubernetes >=1.18)
ingress.enabledboolfalseEnable ingress controller resource
ingress.hostslistSee values.yamlA list of host rules used to configure the Ingress
ingress.tlslist[]Ingress TLS configuration
kubeVersionOverridestring""Override the Kubernetes version, which is used to evaluate certain manifests
livenessProbeobjectSee values.yamlLiveness Probe settings
metrics.addPrometheusScrapeAnnotationboolfalseAdd scrape Annotations to the pods for Prometheus (when not using PrometheusOperator)
metrics.serviceMonitor.additionalLabelsobject{}Additional labels to add to the ServiceMonitor
metrics.serviceMonitor.annotationsobject{}Annotations to add to the ServiceMonitor
metrics.serviceMonitor.enabledboolfalseCreate ServiceMonitor resource for scraping metrics using PrometheusOperator
metrics.serviceMonitor.intervalstringnilInterval at which metrics should be scraped
metrics.serviceMonitor.namespacestringnilSpecify if the ServiceMonitor will be deployed into a different namespace (blank deploys into same namespace as chart)
nameOverridestring""Overrides the name of the chart
nodeSelectorobject{}Node labels for pod assignment
pdb.createboolfalseCreate Pod disruption budget resource
pdb.minAvailableint1Number or percentage of pods which must be available during a disruption.
podAnnotationsobject{}Annotations for pods
podLabelsobject{}Additional labels for pods
podSecurityContextobjectSee values.yamlEnables pod-level security attributes and common container settings
priorityClassNamestring""priorityClassName for the Gatekeeper deployment resource
readinessProbeobjectSee values.yamlReadiness Probe settings
replicaCountint1Number of desired pods
resources.limitsobject{}Maximum amount of compute resources allowed
resources.requestsobject{}Minimum amount of compute resources required
service.admin.nodePortstringnilService HTTP node port for the admin-only endpoint (live-status, debug, prometheus...)
service.admin.portint4000Kubernetes Service port for the admin-only endpoint (live-status, debug, prometheus...)
service.annotationsobject{}Annotations to add to the Service
service.proxy.nodePortstringnilService HTTP node port
service.proxy.portint3000Kubernetes Service port
service.typestring"ClusterIP"Kubernetes Service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. (If not set and create is true, a name is generated using the fullname template)
strategy.typestring"Recreate"Type of deployment. Can be Recreate or RollingUpdate
tolerationslist[]Toleration labels for pod assignment

Deploy gatekeeper with OpenTenant

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