oauth2-proxy

by joaquinito2051

Helm chartv3.3.4App 7.4.0

A reverse proxy and static file server that provides authentication using Providers (Google, GitHub, and others) to validate accounts by email, domain or group.

About this chart

OAuth2 Proxy packaged by Bitnami

A reverse proxy and static file server that provides authentication using Providers (Google, GitHub, and others) to validate accounts by email, domain or group.

Overview of OAuth2 Proxy

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/oauth2-proxy

Introduction

Bitnami charts for Helm are carefully engineered, actively maintained and are the quickest and easiest way to deploy containers on a Kubernetes cluster that are ready to handle production workloads.

This chart bootstraps a OAuth2 Proxy Deployment in a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+
  • PV provisioner support in the underlying infrastructure
  • ReadWriteMany volumes for deployment scaling

Installing the Chart

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

helm install my-release my-repo/oauth2-proxy

The command deploys OAuth2 Proxy on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]
diagnosticMode.enabledEnable diagnostic mode (all probes will be disabled and the command will be overridden)false
diagnosticMode.commandCommand to override all containers in the deployment["sleep"]
diagnosticMode.argsArgs to override all containers in the deployment["infinity"]

Traffic Exposure Parameters

NameDescriptionValue
service.typeOAuth2 Proxy service typeClusterIP
service.portOAuth2 Proxy service HTTP port80
service.nodePorts.httpNode port for HTTP""
service.clusterIPOAuth2 Proxy service Cluster IP""
service.loadBalancerIPOAuth2 Proxy service Load Balancer IP""
service.loadBalancerSourceRangesOAuth2 Proxy service Load Balancer sources[]
service.externalTrafficPolicyOAuth2 Proxy service external traffic policyCluster
service.extraPortsExtra ports to expose (normally used with the sidecar value)[]
service.annotationsAdditional custom annotations for OAuth2 Proxy service{}
service.sessionAffinitySession Affinity for Kubernetes service, can be "None" or "ClientIP"None
service.sessionAffinityConfigAdditional settings for the sessionAffinity{}
ingress.enabledEnable ingress record generation for OAuth2 Proxyfalse
ingress.pathTypeIngress path typeImplementationSpecific
ingress.apiVersionForce Ingress API version (automatically detected if not set)""
ingress.ingressClassNameIngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)""
ingress.hostnameDefault host for the ingress recordoaut2-proxy.local
ingress.pathDefault path for the ingress record/
ingress.annotationsAdditional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.{}
ingress.tlsEnable TLS configuration for the host defined at ingress.hostname parameterfalse
ingress.extraHostsAn array with additional hostname(s) to be covered with the ingress record[]
ingress.extraPathsAn array with additional arbitrary paths that may need to be added to the ingress under the main host[]
ingress.extraTlsTLS configuration for additional hostname(s) to be covered with this ingress record[]
ingress.certManagerAdd the corresponding annotations for cert-manager integrationfalse
ingress.selfSignedCreate a TLS secret for this ingress record using self-signed certificates generated by Helmfalse
ingress.secretsCustom TLS certificates as secrets[]
ingress.extraRulesAdditional rules to be covered with this ingress record[]

OAuth2 Proxy Image parameters

NameDescriptionValue
image.registryOAuth2 Proxy image registrydocker.io
image.repositoryOAuth2 Proxy image repositorybitnami/oauth2-proxy
image.tagOAuth2 Proxy image tag (immutable tags are recommended)7.3.0-debian-11-r23
image.digestOAuth2 Proxy image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyOAuth2 Proxy image pull policyIfNotPresent
image.pullSecretsOAuth2 Proxy image pull secrets[]

OAuth2 Proxy configuration parameters

NameDescriptionValue
configuration.clientIDOAuth client IDXXXXXXX
configuration.clientSecretOAuth client secretXXXXXXXX
configuration.cookieSecretOAuth cookie secretXXXXXXXXXXXXXXXX
configuration.existingSecretSecret with the client ID, secret and cookie secret""
configuration.google.enabledEnable Google service accountfalse
configuration.google.adminEmailGoogle admin email""
configuration.google.googleGroupRestrict logins to members of this google group""
configuration.google.serviceAccountJsonGoogle Service account JSON""
configuration.google.existingSecretExisting secret containing Google Service Account""
configuration.contentDefault configuration""
configuration.existingConfigmapConfigmap with the OAuth2 Proxy configuration""
configuration.authenticatedEmailsFile.enabledEnable authenticated emails filefalse
configuration.authenticatedEmailsFile.contentRestricted access list (one email per line)""
configuration.authenticatedEmailsFile.existingSecretSecret with the authenticated emails file""
configuration.htpasswdFile.enabledEnable htpasswd filefalse
configuration.htpasswdFile.existingSecretExisting secret for htpasswd file""
configuration.htpasswdFile.contenthtpasswd file entries (one row per user)""

OAuth2 Proxy deployment parameters

| Name

Deploy oauth2-proxy with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has oauth2-proxy 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 chartoauth2-proxy is pinned at v3.3.4 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