cluster-auth

by startxfr

Helm chartv21.3.418App 4.21.19GPL-3.0-or-laterVerified publisher

Helm chart used to configure Auth at the cluster level

About this chart

Cluster Chart : Auth

This helm chart is used to configure Auth at the cluster level.

This chart is part of the cluster-xxx startx helm chart series that doesn't necessarily deploy pods but rather represent a cluster configuration state orchestrated by gitops tools like auth.

Requirements and guidelines

Read the startx helm-repository homepage for more information on how to use these resources.

Deploy this helm chart on openshift

1. Connect to your Openshift cluster

oc login -t <token> <cluster-url>

2. Install the repository

helm repo add startx https://helm-repository.readthedocs.io/en/latest/repos/stable/

3. Get information about this chart

helm show chart startx/cluster-auth

4. Install this chart

helm install cluster-auth startx/cluster-auth

Default values

Complete configuration of the OCP authentification with the following characteristics :

  • 3 auth templates in openshift-config
    • 1 template login set to default-login
    • 1 template errors set to default-errors
    • 1 template providers set to default-providers
  • 1 auth backend set to htpasswd named default-htpasswd with
    • 1 user dev
# base configuration running default configuration
helm install cluster-auth startx/cluster-auth

Values files

  • startx : Startx auth cluster wide service configuration using startx group (dev, devops and ops) (see values-startx.yaml)
    • 3 auth templates in openshift-config
      • 1 template login set to startx-login
      • 1 template errors set to startx-errors
      • 1 template providers set to startx-providers
    • 1 auth backend set to htpasswd named default-htpasswd with
      • 1 user dev
      • 1 user devops
      • 1 user ops
      • 1 user admin
helm install cluster-auth startx/cluster-auth -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/cluster-auth/values-startx.yaml
  • startx-mg : Startx gitops cluster wide service configuration using startx group (dev, devops and ops) (see values-mg.yaml)
helm install cluster-auth startx/cluster-auth -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/cluster-auth/values-mg.yaml

Other values files

Values files without a detailed section above (each one is a complete set of values for helm install cluster-auth startx/cluster-auth -f <file>) :

  • values-cdf-poc.yaml : against values-startx.yaml: differ on 14 keys, by top-level key: auth (11), context (3)
  • values-chd-d1.yaml : against values-startx.yaml: differ on 14 keys, by top-level key: auth (11), context (3)
  • values-devoteam.yaml : against values-startx.yaml: differ on 9 keys, by top-level key: auth (8), context (1)
  • values-lahsc.yaml : against values-startx.yaml: differ on 12 keys, by top-level key: auth (11), context (1)
  • values-odhf-d1.yaml : against values-startx.yaml: differ on 14 keys, by top-level key: auth (11), context (3)
  • values-prgmk.yaml : against values-startx.yaml: differ on 13 keys, by top-level key: auth (11), context (2)
  • values-startx_noinfra.yaml : context startx/default/infra; same values as values-startx.yaml
  • values-ubisoft.yaml : against values-startx.yaml: differ on 13 keys, by top-level key: auth (11), context (2)

Deploy with ArgoCD

Deploy via ArgoCD Application

cluster-auth is a configuration-only chart (no operator, no dedicated namespace). It configures the cluster OAuth CR and related secrets in openshift-config. auth.namespace sets the namespace of those Secrets and ConfigMaps; it does not apply to the OAuth resource, which is cluster scoped and rendered without a namespace. A single Application is sufficient:

git clone https://gitlab.com/startx1/helm.git
cd helm-repository/charts/cluster-auth/examples/argocd/
oc apply -k .

The automated sync policy keeps the OAuth configuration aligned with the chart values.

With manageSubresource: true (used by values-startx_noinfra.yaml) the chart also writes the Secrets the OpenShift authentication operator copies into openshift-authentication (v4-0-config-user-idp-N-file-data, v4-0-config-user-template-*). The operator rewrites them after each sync, so the example Application declares an ignoreDifferences on those Secrets : without it they show as permanently OutOfSync.

