authenticatoor

by ethPandaOps

Helm chartv0.2.0Verified publisher

Issues short-lived RS256 JWTs for users authenticated by an upstream reverse-proxy SSO. Public keys are published as a JWKS so any resource server can validate the issued tokens locally.

About this chart

authenticatoor

Issues short-lived RS256 JWTs for users authenticated by an upstream reverse-proxy SSO. Public keys are published as a JWKS so any resource server can validate the issued tokens locally.

Homepage: https://github.com/ethpandaops/service-authenticatoor

Values

KeyTypeDefaultDescription
affinityobject{}Affinity configuration for pods
allowedReturnHostslist[]Hosts that /auth/login may redirect to via return_to. Same DNS-label glob syntax as scopePattern. Defaults to ["*."].
annotationsobject{}Annotations for the Deployment
audiencelist[]The "aud" claim. Verifiers must accept this value. Defaults to the parent zone of the issuer host.
authModelist[]Names of the providers offered to unauthenticated users, in this order. One name sends them straight into that provider's login; several show the selection page. Providers left out stay reachable at //login. Empty offers all providers.
cloudflareAccess.audTagstring""AUD tag of the CF Access application. Optional. When set, assertions whose aud doesn't match are rejected. When empty, the audience claim is not checked — assertions from any application in the same CF Access team are accepted (signature + issuer still tie them to the team).
cloudflareAccess.jwtHeaderstring"Cf-Access-Jwt-Assertion"Header carrying the assertion JWT.
cloudflareAccess.teamDomainstring"ethpandaops.cloudflareaccess.com"Cloudflare team domain (e.g. ".cloudflareaccess.com"). Required when verifyJWT is true.
cloudflareAccess.verifyJWTbooltrueVerify the Cf-Access-Jwt-Assertion header against Cloudflare's JWKS. Recommended even when the service is unreachable outside the CF tunnel.
configstringSee values.yamlConfig file
containerSecurityContextobjectSee values.yamlThe security context for containers
cors.allowedOriginslist[]Browser origins allowed to call /auth/* with credentials. Defaults to allowedReturnHosts.
customCommandlist[]Command replacement for the authenticatoor container
externalURLstring""URL used in the OIDC discovery document and as jwks_uri. Defaults to the issuer URL.
extraArgslist[]Extra args for the authenticatoor container
extraContainerslist[]Additional containers
extraEnvlist[]Additional env variables
extraPodPortslist[]Additional ports on the pod (in addition to http and metrics)
extraPortslist[]Additional ports on the Service (in addition to http)
extraVolumeMountslist[]Additional volume mounts
extraVolumeslist[]Additional volumes
fullnameOverridestring""Overrides the chart's computed fullname
grantsstringnilAccess groups: which members may use which services. Not set (null) leaves the services claim out of the tokens; a list, even an empty one, turns the gate on and denies everything no group grants. Needs a service version that knows grants.
httpPortint8080HTTP port for the main listener (auth endpoints + JWKS + healthz)
image.pullPolicystring"Always"authenticatoor container pull policy
image.repositorystring"ethpandaops/service-authenticatoor"authenticatoor container image repository
image.tagstring"main"authenticatoor container image tag
imagePullSecretslist[]Image pull secrets for Docker images
ingress.annotationsobject{}Annotations for Ingress
ingress.classNamestring""IngressClass that will be used to implement the Ingress
ingress.enabledboolfalseIngress resource for the HTTP API
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].pathslist[]
ingress.tlslist[]Ingress TLS
initContainerslist[]Additional init containers
issuerstring"https://auth.example.com"Canonical URL of this service. Used as the JWT "iss" claim. Required. Several other fields are derived from this when not set: audience, scopePattern, allowedReturnHosts, cors.allowedOrigins.
livenessProbeobjectSee values.yamlLiveness probe
logging.formatstring"json"Log format: text
logging.levelstring"info"Log level: debug
metrics.enabledboolfalseExpose Prometheus metrics on a separate listener
metricsPortint9090HTTP port for the metrics listener (only used when metrics.enabled)
nameOverridestring""Overrides the chart's name
nodeSelectorobject{}Node selector for pods
persistence.accessModeslist["ReadWriteOnce"]Access modes for the PersistentVolumeClaim.
persistence.annotationsobject{}Annotations for the PersistentVolumeClaim.
persistence.enabledbooltrueProvision a PersistentVolumeClaim to hold the auto-generated signing key. This is the deploy-and-go default: the chart creates a small PVC, the service generates a key on first start, and the key persists across pod restarts. Disabled automatically when signing.privateKeyPem or signing.existingSecret is set.
persistence.existingClaimstring""Use an existing PersistentVolumeClaim instead of provisioning one.
persistence.sizestring"32Mi"Requested size for the PersistentVolumeClaim.
persistence.storageClassNamestringnilStorage class name. Uses the cluster default when null.
podAnnotationsobject{}Pod annotations
podLabelsobject{}Pod labels
priorityClassNamestringnilPod priority class
providerSecrets.existingSecretstring""Existing Secret whose keys are mounted as files under /etc/authenticatoor/secrets. Mutually exclusive with files.
providerSecrets.filesobject{}Files the chart writes to a Secret and mounts under /etc/authenticatoor/secrets (file name: content), e.g. an OIDC client secret or an htpasswd file.
providerslist[]Auth providers, passed to the service config as written. Each entry has a unique name, a type (cloudflare
readinessProbeobjectSee values.yamlReadiness probe
replicasint1Number of replicas
resourcesobject{}Resource requests and limits
scopePatternstring""The "scope" claim — a host wildcard pattern. Defaults to "*.".
securityContextobjectSee values.yamlThe security context for pods
service.typestring"ClusterIP"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
serviceMonitor.annotationsobject{}Additional ServiceMonitor annotations
serviceMonitor.enabledboolfalseIf true, a ServiceMonitor CRD is created for a prometheus operator https://github.com/coreos/prometheus-operator
serviceMonitor.intervalstring"1m"ServiceMonitor scrape interval
serviceMonitor.labelsobject{}Additional ServiceMonitor labels
serviceMonitor.namespacestringnilAlternative namespace for ServiceMonitor
serviceMonitor.pathstring"/metrics"Path to scrape
serviceMonitor.relabelingslist[]ServiceMonitor relabelings
serviceMonitor.schemestring"http"ServiceMonitor scheme
serviceMonitor.scrapeTimeoutstring"30s"ServiceMonitor scrape timeout
serviceMonitor.tlsConfigobject{}ServiceMonitor TLS configuration
signing.existingSecretstring""Use an existing Secret instead of having the chart create one. The Secret must contain active.pem. Mutually exclusive with privateKeyPem and persistence.
signing.keyIdstring""Optional kid for the active key. Auto-derived from the public key if empty.
signing.previousKeyslist[]Previous keys (public-only) kept in JWKS during rotation. Drop entries after tokenTTL has passed since the last token signed with them was issued.
signing.privateKeyPemstring""Active RSA private key in PEM format (PKCS#1 or PKCS#8). When set the chart writes this to a Secret and mounts it read-only. Mutually exclusive with persistence.
terminationGracePeriodSecondsint30How long to wait until the pod is forcefully terminated
tokenTTLstring"30m"Token lifetime
tolerationslist[]Tolerations for pods
topologySpreadConstraintslist[]Topology Spread Constraints for pods
updateStrategyobject{"type":"Recreate"}Update strategy for the Deployment. Defaults to Recreate so the new pod can attach the signing-key PVC after the old pod releases it (the typical RWO storage class doesn't allow simultaneous attach).
userHeaderstring"Cf-Access-Authenticated-User-Email"HTTP header carrying the authenticated user's email. Only used by the Cloudflare Access provider the chart renders from cloudflareAccess while providers is empty.

Example

Minimal deploy-and-go install — only the issuer URL and the CF Access team domain are required:

issuer: "https://auth.example.com"

cloudflareAccess:
  teamDomain: "<team>.cloudflareaccess.com"

The chart provisions a small PersistentVolumeClaim (default 32Mi) for the signing key. On first start the service generates an RS256 keypair and writes it to the volume; subsequent restarts reuse the same key, so the JWKS is stable across pod reschedules.

To pin the audience claim to a specific CF Access application (extra defense), set cloudflareAccess.audTag to its AUD tag. When empty, any assertion signed by the team's keys is accepted.

To bring your own key instead of using the auto-generated one, set signing.privateKeyPem (chart writes it to a Secret) or signing.existingSecret (referencing a Secret you manage). Both disable the PVC-based path.

The audience, scopePattern, allowedReturnHosts, and cors.allowedOrigins fields are auto-derived from the parent zone of the issuer host when not set, so the example above produces:

  • aud = ["example.com"]
  • scope = *.example.com

Generate a fresh signing key with the bundled helper:

docker run --rm ethpandaops/service-authenticatoor:main genkey

More details: https://github.com/ethpandaops/service-authenticatoor.

Deploy authenticatoor with OpenTenant

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