Let another owner manage OAuth/cluster

A cluster has exactly one OAuth/cluster resource. When another chart or tool owns it (the consumer only references the htpasswd and template Secrets of this chart), set auth.oauth.enabled: false in the values of the Application: the OAuth resource is not rendered, while the Secrets and ConfigMaps of auth.authBackend and auth.templates still are. The default is true, which keeps the current behaviour.

External secrets

The secret of each identity provider can come from an external store (Vault, AWS Secrets Manager...) through the External Secrets Operator instead of the chart values. With externalSecret.enabled: true on a backend, the chart renders an ExternalSecret producing the very same Secret (name, namespace, key), so the OAuth configuration that references it is unchanged. Without externalSecret, the chart keeps rendering the Secret from the values.

Backend typeSecret produced (openshift-config)Required key
htpasswd<name>-htpasswd-authhtpasswd
ldap<name>-ldap-authbindPassword
oidc<name>-oidc-authclientSecret
externalSecretDefaults:
  secretStoreRef:
    name: vault-backend
    kind: ClusterSecretStore
auth:
  enabled: true
  authBackend:
    - name: corp-ldap
      type: ldap
      ldapURL: "ldaps://ldap.example.com/ou=users,dc=example,dc=com?uid"
      ldapBindDN: "cn=svc-ocp,ou=services,dc=example,dc=com"
      externalSecret:
        enabled: true
        remoteRefs:
          bindPassword:
            key: ocp/auth/corp-ldap
            property: bindPassword

An externalSecret block accepts secretStoreRef and refreshInterval (defaults: externalSecretDefaults), remoteRefs (map of secret key to ESO remoteRef) and the raw ESO fields data, dataFrom and template. Rendering fails when no store is set or when the required key is not provided. manageSubresource cannot be combined with externalSecret.

History

ReleaseDateDescription
16.19.592024-12-09Align all chart to the 16.19.59 release
17.14.902025-04-30Publish stable release for 4.17 version
18.11.722025-11-27improve with devoteam logo
18.23.02026-02-28Start 4.19 branch
19.23.172026-03-02Align all dependencies to chart v19.23.11
20.14.152026-03-02Update all chrat to OCP version 4.20.14
21.3.02026-03-02Update all chart to OCP version 4.21.3
21.3.122026-06-18Improve cluster-auth options
21.3.2782026-08-14add centigpu
21.3.3002026-10-21Add new charts and align all to this release
21.3.3092026-10-27Adding new charts perconna and align all to v21.3.309
21.3.3212026-11-05Adding external secret management
21.3.3712026-11-19Add Sail, oauthProxy, DSCInitialization, spot machines and annotations support
21.3.3772026-11-19full repository release: aligned pins, ArgoCD source fix, schemas and docs
21.3.3792026-11-19conventions wave: spelling, READMEs, ArgoCD examples and values-app, oauth switch
21.3.3892026-11-19full repository release: HTTPS dependency URLs, dependency-ordered release, schema guard, docs and examples
21.3.3902026-11-20full repository release: test fix, keepalived README, aligned pins
21.3.3922026-11-21full repository release: chaos-pipeline run parameters and authenticated health check, aligned pins
21.3.3972026-11-21stable repository release 21.3.397: all charts aligned, unifai delegation cap documentation
21.3.4102026-11-22full repository release: README conventions (Values files, Deploy with ArgoCD), conventions page
21.3.4122026-11-22full repository release: internal pins on the previous published version (ADR-0006)
21.3.4162026-11-23stable update: chart fixes (project, cluster-mongo, cluster-oadp, cluster-pipeline, cluster-machine, example-catalog); cluster-dvo accepts the grafana keys next to its historical keys, which keep priority
21.3.4182026-11-23commit a stable release of all charts

Deploy cluster-auth with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has cluster-auth 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 chartcluster-auth is pinned at v21.3.418 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