├── CODEOWNERS
├── .gitignore
├── charts
├── authentik
│ ├── templates
│ │ ├── additional-objects.yaml
│ │ ├── _versions.tpl
│ │ ├── secret.yaml
│ │ ├── server
│ │ │ ├── pdb.yaml
│ │ │ ├── metrics.yaml
│ │ │ ├── hpa.yaml
│ │ │ ├── route.yaml
│ │ │ ├── servicemonitor.yaml
│ │ │ ├── ingress.yaml
│ │ │ ├── service.yaml
│ │ │ └── deployment.yaml
│ │ ├── worker
│ │ │ ├── pdb.yaml
│ │ │ ├── metrics.yaml
│ │ │ ├── hpa.yaml
│ │ │ ├── servicemonitor.yaml
│ │ │ └── deployment.yaml
│ │ ├── _common.tpl
│ │ ├── deprectations.yaml
│ │ ├── _helpers.tpl
│ │ └── prometheusrule.yaml
│ ├── ci
│ │ ├── ct-values.yaml
│ │ ├── ct-blueprints-values.yaml
│ │ ├── ct-pdb-min-values.yaml
│ │ ├── ct-hpa-values.yaml
│ │ ├── ct-pdb-max-values.yaml
│ │ └── manifests
│ │ │ └── blueprint.yaml
│ ├── .helmignore
│ ├── Chart.yaml
│ ├── README.md.gotmpl
│ ├── README.md
│ └── values.yaml
└── authentik-remote-cluster
│ ├── templates
│ ├── serviceaccount.yaml
│ ├── serviceaccount-secret.yaml
│ ├── clusterrole.yaml
│ ├── rolebinding.yaml
│ ├── clusterrolebinding.yaml
│ ├── NOTES.txt
│ ├── role.yaml
│ └── _helpers.tpl
│ ├── .helmignore
│ ├── README.md.gotmpl
│ ├── Chart.yaml
│ ├── values.yaml
│ └── README.md
├── .vscode
├── extensions.json
├── tasks.json
└── settings.json
├── .github
├── configs
│ ├── ct-lint.yaml
│ ├── ct-install.yaml
│ └── lintconf.yaml
└── workflows
│ ├── release.yaml
│ └── lint-test.yaml
├── scripts
├── helm-docs.sh
└── lint.sh
├── .editorconfig
├── renovate.json
├── README.md
└── LICENSE
/CODEOWNERS:
--------------------------------------------------------------------------------
1 | * @goauthentik/infrastructure
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | Chart.lock
2 | charts/authentik/charts
3 |
--------------------------------------------------------------------------------
/charts/authentik/templates/additional-objects.yaml:
--------------------------------------------------------------------------------
1 | {{- range .Values.additionalObjects }}
2 | ---
3 | {{ tpl (toYaml . ) $ }}
4 | {{- end }}
5 |
--------------------------------------------------------------------------------
/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "ms-kubernetes-tools.vscode-kubernetes-tools",
4 | "Tim-Koehler.helm-intellisense",
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/charts/authentik/ci/ct-values.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | authentik:
3 | log_level: debug
4 | secret_key: 5up3r53cr37K3y
5 | postgresql:
6 | password: au7h3n71k
7 |
8 | postgresql:
9 | enabled: true
10 | auth:
11 | password: au7h3n71k
12 | persistence:
13 | enabled: false
14 |
--------------------------------------------------------------------------------
/charts/authentik/templates/_versions.tpl:
--------------------------------------------------------------------------------
1 | {{/* vim: set filetype=mustache: */}}
2 |
3 | {{/*
4 | Return the target Kubernetes version
5 | */}}
6 | {{- define "authentik.kubeVersion" -}}
7 | {{- default .Capabilities.KubeVersion.Version .Values.kubeVersionOverride -}}
8 | {{- end -}}
9 |
--------------------------------------------------------------------------------
/.github/configs/ct-lint.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | remote: origin
3 | target-branch: main
4 | chart-dirs:
5 | - charts
6 | chart-repos:
7 | - authentik=https://charts.goauthentik.io
8 | check-version-increment: false
9 | validate-maintainers: false
10 | exclude-deprecated: true
11 | excluded-charts: []
12 |
--------------------------------------------------------------------------------
/scripts/helm-docs.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | ## Reference: https://github.com/norwoodj/helm-docs
3 | set -eux
4 | REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
5 | echo "$REPO_ROOT"
6 |
7 | echo "Running Helm-Docs"
8 | docker run \
9 | --rm \
10 | -v "$REPO_ROOT:/helm-docs" \
11 | -u $(id -u) \
12 | jnorwood/helm-docs:v1.12.0
13 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = space
5 | indent_size = 4
6 | charset = utf-8
7 | trim_trailing_whitespace = true
8 | insert_final_newline = true
9 |
10 | [*.html]
11 | indent_size = 2
12 |
13 | [*.{yaml,yml}]
14 | indent_size = 2
15 |
16 | [*.go]
17 | indent_style = tab
18 |
19 | [Makefile]
20 | indent_style = tab
21 |
--------------------------------------------------------------------------------
/.github/configs/ct-install.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | remote: origin
3 | target-branch: main
4 | chart-dirs:
5 | - charts
6 | chart-repos:
7 | - authentik=https://charts.goauthentik.io
8 | helm-extra-args: --timeout 600s
9 | check-version-increment: false
10 | validate-maintainers: false
11 | validate-yaml: true
12 | exclude-deprecated: true
13 | excluded-charts: []
14 |
--------------------------------------------------------------------------------
/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "2.0.0",
3 | "tasks": [
4 | {
5 | "label": "docs",
6 | "type": "shell",
7 | "command": "helm-docs",
8 | "problemMatcher": [],
9 | "group": {
10 | "kind": "build",
11 | "isDefault": true
12 | }
13 | }
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------
/charts/authentik/ci/ct-blueprints-values.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | blueprints:
3 | configMaps:
4 | - authentik-ci-blueprint
5 |
6 | ### Required values below
7 |
8 | authentik:
9 | log_level: debug
10 | secret_key: 5up3r53cr37K3y
11 | postgresql:
12 | password: au7h3n71k
13 |
14 | postgresql:
15 | enabled: true
16 | auth:
17 | password: au7h3n71k
18 | persistence:
19 | enabled: false
20 |
--------------------------------------------------------------------------------
/charts/authentik/.helmignore:
--------------------------------------------------------------------------------
1 | # Patterns to ignore when building packages.
2 | # This supports shell glob matching, relative path matching, and
3 | # negation (prefixed with !). Only one pattern per line.
4 | .DS_Store
5 | # Common VCS dirs
6 | .git/
7 | .gitignore
8 | .bzr/
9 | .bzrignore
10 | .hg/
11 | .hgignore
12 | .svn/
13 | # Common backup files
14 | *.swp
15 | *.bak
16 | *.tmp
17 | *~
18 | # Various IDEs
19 | .project
20 | .idea/
21 | *.tmproj
22 |
--------------------------------------------------------------------------------
/charts/authentik-remote-cluster/templates/serviceaccount.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: v1
2 | kind: ServiceAccount
3 | metadata:
4 | name: {{ template "authentik-remote-cluster.fullname" . }}
5 | namespace: {{ include "authauthentik-remote-cluster.namespace" . | quote }}
6 | labels:
7 | {{- include "authentik-remote-cluster.labels" (dict "context" .) | nindent 4 }}
8 | {{- with .Values.annotations }}
9 | annotations:
10 | {{- toYaml . | nindent 4 }}
11 | {{- end }}
12 |
--------------------------------------------------------------------------------
/charts/authentik/ci/ct-pdb-min-values.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | server:
3 | pdb:
4 | enabled: true
5 | minAvailable: 2
6 | worker:
7 | pdb:
8 | enabled: true
9 | minAvailable: 2
10 |
11 | ### Required values below
12 |
13 | authentik:
14 | log_level: debug
15 | secret_key: 5up3r53cr37K3y
16 | postgresql:
17 | password: au7h3n71k
18 |
19 | postgresql:
20 | enabled: true
21 | auth:
22 | password: au7h3n71k
23 | persistence:
24 | enabled: false
25 |
--------------------------------------------------------------------------------
/charts/authentik/ci/ct-hpa-values.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | server:
3 | autoscaling:
4 | enabled: true
5 | minReplicas: 1
6 | worker:
7 | autoscaling:
8 | enabled: true
9 | minReplicas: 1
10 |
11 | ### Required values below
12 |
13 | authentik:
14 | log_level: debug
15 | secret_key: 5up3r53cr37K3y
16 | postgresql:
17 | password: au7h3n71k
18 |
19 | postgresql:
20 | enabled: true
21 | auth:
22 | password: au7h3n71k
23 | persistence:
24 | enabled: false
25 |
--------------------------------------------------------------------------------
/charts/authentik/ci/ct-pdb-max-values.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | server:
3 | pdb:
4 | enabled: true
5 | maxUnavailable: 25%
6 | worker:
7 | pdb:
8 | enabled: true
9 | maxUnavailable: 25%
10 |
11 | ### Required values below
12 |
13 | authentik:
14 | log_level: debug
15 | secret_key: 5up3r53cr37K3y
16 | postgresql:
17 | password: au7h3n71k
18 |
19 | postgresql:
20 | enabled: true
21 | auth:
22 | password: au7h3n71k
23 | persistence:
24 | enabled: false
25 |
--------------------------------------------------------------------------------
/charts/authentik-remote-cluster/.helmignore:
--------------------------------------------------------------------------------
1 | # Patterns to ignore when building packages.
2 | # This supports shell glob matching, relative path matching, and
3 | # negation (prefixed with !). Only one pattern per line.
4 | .DS_Store
5 | # Common VCS dirs
6 | .git/
7 | .gitignore
8 | .bzr/
9 | .bzrignore
10 | .hg/
11 | .hgignore
12 | .svn/
13 | # Common backup files
14 | *.swp
15 | *.bak
16 | *.tmp
17 | *.orig
18 | *~
19 | # Various IDEs
20 | .project
21 | .idea/
22 | *.tmproj
23 | .vscode/
24 |
--------------------------------------------------------------------------------
/scripts/lint.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 | # Reference: https://github.com/helm/chart-testing
3 | set -eux
4 |
5 | SRCROOT="$(cd "$(dirname "$0")/.." && pwd)"
6 |
7 | echo -e "\n-- Linting all Helm Charts --\n"
8 | docker run \
9 | --rm \
10 | -v "$SRCROOT:/workdir" \
11 | --entrypoint /bin/sh \
12 | quay.io/helmpack/chart-testing:v3.10.1 \
13 | -c cd /workdir \
14 | ct lint \
15 | --config .github/configs/ct-lint.yaml \
16 | --lint-conf .github/configs/lintconf.yaml \
17 | --debug
18 |
--------------------------------------------------------------------------------
/charts/authentik/ci/manifests/blueprint.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: v1
2 | kind: ConfigMap
3 | metadata:
4 | name: authentik-ci-blueprint
5 | data:
6 | test-blueprint.yaml: |
7 | version: 1
8 | metadata:
9 | name: ci-test-blueprint
10 | entries:
11 | - attrs:
12 | designation: authentication
13 | name: ci-test-blueprint
14 | title: ci-test-blueprint
15 | identifiers:
16 | slug: ci-test-blueprint
17 | model: authentik_flows.flow
18 | id: flow
19 |
--------------------------------------------------------------------------------
/charts/authentik-remote-cluster/templates/serviceaccount-secret.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.serviceAccountSecret.enabled -}}
2 | apiVersion: v1
3 | kind: Secret
4 | metadata:
5 | name: {{ template "authentik-remote-cluster.fullname" . }}
6 | namespace: {{ include "authauthentik-remote-cluster.namespace" . | quote }}
7 | labels:
8 | {{- include "authentik-remote-cluster.labels" (dict "context" .) | nindent 4 }}
9 | annotations:
10 | kubernetes.io/service-account.name: {{ template "authentik-remote-cluster.fullname" . }}
11 | {{- with .Values.annotations }}
12 | {{- toYaml . | nindent 4 }}
13 | {{- end }}
14 | type: kubernetes.io/service-account-token
15 | {{- end }}
16 |
--------------------------------------------------------------------------------
/charts/authentik-remote-cluster/templates/clusterrole.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.clusterRole.enabled -}}
2 | apiVersion: rbac.authorization.k8s.io/v1
3 | kind: ClusterRole
4 | metadata:
5 | name: {{ printf "%s-%s" (include "authentik-remote-cluster.fullname" .) (include "authauthentik-remote-cluster.namespace" .) | quote }}
6 | labels:
7 | {{- include "authentik-remote-cluster.labels" (dict "context" .) | nindent 4 }}
8 | {{- with .Values.annotations }}
9 | annotations:
10 | {{- toYaml . | nindent 4 }}
11 | {{- end }}
12 | rules:
13 | - apiGroups:
14 | - apiextensions.k8s.io
15 | resources:
16 | - customresourcedefinitions
17 | verbs:
18 | - list
19 | {{- end }}
20 |
--------------------------------------------------------------------------------
/renovate.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3 | "dependencyDashboardLabels": [
4 | "dependencies"
5 | ],
6 | "extends": [
7 | "config:base",
8 | ":label(dependencies)",
9 | ":preserveSemverRanges",
10 | ":disableRateLimiting",
11 | ":dependencyDashboard",
12 | ":enableVulnerabilityAlerts",
13 | "github>whitesource/merge-confidence:beta",
14 | ":enablePreCommit"
15 | ],
16 | "internalChecksFilter": "strict",
17 | "lockFileMaintenance": {
18 | "enabled": true
19 | },
20 | "reviewersFromCodeOwners": true,
21 | "semanticCommits": "auto"
22 | }
23 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ---
6 |
7 | [](https://goauthentik.io/discord)
8 | [](https://github.com/goauthentik/helm/actions/workflows/lint-test.yaml)
9 |
10 | ## authentik Chart
11 |
12 | See [README](./charts/authentik/README.md)
13 |
14 | ## authentik-remote-cluster Chart
15 |
16 | See [README](./charts/authentik-remote-cluster/README.md)
17 |
--------------------------------------------------------------------------------
/charts/authentik-remote-cluster/templates/rolebinding.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: rbac.authorization.k8s.io/v1
2 | kind: RoleBinding
3 | metadata:
4 | name: {{ template "authentik-remote-cluster.fullname" . }}
5 | namespace: {{ include "authauthentik-remote-cluster.namespace" . | quote }}
6 | labels:
7 | {{- include "authentik-remote-cluster.labels" (dict "context" .) | nindent 4 }}
8 | {{- with .Values.annotations }}
9 | annotations:
10 | {{- toYaml . | nindent 4 }}
11 | {{- end }}
12 | roleRef:
13 | apiGroup: rbac.authorization.k8s.io
14 | kind: Role
15 | name: {{ template "authentik-remote-cluster.fullname" . }}
16 | subjects:
17 | - kind: ServiceAccount
18 | name: {{ template "authentik-remote-cluster.fullname" . }}
19 | namespace: {{ include "authauthentik-remote-cluster.namespace" . | quote }}
20 |
--------------------------------------------------------------------------------
/charts/authentik-remote-cluster/README.md.gotmpl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ---
6 |
7 | [](https://goauthentik.io/discord)
8 | 
9 | 
10 |
11 | {{ template "chart.deprecationWarning" . }}
12 |
13 | {{ template "chart.description" . }}
14 |
15 | {{ template "chart.homepageLine" . }}
16 |
17 | {{ template "chart.maintainersSection" . }}
18 |
19 | {{ template "chart.sourcesSection" . }}
20 |
21 | {{ template "chart.requirementsSection" . }}
22 |
23 | {{ template "chart.valuesSection" . }}
24 |
--------------------------------------------------------------------------------
/charts/authentik/templates/secret.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.authentik.enabled }}
2 | apiVersion: v1
3 | kind: Secret
4 | metadata:
5 | name: {{ template "authentik.fullname" . }}
6 | namespace: {{ include "authentik.namespace" . | quote }}
7 | labels:
8 | {{- include "authentik.labels" (dict "context" .) | nindent 4 }}
9 | {{- if .Values.global.secretAnnotations }}
10 | annotations:
11 | {{- toYaml .Values.global.secretAnnotations | nindent 4 }}
12 | {{- end }}
13 | data:
14 | {{- include "authentik.env" (dict "root" . "values" .Values.authentik) | indent 2 }}
15 | {{- if and .Values.geoip.enabled (not .Values.geoip.existingSecret.secretName) }}
16 | GEOIPUPDATE_ACCOUNT_ID: {{ required "geoip account id required" .Values.geoip.accountId | b64enc | quote }}
17 | GEOIPUPDATE_LICENSE_KEY: {{ required "geoip license key required" .Values.geoip.licenseKey | b64enc | quote }}
18 | {{- end }}
19 | {{- end }}
20 |
--------------------------------------------------------------------------------
/charts/authentik-remote-cluster/templates/clusterrolebinding.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.clusterRole.enabled -}}
2 | apiVersion: rbac.authorization.k8s.io/v1
3 | kind: ClusterRoleBinding
4 | metadata:
5 | name: {{ printf "%s-%s" (include "authentik-remote-cluster.fullname" .) (include "authauthentik-remote-cluster.namespace" .) | quote }}
6 | labels:
7 | {{- include "authentik-remote-cluster.labels" (dict "context" .) | nindent 4 }}
8 | {{- with .Values.annotations }}
9 | annotations:
10 | {{- toYaml . | nindent 4 }}
11 | {{- end }}
12 | roleRef:
13 | apiGroup: rbac.authorization.k8s.io
14 | kind: ClusterRole
15 | name: {{ printf "%s-%s" (include "authentik-remote-cluster.fullname" .) (include "authauthentik-remote-cluster.namespace" .) | quote }}
16 | subjects:
17 | - kind: ServiceAccount
18 | name: {{ template "authentik-remote-cluster.fullname" . }}
19 | namespace: {{ include "authauthentik-remote-cluster.namespace" . | quote }}
20 | {{- end }}
21 |
--------------------------------------------------------------------------------
/charts/authentik/templates/server/pdb.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.server.enabled }}
2 | {{- if .Values.server.pdb.enabled }}
3 | apiVersion: policy/v1
4 | kind: PodDisruptionBudget
5 | metadata:
6 | name: {{ include "authentik.server.fullname" . }}
7 | namespace: {{ include "authentik.namespace" . | quote }}
8 | labels:
9 | {{- include "authentik.labels" (dict "context" . "component" .Values.server.name) | nindent 4 }}
10 | {{- with .Values.server.pdb.labels }}
11 | {{- toYaml . | nindent 4 }}
12 | {{- end }}
13 | {{ with .Values.server.pdb.annotations }}
14 | annotations:
15 | {{- toYaml . | nindent 4 }}
16 | {{- end }}
17 | spec:
18 | {{- with .Values.server.pdb.maxUnavailable }}
19 | maxUnavailable: {{ . }}
20 | {{- else }}
21 | minAvailable: {{ .Values.server.pdb.minAvailable | default 0 }}
22 | {{- end }}
23 | selector:
24 | matchLabels:
25 | {{- include "authentik.selectorLabels" (dict "context" . "component" .Values.server.name) | nindent 6 }}
26 | {{- end }}
27 | {{- end }}
28 |
--------------------------------------------------------------------------------
/charts/authentik/templates/worker/pdb.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.worker.enabled }}
2 | {{- if .Values.worker.pdb.enabled }}
3 | apiVersion: policy/v1
4 | kind: PodDisruptionBudget
5 | metadata:
6 | name: {{ include "authentik.worker.fullname" . }}
7 | namespace: {{ include "authentik.namespace" . | quote }}
8 | labels:
9 | {{- include "authentik.labels" (dict "context" . "component" .Values.worker.name) | nindent 4 }}
10 | {{- with .Values.worker.pdb.labels }}
11 | {{- toYaml . | nindent 4 }}
12 | {{- end }}
13 | {{ with .Values.worker.pdb.annotations }}
14 | annotations:
15 | {{- toYaml . | nindent 4 }}
16 | {{- end }}
17 | spec:
18 | {{- with .Values.worker.pdb.maxUnavailable }}
19 | maxUnavailable: {{ . }}
20 | {{- else }}
21 | minAvailable: {{ .Values.worker.pdb.minAvailable | default 0 }}
22 | {{- end }}
23 | selector:
24 | matchLabels:
25 | {{- include "authentik.selectorLabels" (dict "context" . "component" .Values.worker.name) | nindent 6 }}
26 | {{- end }}
27 | {{- end }}
28 |
--------------------------------------------------------------------------------
/charts/authentik-remote-cluster/templates/NOTES.txt:
--------------------------------------------------------------------------------
1 | Run the commands below to get a kubeconfig file for authentik:
2 |
3 | KUBE_API=$(kubectl config view --minify --output jsonpath="{.clusters[*].cluster.server}")
4 | NAMESPACE={{ .Release.Namespace }}
5 | SECRET_NAME=$(kubectl get serviceaccount {{ include "authentik-remote-cluster.fullname" . }} -o jsonpath='{.secrets[0].name}' 2>/dev/null || echo -n "{{ include "authentik-remote-cluster.fullname" . }}")
6 | KUBE_CA=$(kubectl -n $NAMESPACE get secret/$SECRET_NAME -o jsonpath='{.data.ca\.crt}')
7 | KUBE_TOKEN=$(kubectl -n $NAMESPACE get secret/$SECRET_NAME -o jsonpath='{.data.token}' | base64 --decode)
8 |
9 | echo "apiVersion: v1
10 | kind: Config
11 | clusters:
12 | - name: default-cluster
13 | cluster:
14 | certificate-authority-data: ${KUBE_CA}
15 | server: ${KUBE_API}
16 | contexts:
17 | - name: default-context
18 | context:
19 | cluster: default-cluster
20 | namespace: $NAMESPACE
21 | user: authentik-user
22 | current-context: default-context
23 | users:
24 | - name: authentik-user
25 | user:
26 | token: ${KUBE_TOKEN}"
27 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "cSpell.words": [
3 | "akadmin",
4 | "asgi",
5 | "authentik",
6 | "authn",
7 | "goauthentik",
8 | "jwks",
9 | "oidc",
10 | "openid",
11 | "plex",
12 | "saml",
13 | "totp",
14 | "webauthn",
15 | "traefik",
16 | "passwordless",
17 | "kubernetes",
18 | "sso",
19 | "slo",
20 | "scim",
21 | ],
22 | "todo-tree.tree.showCountsInTree": true,
23 | "todo-tree.tree.showBadges": true,
24 | "yaml.customTags": [
25 | "!Find sequence",
26 | "!KeyOf scalar",
27 | "!Context scalar",
28 | "!Context sequence",
29 | "!Format sequence",
30 | "!Condition sequence",
31 | "!Env sequence",
32 | "!Env scalar"
33 | ],
34 | "gitlens.autolinks": [
35 | {
36 | "alphanumeric": true,
37 | "prefix": "#",
38 | "url": "https://github.com/goauthentik/helm/issues/",
39 | "ignoreCase": false
40 | }
41 | ]
42 | }
43 |
--------------------------------------------------------------------------------
/charts/authentik-remote-cluster/Chart.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: v2
2 | version: 2.1.0
3 | appVersion: 2025.4.0
4 | name: authentik-remote-cluster
5 | description: RBAC required for a remote cluster to be connected to authentik.
6 | type: application
7 | home: https://goauthentik.io
8 | sources:
9 | - https://goauthentik.io/docs/
10 | - https://github.com/goauthentik/authentik
11 | keywords:
12 | - authentication
13 | - directory
14 | - identity
15 | - idp
16 | - ldap
17 | - oauth
18 | - oidc
19 | - proxy
20 | - saml
21 | - scim
22 | - single-sign-on
23 | - sp
24 | - sso
25 | icon: https://goauthentik.io/img/icon.png
26 | maintainers:
27 | - name: authentik Team
28 | email: hello@goauthentik.io
29 | url: https://goauthentik.io
30 | annotations:
31 | artifacthub.io/license: MIT
32 | artifacthub.io/links: |
33 | - name: Github
34 | url: https://github.com/goauthentik/authentik
35 | - name: Docs
36 | url: https://goauthentik.io/docs/
37 | artifacthub.io/maintainers: |
38 | - name: authentik Team
39 | email: hello@goauthentik.io
40 | url: https://goauthentik.io
41 |
--------------------------------------------------------------------------------
/charts/authentik-remote-cluster/values.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | # -- Provide a name in place of `authentik`. Prefer using global.nameOverride if possible
3 | nameOverride: ""
4 | # -- String to fully override `"authentik.fullname"`. Prefer using global.fullnameOverride if possible
5 | fullnameOverride: ""
6 | # -- Override the Kubernetes version, which is used to evaluate certain manifests
7 | kubeVersionOverride: ""
8 |
9 | ## Globally shared configuration for authentik components.
10 | global:
11 | # -- Provide a name in place of `authentik`
12 | nameOverride: ""
13 | # -- String to fully override `"authentik.fullname"`
14 | fullnameOverride: ""
15 | # -- A custom namespace to override the default namespace for the deployed resources.
16 | namespaceOverride: ""
17 | # -- Common labels for all resources.
18 | additionalLabels: {}
19 | # app: authentik
20 |
21 | # -- Annotations to apply to all resources
22 | annotations: {}
23 |
24 | serviceAccountSecret:
25 | # -- Create a secret with the service account credentials
26 | enabled: true
27 |
28 | clusterRole:
29 | # -- Create a clusterole in addition to a namespaced role.
30 | enabled: true
31 |
--------------------------------------------------------------------------------
/.github/configs/lintconf.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | rules:
3 | braces:
4 | min-spaces-inside: 0
5 | max-spaces-inside: 0
6 | min-spaces-inside-empty: -1
7 | max-spaces-inside-empty: -1
8 | brackets:
9 | min-spaces-inside: 0
10 | max-spaces-inside: 0
11 | min-spaces-inside-empty: -1
12 | max-spaces-inside-empty: -1
13 | colons:
14 | max-spaces-before: 0
15 | max-spaces-after: 1
16 | commas:
17 | max-spaces-before: 0
18 | min-spaces-after: 1
19 | max-spaces-after: 1
20 | comments:
21 | require-starting-space: true
22 | min-spaces-from-content: 1
23 | document-end: disable
24 | document-start: disable # No --- to start a file
25 | empty-lines:
26 | max: 2
27 | max-start: 0
28 | max-end: 0
29 | hyphens:
30 | max-spaces-after: 1
31 | indentation:
32 | spaces: consistent
33 | indent-sequences: whatever # - list indentation will handle both indentation and without
34 | check-multi-line-strings: false
35 | key-duplicates: enable
36 | line-length: disable # Lines can be any length
37 | new-line-at-end-of-file: enable
38 | new-lines:
39 | type: unix
40 | trailing-spaces: enable
41 | truthy:
42 | level: warning
43 |
--------------------------------------------------------------------------------
/charts/authentik/templates/worker/metrics.yaml:
--------------------------------------------------------------------------------
1 | {{- if and .Values.worker.enabled .Values.worker.metrics.enabled }}
2 | apiVersion: v1
3 | kind: Service
4 | metadata:
5 | name: {{ include "authentik.worker.fullname" . }}-metrics
6 | namespace: {{ include "authentik.namespace" . | quote }}
7 | labels:
8 | {{- include "authentik.labels" (dict "context" . "component" (printf "%s-metrics" .Values.worker.name)) | nindent 4 }}
9 | {{- with .Values.worker.metrics.service.labels }}
10 | {{- toYaml . | nindent 4 }}
11 | {{- end }}
12 | {{- if or .Values.worker.metrics.service.annotations .Values.global.addPrometheusAnnotations }}
13 | annotations:
14 | {{- if .Values.global.addPrometheusAnnotations }}
15 | prometheus.io/port: {{ .Values.worker.metrics.service.servicePort | quote }}
16 | prometheus.io/scrape: "true"
17 | {{- end }}
18 | {{- range $key, $value := .Values.worker.metrics.service.annotations }}
19 | {{ $key }}: {{ $value | quote }}
20 | {{- end }}
21 | {{- end }}
22 | spec:
23 | type: {{ .Values.worker.metrics.service.type }}
24 | {{- if and .Values.worker.metrics.service.clusterIP (eq .Values.worker.metrics.service.type "ClusterIP") }}
25 | clusterIP: {{ .Values.worker.metrics.service.clusterIP }}
26 | {{- end }}
27 | ports:
28 | - name: {{ .Values.worker.metrics.service.portName }}
29 | protocol: TCP
30 | port: {{ .Values.worker.metrics.service.servicePort }}
31 | targetPort: metrics
32 | selector:
33 | {{- include "authentik.selectorLabels" (dict "context" . "component" .Values.worker.name) | nindent 4 }}
34 | {{- end }}
35 |
--------------------------------------------------------------------------------
/charts/authentik/templates/server/metrics.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.server.enabled }}
2 | {{- if .Values.server.metrics.enabled }}
3 | apiVersion: v1
4 | kind: Service
5 | metadata:
6 | name: {{ include "authentik.server.fullname" . }}-metrics
7 | namespace: {{ include "authentik.namespace" . | quote }}
8 | labels:
9 | {{- include "authentik.labels" (dict "context" . "component" (printf "%s-metrics" .Values.server.name)) | nindent 4 }}
10 | {{- with .Values.server.metrics.service.labels }}
11 | {{- toYaml . | nindent 4 }}
12 | {{- end }}
13 | {{- if or .Values.server.metrics.service.annotations .Values.global.addPrometheusAnnotations }}
14 | annotations:
15 | {{- if .Values.global.addPrometheusAnnotations }}
16 | prometheus.io/port: {{ .Values.server.metrics.service.servicePort | quote }}
17 | prometheus.io/scrape: "true"
18 | {{- end }}
19 | {{- range $key, $value := .Values.server.metrics.service.annotations }}
20 | {{ $key }}: {{ $value | quote }}
21 | {{- end }}
22 | {{- end }}
23 | spec:
24 | type: {{ .Values.server.metrics.service.type }}
25 | {{- if and .Values.server.metrics.service.clusterIP (eq .Values.server.metrics.service.type "ClusterIP") }}
26 | clusterIP: {{ .Values.server.metrics.service.clusterIP }}
27 | {{- end }}
28 | ports:
29 | - name: {{ .Values.server.metrics.service.portName }}
30 | protocol: TCP
31 | port: {{ .Values.server.metrics.service.servicePort }}
32 | targetPort: metrics
33 | selector:
34 | {{- include "authentik.selectorLabels" (dict "context" . "component" .Values.server.name) | nindent 4 }}
35 | {{- end }}
36 | {{- end }}
37 |
--------------------------------------------------------------------------------
/charts/authentik/templates/server/hpa.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.server.enabled }}
2 | {{- if .Values.server.autoscaling.enabled }}
3 | apiVersion: autoscaling/v2
4 | kind: HorizontalPodAutoscaler
5 | metadata:
6 | name: {{ include "authentik.server.fullname" . }}
7 | namespace: {{ include "authentik.namespace" . | quote }}
8 | labels:
9 | {{- include "authentik.labels" (dict "context" . "component" .Values.server.name) | nindent 4 }}
10 | {{- with .Values.server.autoscaling.annotations }}
11 | annotations:
12 | {{- toYaml . | nindent 4 }}
13 | {{- end }}
14 | spec:
15 | scaleTargetRef:
16 | apiVersion: apps/v1
17 | kind: Deployment
18 | name: {{ include "authentik.server.fullname" . }}
19 | minReplicas: {{ .Values.server.autoscaling.minReplicas }}
20 | maxReplicas: {{ .Values.server.autoscaling.maxReplicas }}
21 | metrics:
22 | {{- with .Values.server.autoscaling.metrics }}
23 | {{- toYaml . | nindent 4 }}
24 | {{- else }}
25 | {{- with .Values.server.autoscaling.targetMemoryUtilizationPercentage }}
26 | - type: Resource
27 | resource:
28 | name: memory
29 | target:
30 | type: Utilization
31 | averageUtilization: {{ . }}
32 | {{- end }}
33 | {{- with .Values.server.autoscaling.targetCPUUtilizationPercentage }}
34 | - type: Resource
35 | resource:
36 | name: cpu
37 | target:
38 | type: Utilization
39 | averageUtilization: {{ . }}
40 | {{- end }}
41 | {{- end }}
42 | {{- with .Values.server.autoscaling.behavior }}
43 | behavior:
44 | {{- toYaml . | nindent 4 }}
45 | {{- end }}
46 | {{- end }}
47 | {{- end }}
48 |
--------------------------------------------------------------------------------
/charts/authentik/templates/worker/hpa.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.worker.enabled }}
2 | {{- if .Values.worker.autoscaling.enabled }}
3 | apiVersion: autoscaling/v2
4 | kind: HorizontalPodAutoscaler
5 | metadata:
6 | name: {{ include "authentik.worker.fullname" . }}
7 | namespace: {{ include "authentik.namespace" . | quote }}
8 | labels:
9 | {{- include "authentik.labels" (dict "context" . "component" .Values.worker.name) | nindent 4 }}
10 | {{- with .Values.worker.autoscaling.annotations }}
11 | annotations:
12 | {{- toYaml . | nindent 4 }}
13 | {{- end }}
14 | spec:
15 | scaleTargetRef:
16 | apiVersion: apps/v1
17 | kind: Deployment
18 | name: {{ include "authentik.worker.fullname" . }}
19 | minReplicas: {{ .Values.worker.autoscaling.minReplicas }}
20 | maxReplicas: {{ .Values.worker.autoscaling.maxReplicas }}
21 | metrics:
22 | {{- with .Values.worker.autoscaling.metrics }}
23 | {{- toYaml . | nindent 4 }}
24 | {{- else }}
25 | {{- with .Values.worker.autoscaling.targetMemoryUtilizationPercentage }}
26 | - type: Resource
27 | resource:
28 | name: memory
29 | target:
30 | type: Utilization
31 | averageUtilization: {{ . }}
32 | {{- end }}
33 | {{- with .Values.worker.autoscaling.targetCPUUtilizationPercentage }}
34 | - type: Resource
35 | resource:
36 | name: cpu
37 | target:
38 | type: Utilization
39 | averageUtilization: {{ . }}
40 | {{- end }}
41 | {{- end }}
42 | {{- with .Values.worker.autoscaling.behavior }}
43 | behavior:
44 | {{- toYaml . | nindent 4 }}
45 | {{- end }}
46 | {{- end }}
47 | {{- end }}
48 |
--------------------------------------------------------------------------------
/.github/workflows/release.yaml:
--------------------------------------------------------------------------------
1 | name: Release Charts
2 |
3 | on:
4 | push:
5 | branches:
6 | - main
7 | workflow_call:
8 |
9 | permissions:
10 | contents: write
11 | packages: write
12 |
13 | jobs:
14 | release:
15 | runs-on: ubuntu-latest
16 | steps:
17 | - name: Checkout
18 | uses: actions/checkout@v6
19 | with:
20 | fetch-depth: 0
21 |
22 | - name: Configure Git
23 | run: |
24 | git config --global user.name "$GITHUB_ACTOR"
25 | git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
26 |
27 | - name: Set up Helm
28 | uses: azure/setup-helm@v4
29 |
30 | - id: generate_token
31 | uses: tibdex/github-app-token@v2
32 | with:
33 | app_id: ${{ secrets.GH_APP_ID }}
34 | private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
35 |
36 | - name: Run chart-releaser
37 | uses: helm/chart-releaser-action@v1.7.0
38 | env:
39 | CR_TOKEN: ${{ steps.generate_token.outputs.token }}
40 | CR_SKIP_EXISTING: "true"
41 | CR_GENERATE_RELEASE_NOTES: "true"
42 |
43 | - name: Login to GitHub Container Registry
44 | uses: docker/login-action@v3
45 | with:
46 | registry: ghcr.io
47 | username: ${{ github.actor }}
48 | password: ${{ secrets.GITHUB_TOKEN }}
49 |
50 | - name: Push Charts to GHCR
51 | run: |
52 | for pkg in .cr-release-packages/*; do
53 | if [ -z "${pkg:-}" ]; then
54 | break
55 | fi
56 | helm push "${pkg}" oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/helm-charts
57 | done
58 |
--------------------------------------------------------------------------------
/charts/authentik-remote-cluster/templates/role.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: rbac.authorization.k8s.io/v1
2 | kind: Role
3 | metadata:
4 | name: {{ template "authentik-remote-cluster.fullname" . }}
5 | namespace: {{ include "authauthentik-remote-cluster.namespace" . | quote }}
6 | labels:
7 | {{- include "authentik-remote-cluster.labels" (dict "context" .) | nindent 4 }}
8 | {{- with .Values.annotations }}
9 | annotations:
10 | {{- toYaml . | nindent 4 }}
11 | {{- end }}
12 | rules:
13 | - apiGroups:
14 | - ""
15 | resources:
16 | - secrets
17 | - services
18 | - configmaps
19 | verbs:
20 | {{- include "authentik-remote-cluster.api-verbs-rw" . | nindent 6 }}
21 | - apiGroups:
22 | - extensions
23 | - apps
24 | resources:
25 | - deployments
26 | verbs:
27 | {{- include "authentik-remote-cluster.api-verbs-rw" . | nindent 6 }}
28 | - apiGroups:
29 | - extensions
30 | - networking.k8s.io
31 | resources:
32 | - ingresses
33 | verbs:
34 | {{- include "authentik-remote-cluster.api-verbs-rw" . | nindent 6 }}
35 | - apiGroups:
36 | - traefik.containo.us
37 | - traefik.io
38 | resources:
39 | - middlewares
40 | verbs:
41 | {{- include "authentik-remote-cluster.api-verbs-rw" . | nindent 6 }}
42 | - apiGroups:
43 | - gateway.networking.k8s.io
44 | resources:
45 | - httproutes
46 | verbs:
47 | {{- include "authentik-remote-cluster.api-verbs-rw" . | nindent 6 }}
48 | - apiGroups:
49 | - monitoring.coreos.com
50 | resources:
51 | - servicemonitors
52 | verbs:
53 | {{- include "authentik-remote-cluster.api-verbs-rw" . | nindent 6 }}
54 | - apiGroups:
55 | - apiextensions.k8s.io
56 | resources:
57 | - customresourcedefinitions
58 | verbs:
59 | - list
60 |
--------------------------------------------------------------------------------
/charts/authentik/templates/server/route.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.server.enabled }}
2 | {{- $servicePort := ternary .Values.server.service.servicePortHttps .Values.server.service.servicePortHttp .Values.server.ingress.https -}}
3 | {{- range $name, $route := .Values.server.route }}
4 | {{- if $route.enabled }}
5 | apiVersion: {{ $route.apiVersion | default "gateway.networking.k8s.io/v1" }}
6 | kind: {{ $route.kind | default "HTTPRoute" }}
7 | metadata:
8 | name: {{ include "authentik.server.fullname" $ }}{{ if ne $name "main" }}-{{ $name }}{{ end }}
9 | namespace: {{ include "authentik.namespace" $ | quote }}
10 | labels:
11 | {{- include "authentik.labels" (dict "context" $ "component" $.Values.server.name) | nindent 4 }}
12 | {{- with $route.labels }}
13 | {{- toYaml . | nindent 4 }}
14 | {{- end }}
15 | {{- with $route.annotations }}
16 | annotations:
17 | {{- toYaml . | nindent 4 }}
18 | {{- end }}
19 | spec:
20 | {{- with $route.parentRefs }}
21 | parentRefs:
22 | {{- toYaml . | nindent 4 }}
23 | {{- end }}
24 | {{- with $route.hostnames }}
25 | hostnames:
26 | {{- tpl (toYaml .) $ | nindent 4 }}
27 | {{- end }}
28 | rules:
29 | {{- if $route.additionalRules }}
30 | {{- tpl (toYaml $route.additionalRules) $ | nindent 4 }}
31 | {{- end }}
32 | {{- if $route.httpsRedirect }}
33 | - filters:
34 | - type: RequestRedirect
35 | requestRedirect:
36 | scheme: https
37 | statusCode: 301
38 | {{- else }}
39 | - backendRefs:
40 | - name: {{ include "authentik.server.fullname" $ }}
41 | port: {{ $servicePort }}
42 | {{- with $route.filters }}
43 | filters:
44 | {{- toYaml . | nindent 8 }}
45 | {{- end }}
46 | {{- with $route.matches }}
47 | matches:
48 | {{- tpl (toYaml .) $ | nindent 8 }}
49 | {{- end }}
50 | {{- end }}
51 | {{- end }}
52 | ---
53 | {{- end }}
54 | {{- end }}
55 |
--------------------------------------------------------------------------------
/charts/authentik-remote-cluster/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ---
6 |
7 | [](https://goauthentik.io/discord)
8 | 
9 | 
10 |
11 | RBAC required for a remote cluster to be connected to authentik.
12 |
13 | **Homepage:**
14 |
15 | ## Maintainers
16 |
17 | | Name | Email | Url |
18 | | ---- | ------ | --- |
19 | | authentik Team | | |
20 |
21 | ## Source Code
22 |
23 | *
24 | *
25 |
26 | ## Values
27 |
28 | | Key | Type | Default | Description |
29 | |-----|------|---------|-------------|
30 | | annotations | object | `{}` | Annotations to apply to all resources |
31 | | clusterRole.enabled | bool | `true` | Create a clusterole in addition to a namespaced role. |
32 | | fullnameOverride | string | `""` | String to fully override `"authentik.fullname"`. Prefer using global.fullnameOverride if possible |
33 | | global.additionalLabels | object | `{}` | Common labels for all resources. |
34 | | global.fullnameOverride | string | `""` | String to fully override `"authentik.fullname"` |
35 | | global.nameOverride | string | `""` | Provide a name in place of `authentik` |
36 | | global.namespaceOverride | string | `""` | A custom namespace to override the default namespace for the deployed resources. |
37 | | kubeVersionOverride | string | `""` | Override the Kubernetes version, which is used to evaluate certain manifests |
38 | | nameOverride | string | `""` | Provide a name in place of `authentik`. Prefer using global.nameOverride if possible |
39 | | serviceAccountSecret.enabled | bool | `true` | Create a secret with the service account credentials |
40 |
--------------------------------------------------------------------------------
/charts/authentik/templates/worker/servicemonitor.yaml:
--------------------------------------------------------------------------------
1 | {{- if and .Values.worker.enabled .Values.worker.metrics.enabled .Values.worker.metrics.serviceMonitor.enabled }}
2 | apiVersion: monitoring.coreos.com/v1
3 | kind: ServiceMonitor
4 | metadata:
5 | name: {{ include "authentik.worker.fullname" . }}
6 | namespace: {{ .Values.worker.metrics.serviceMonitor.namespace | default (include "authentik.namespace" .) | quote }}
7 | labels:
8 | {{- include "authentik.labels" (dict "context" . "component" (printf "%s-metrics" .Values.worker.name)) | nindent 4 }}
9 | {{- with .Values.worker.metrics.serviceMonitor.selector }}
10 | {{- toYaml . | nindent 4 }}
11 | {{- end }}
12 | {{- with .Values.worker.metrics.serviceMonitor.labels }}
13 | {{- toYaml . | nindent 4 }}
14 | {{- end }}
15 | {{- with .Values.worker.metrics.serviceMonitor.annotations }}
16 | annotations:
17 | {{- toYaml . | nindent 4 }}
18 | {{- end }}
19 | spec:
20 | endpoints:
21 | - port: {{ .Values.worker.metrics.service.portName }}
22 | {{- with .Values.worker.metrics.serviceMonitor.interval }}
23 | interval: {{ . }}
24 | {{- end }}
25 | {{- with .Values.worker.metrics.serviceMonitor.scrapeTimeout }}
26 | scrapeTimeout: {{ . }}
27 | {{- end }}
28 | path: /metrics
29 | {{- with .Values.worker.metrics.serviceMonitor.relabelings }}
30 | relabelings:
31 | {{- toYaml . | nindent 8 }}
32 | {{- end }}
33 | {{- with .Values.worker.metrics.serviceMonitor.metricRelabelings }}
34 | metricRelabelings:
35 | {{- toYaml . | nindent 8 }}
36 | {{- end }}
37 | {{- with .Values.worker.metrics.serviceMonitor.scheme }}
38 | scheme: {{ . }}
39 | {{- end }}
40 | {{- with .Values.worker.metrics.serviceMonitor.tlsConfig }}
41 | tlsConfig:
42 | {{- toYaml . | nindent 8 }}
43 | {{- end }}
44 | namespaceSelector:
45 | matchNames:
46 | - {{ include "authentik.namespace" . }}
47 | selector:
48 | matchLabels:
49 | {{- include "authentik.selectorLabels" (dict "context" . "component" (printf "%s-metrics" .Values.worker.name)) | nindent 6 }}
50 | {{- end }}
51 |
--------------------------------------------------------------------------------
/charts/authentik/templates/server/servicemonitor.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.server.enabled }}
2 | {{- if and .Values.server.metrics.enabled .Values.server.metrics.serviceMonitor.enabled }}
3 | apiVersion: monitoring.coreos.com/v1
4 | kind: ServiceMonitor
5 | metadata:
6 | name: {{ include "authentik.server.fullname" . }}
7 | namespace: {{ .Values.server.metrics.serviceMonitor.namespace | default (include "authentik.namespace" .) | quote }}
8 | labels:
9 | {{- include "authentik.labels" (dict "context" . "component" (printf "%s-metrics" .Values.server.name)) | nindent 4 }}
10 | {{- with .Values.server.metrics.serviceMonitor.selector }}
11 | {{- toYaml . | nindent 4 }}
12 | {{- end }}
13 | {{- with .Values.server.metrics.serviceMonitor.labels }}
14 | {{- toYaml . | nindent 4 }}
15 | {{- end }}
16 | {{- with .Values.server.metrics.serviceMonitor.annotations }}
17 | annotations:
18 | {{- toYaml . | nindent 4 }}
19 | {{- end }}
20 | spec:
21 | endpoints:
22 | - port: {{ .Values.server.metrics.service.portName }}
23 | {{- with .Values.server.metrics.serviceMonitor.interval }}
24 | interval: {{ . }}
25 | {{- end }}
26 | {{- with .Values.server.metrics.serviceMonitor.scrapeTimeout }}
27 | scrapeTimeout: {{ . }}
28 | {{- end }}
29 | path: /metrics
30 | {{- with .Values.server.metrics.serviceMonitor.relabelings }}
31 | relabelings:
32 | {{- toYaml . | nindent 8 }}
33 | {{- end }}
34 | {{- with .Values.server.metrics.serviceMonitor.metricRelabelings }}
35 | metricRelabelings:
36 | {{- toYaml . | nindent 8 }}
37 | {{- end }}
38 | {{- with .Values.server.metrics.serviceMonitor.scheme }}
39 | scheme: {{ . }}
40 | {{- end }}
41 | {{- with .Values.server.metrics.serviceMonitor.tlsConfig }}
42 | tlsConfig:
43 | {{- toYaml . | nindent 8 }}
44 | {{- end }}
45 | namespaceSelector:
46 | matchNames:
47 | - {{ include "authentik.namespace" . }}
48 | selector:
49 | matchLabels:
50 | {{- include "authentik.selectorLabels" (dict "context" . "component" (printf "%s-metrics" .Values.server.name)) | nindent 6 }}
51 | {{- end }}
52 | {{- end }}
53 |
--------------------------------------------------------------------------------
/charts/authentik/Chart.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | apiVersion: v2
3 | version: 2025.10.3
4 | appVersion: 2025.10.3
5 | name: authentik
6 | description: authentik is an open-source Identity Provider focused on flexibility and versatility
7 | type: application
8 | home: https://goauthentik.io
9 | sources:
10 | - https://goauthentik.io/docs/
11 | - https://github.com/goauthentik/authentik
12 | keywords:
13 | - authentication
14 | - directory
15 | - identity
16 | - idp
17 | - ldap
18 | - oauth
19 | - oidc
20 | - proxy
21 | - saml
22 | - scim
23 | - single-sign-on
24 | - sp
25 | - sso
26 | icon: https://goauthentik.io/img/icon.png
27 | maintainers:
28 | - name: authentik Team
29 | email: hello@goauthentik.io
30 | url: https://goauthentik.io
31 | dependencies:
32 | - name: postgresql
33 | version: 16.7.27
34 | repository: oci://registry-1.docker.io/bitnamicharts
35 | condition: postgresql.enabled
36 | - name: authentik-remote-cluster
37 | repository: https://charts.goauthentik.io
38 | version: 2.1.0
39 | condition: serviceAccount.create
40 | alias: serviceAccount
41 | annotations:
42 | artifacthub.io/changes: |
43 | - kind: changed
44 | description: upgrade to authentik 2025.10.3
45 | artifacthub.io/license: GPL
46 | artifacthub.io/links: |
47 | - name: GitHub
48 | url: https://github.com/goauthentik/authentik
49 | - name: Docs
50 | url: https://goauthentik.io/docs/
51 | artifacthub.io/maintainers: |
52 | - name: authentik Team
53 | email: hello@goauthentik.io
54 | url: https://goauthentik.io
55 | artifacthub.io/images: |
56 | - name: authentik
57 | image: ghcr.io/goauthentik/server:2025.10.3
58 | whitelisted: true
59 | - name: authentik-outpost-proxy
60 | image: ghcr.io/goauthentik/proxy:2025.10.3
61 | whitelisted: true
62 | - name: authentik-outpost-ldap
63 | image: ghcr.io/goauthentik/ldap:2025.10.3
64 | whitelisted: true
65 | - name: authentik-outpost-radius
66 | image: ghcr.io/goauthentik/radius:2025.10.3
67 | whitelisted: true
68 | - name: authentik-outpost-rac
69 | image: ghcr.io/goauthentik/rac:2025.10.3
70 | whitelisted: true
71 | artifacthub.io/screenshots: |
72 | - title: User interface
73 | url: https://docs.goauthentik.io/img/screen_apps_light.jpg
74 | - title: Admin interface
75 | url: https://docs.goauthentik.io/img/screen_admin_light.jpg
76 |
--------------------------------------------------------------------------------
/.github/workflows/lint-test.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | name: "Lint and Test Chart"
3 |
4 | on:
5 | push:
6 | branches:
7 | - main
8 | pull_request:
9 |
10 | jobs:
11 | linter-artifacthub:
12 | runs-on: ubuntu-latest
13 | container:
14 | image: public.ecr.aws/artifacthub/ah:v1.22.0
15 | options: --user 1001
16 | steps:
17 | - name: Checkout
18 | uses: actions/checkout@v6
19 | - name: Run ah lint
20 | working-directory: ./charts
21 | run: ah lint
22 |
23 | lint-and-test:
24 | runs-on: ubuntu-latest
25 | steps:
26 | - name: Checkout
27 | uses: actions/checkout@v6
28 | with:
29 | fetch-depth: 0
30 |
31 | - name: Set up Helm
32 | uses: azure/setup-helm@v4
33 |
34 | - name: Set up python
35 | uses: actions/setup-python@v6
36 | with:
37 | python-version: "3.14"
38 |
39 | - name: Setup Chart Linting
40 | id: lint
41 | uses: helm/chart-testing-action@v2.8.0
42 |
43 | - name: List changed charts
44 | id: list-changed
45 | run: |
46 | changed=$(ct --config ./.github/configs/ct-lint.yaml list-changed)
47 | charts=$(echo "$changed" | tr '\n' ' ' | xargs)
48 | if [[ -n "$changed" ]]; then
49 | echo "changed=true" >> $GITHUB_OUTPUT
50 | echo "changed_charts=$charts" >> $GITHUB_OUTPUT
51 | fi
52 |
53 | - name: Run chart-testing (lint)
54 | run: ct lint --debug --config ./.github/configs/ct-lint.yaml --lint-conf ./.github/configs/lintconf.yaml
55 |
56 | - name: Run docs-testing (helm-docs)
57 | id: helm-docs
58 | run: |
59 | ./scripts/helm-docs.sh
60 | if [[ $(git diff --stat) != '' ]]; then
61 | echo -e '\033[0;31mDocumentation outdated!\033[0m ❌'
62 | git diff --color
63 | exit 1
64 | else
65 | echo -e '\033[0;32mDocumentation up to date\033[0m ✔'
66 | fi
67 |
68 | - name: Create kind cluster
69 | uses: helm/kind-action@v1.13.0
70 | if: steps.list-changed.outputs.changed == 'true'
71 |
72 | - name: Run chart-testing (install)
73 | run: |
74 | namespace=authentik-$(uuidgen)
75 | kubectl create ns $namespace
76 | kubectl apply -n $namespace -f charts/authentik/ci/manifests/
77 | ct install --namespace=$namespace --config ./.github/configs/ct-install.yaml
78 | if: steps.list-changed.outputs.changed == 'true'
79 |
--------------------------------------------------------------------------------
/charts/authentik/templates/server/ingress.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.server.enabled }}
2 | {{- if .Values.server.ingress.enabled -}}
3 | {{- $servicePort := ternary .Values.server.service.servicePortHttps .Values.server.service.servicePortHttp .Values.server.ingress.https -}}
4 | {{- $paths := .Values.server.ingress.paths -}}
5 | {{- $extraPaths := .Values.server.ingress.extraPaths -}}
6 | {{- $pathType := .Values.server.ingress.pathType -}}
7 | apiVersion: networking.k8s.io/v1
8 | kind: Ingress
9 | metadata:
10 | name: {{ include "authentik.server.fullname" . }}
11 | namespace: {{ include "authentik.namespace" . | quote }}
12 | labels:
13 | {{- include "authentik.labels" (dict "context" . "component" .Values.server.name) | nindent 4 }}
14 | {{- with .Values.server.ingress.labels }}
15 | {{- toYaml . | nindent 4 }}
16 | {{- end }}
17 | {{- with .Values.server.ingress.annotations }}
18 | annotations:
19 | {{- toYaml . | nindent 4 }}
20 | {{- end }}
21 | spec:
22 | {{- with .Values.server.ingress.ingressClassName }}
23 | ingressClassName: {{ . }}
24 | {{- end }}
25 | rules:
26 | {{- if .Values.server.ingress.hosts }}
27 | {{- range $host := .Values.server.ingress.hosts }}
28 | - host: {{ $host | quote }}
29 | http:
30 | paths:
31 | {{- with $extraPaths }}
32 | {{- toYaml . | nindent 10 }}
33 | {{- end }}
34 | {{- range $p := $paths }}
35 | - path: {{ tpl (toYaml $p) $ }}
36 | pathType: {{ $pathType }}
37 | backend:
38 | service:
39 | name: {{ include "authentik.server.fullname" $ }}
40 | port:
41 | {{- if kindIs "float64" $servicePort }}
42 | number: {{ $servicePort }}
43 | {{- else }}
44 | name: {{ $servicePort }}
45 | {{- end }}
46 | {{- end -}}
47 | {{- end -}}
48 | {{- else }}
49 | - http:
50 | paths:
51 | {{- with $extraPaths }}
52 | {{- toYaml . | nindent 10 }}
53 | {{- end }}
54 | {{- range $p := $paths }}
55 | - path: {{ tpl (toYaml $p) $ }}
56 | pathType: {{ $pathType }}
57 | backend:
58 | service:
59 | name: {{ include "authentik.server.fullname" $ }}
60 | port:
61 | {{- if kindIs "float64" $servicePort }}
62 | number: {{ $servicePort }}
63 | {{- else }}
64 | name: {{ $servicePort }}
65 | {{- end }}
66 | {{- end -}}
67 | {{- end -}}
68 | {{- with .Values.server.ingress.tls }}
69 | tls:
70 | {{- toYaml . | nindent 4 }}
71 | {{- end }}
72 | {{- end }}
73 | {{- end }}
74 |
--------------------------------------------------------------------------------
/charts/authentik-remote-cluster/templates/_helpers.tpl:
--------------------------------------------------------------------------------
1 | {{/* vim: set filetype=mustache: */}}
2 |
3 | {{/*
4 | Expand the name of the chart
5 | */}}
6 | {{- define "authentik-remote-cluster.name" -}}
7 | {{- $globalNameOverride := "" -}}
8 | {{- if hasKey .Values "global" -}}
9 | {{- $globalNameOverride = (default $globalNameOverride .Values.global.nameOverride) -}}
10 | {{- end -}}
11 | {{- default .Chart.Name (default .Values.nameOverride $globalNameOverride) | trunc 63 | trimSuffix "-" -}}
12 | {{- end -}}
13 |
14 | {{/*
15 | Determine the namespace to use, allowing for a namespace override.
16 | */}}
17 | {{- define "authauthentik-remote-cluster.namespace" -}}
18 | {{- if .Values.namespaceOverride }}
19 | {{- .Values.namespaceOverride }}
20 | {{- else }}
21 | {{- .Release.Namespace }}
22 | {{- end }}
23 | {{- end }}
24 |
25 | {{/*
26 | Create a default fully qualified app name.
27 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
28 | If release name contains chart name it will be used as a full name.
29 | */}}
30 | {{- define "authentik-remote-cluster.fullname" -}}
31 | {{- $name := include "authentik-remote-cluster.name" . -}}
32 | {{- $globalFullNameOverride := "" -}}
33 | {{- if hasKey .Values "global" -}}
34 | {{- $globalFullNameOverride = (default $globalFullNameOverride .Values.global.fullnameOverride) -}}
35 | {{- end -}}
36 | {{- if or .Values.fullnameOverride $globalFullNameOverride -}}
37 | {{- $name = default .Values.fullnameOverride $globalFullNameOverride -}}
38 | {{- else -}}
39 | {{- if contains $name .Release.Name -}}
40 | {{- $name = .Release.Name -}}
41 | {{- else -}}
42 | {{- $name = printf "%s-%s" .Release.Name $name -}}
43 | {{- end -}}
44 | {{- end -}}
45 | {{- trunc 63 $name | trimSuffix "-" -}}
46 | {{- end -}}
47 |
48 | {{/*
49 | Create chart name and version as used by the chart label.
50 | */}}
51 | {{- define "authentik-remote-cluster.chart" -}}
52 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
53 | {{- end }}
54 |
55 | {{/*
56 | Common labels
57 | */}}
58 | {{- define "authentik-remote-cluster.labels" -}}
59 | helm.sh/chart: {{ include "authentik-remote-cluster.chart" .context | quote }}
60 | app.kubernetes.io/name: {{ include "authentik-remote-cluster.name" .context | quote }}
61 | app.kubernetes.io/instance: {{ .context.Release.Name | quote }}
62 | app.kubernetes.io/managed-by: {{ .context.Release.Service | quote }}
63 | app.kubernetes.io/part-of: "authentik"
64 | app.kubernetes.io/version: {{ .context.Chart.Version | quote }}
65 | {{- with .context.Values.global.additionalLabels }}
66 | {{ toYaml . }}
67 | {{- end }}
68 | {{- end }}
69 |
70 | {{- define "authentik-remote-cluster.api-verbs-rw" -}}
71 | - get
72 | - create
73 | - delete
74 | - list
75 | - patch
76 | {{- end -}}
77 |
--------------------------------------------------------------------------------
/charts/authentik/templates/_common.tpl:
--------------------------------------------------------------------------------
1 | {{/* vim: set filetype=mustache: */}}
2 |
3 | {{/*
4 | Expand the name of the chart
5 | */}}
6 | {{- define "authentik.name" -}}
7 | {{- $globalNameOverride := "" -}}
8 | {{- if hasKey .Values "global" -}}
9 | {{- $globalNameOverride = (default $globalNameOverride .Values.global.nameOverride) -}}
10 | {{- end -}}
11 | {{- default .Chart.Name (default .Values.nameOverride $globalNameOverride) | trunc 63 | trimSuffix "-" -}}
12 | {{- end -}}
13 |
14 | {{/*
15 | Create a default fully qualified app name.
16 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
17 | If release name contains chart name it will be used as a full name.
18 | */}}
19 | {{- define "authentik.fullname" -}}
20 | {{- $name := include "authentik.name" . -}}
21 | {{- $globalFullNameOverride := "" -}}
22 | {{- if hasKey .Values "global" -}}
23 | {{- $globalFullNameOverride = (default $globalFullNameOverride .Values.global.fullnameOverride) -}}
24 | {{- end -}}
25 | {{- if or .Values.fullnameOverride $globalFullNameOverride -}}
26 | {{- $name = default .Values.fullnameOverride $globalFullNameOverride -}}
27 | {{- else -}}
28 | {{- if contains $name .Release.Name -}}
29 | {{- $name = .Release.Name -}}
30 | {{- else -}}
31 | {{- $name = printf "%s-%s" .Release.Name $name -}}
32 | {{- end -}}
33 | {{- end -}}
34 | {{- trunc 63 $name | trimSuffix "-" -}}
35 | {{- end -}}
36 |
37 | {{/*
38 | Create chart name and version as used by the chart label
39 | */}}
40 | {{- define "authentik.chart" -}}
41 | {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
42 | {{- end -}}
43 |
44 | {{/*
45 | Create Authentik app version
46 | */}}
47 | {{- define "authentik.defaultTag" -}}
48 | {{- default .Chart.AppVersion .Values.global.image.tag }}
49 | {{- end -}}
50 |
51 | {{/*
52 | Return valid version label
53 | */}}
54 | {{- define "authentik.versionLabelValue" -}}
55 | {{ regexReplaceAll "[^-A-Za-z0-9_.]" (include "authentik.defaultTag" .) "-" | trunc 63 | trimAll "-" | trimAll "_" | trimAll "." | quote }}
56 | {{- end -}}
57 |
58 | {{/*
59 | Common labels
60 | */}}
61 | {{- define "authentik.labels" -}}
62 | helm.sh/chart: {{ include "authentik.chart" .context | quote }}
63 | {{ include "authentik.selectorLabels" (dict "context" .context "component" .component) }}
64 | app.kubernetes.io/managed-by: {{ .context.Release.Service | quote }}
65 | app.kubernetes.io/part-of: "authentik"
66 | app.kubernetes.io/version: {{ include "authentik.versionLabelValue" .context }}
67 | {{- with .context.Values.global.additionalLabels }}
68 | {{ toYaml . }}
69 | {{- end }}
70 | {{- end }}
71 |
72 | {{/*
73 | Selector labels
74 | */}}
75 | {{- define "authentik.selectorLabels" -}}
76 | app.kubernetes.io/name: {{ include "authentik.name" .context | quote }}
77 | app.kubernetes.io/instance: {{ .context.Release.Name | quote }}
78 | {{- if .component }}
79 | app.kubernetes.io/component: {{ .component | quote }}
80 | {{- end }}
81 | {{- end }}
82 |
--------------------------------------------------------------------------------
/charts/authentik/templates/server/service.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.server.enabled }}
2 | apiVersion: v1
3 | kind: Service
4 | metadata:
5 | name: {{ include "authentik.server.fullname" . }}
6 | namespace: {{ include "authentik.namespace" . | quote }}
7 | labels:
8 | {{- include "authentik.labels" (dict "context" . "component" .Values.server.name) | nindent 4 }}
9 | {{- with .Values.server.service.labels }}
10 | {{- toYaml . | nindent 4 }}
11 | {{- end }}
12 | {{- with .Values.server.service.annotations }}
13 | annotations:
14 | {{- toYaml . | nindent 4 }}
15 | {{- end }}
16 | spec:
17 | type: {{ .Values.server.service.type }}
18 | ports:
19 | - name: {{ .Values.server.service.servicePortHttpName }}
20 | protocol: TCP
21 | port: {{ .Values.server.service.servicePortHttp }}
22 | targetPort: {{ .Values.server.containerPorts.http }}
23 | {{- if eq .Values.server.service.type "NodePort" }}
24 | nodePort: {{ .Values.server.service.nodePortHttp }}
25 | {{- end }}
26 | {{- with .Values.server.service.servicePortHttpAppProtocol }}
27 | appProtocol: {{ . }}
28 | {{- end }}
29 | - name: {{ .Values.server.service.servicePortHttpsName }}
30 | protocol: TCP
31 | port: {{ .Values.server.service.servicePortHttps }}
32 | targetPort: {{ .Values.server.containerPorts.https }}
33 | {{- if eq .Values.server.service.type "NodePort" }}
34 | nodePort: {{ .Values.server.service.nodePortHttps }}
35 | {{- end }}
36 | {{- with .Values.server.service.servicePortHttpsAppProtocol }}
37 | appProtocol: {{ . }}
38 | {{- end }}
39 | selector:
40 | {{- include "authentik.selectorLabels" (dict "context" . "component" .Values.server.name) | nindent 4 }}
41 | {{- if eq .Values.server.service.type "LoadBalancer" }}
42 | {{- if .Values.server.service.loadBalancerIP }}
43 | loadBalancerIP: {{ .Values.server.service.loadBalancerIP | quote }}
44 | {{- end }}
45 | {{- if .Values.server.service.externalIPs }}
46 | externalIPs: {{ .Values.server.service.externalIPs }}
47 | {{- end }}
48 | {{- if .Values.server.service.loadBalancerSourceRanges }}
49 | loadBalancerSourceRanges:
50 | {{ toYaml .Values.server.service.loadBalancerSourceRanges | indent 4 }}
51 | {{- end }}
52 | {{- end -}}
53 | {{- if eq .Values.server.service.type "ClusterIP" }}
54 | {{- if .Values.server.service.clusterIP }}
55 | clusterIP: {{ .Values.server.service.clusterIP | quote }}
56 | {{- end }}
57 | {{- end -}}
58 | {{- with .Values.server.service.externalTrafficPolicy }}
59 | externalTrafficPolicy: {{ . }}
60 | {{- end }}
61 | {{- with .Values.server.service.sessionAffinity }}
62 | sessionAffinity: {{ . }}
63 | {{- end }}
64 | {{- with .Values.server.service.sessionAffinityConfig }}
65 | sessionAffinityConfig:
66 | {{- toYaml . | nindent 4 }}
67 | {{- end }}
68 | {{- with .Values.server.service.publishNotReadyAddresses }}
69 | publishNotReadyAddresses: {{ . }}
70 | {{- end }}
71 | {{- end }}
72 |
--------------------------------------------------------------------------------
/charts/authentik/README.md.gotmpl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ---
6 |
7 | [](https://goauthentik.io/discord)
8 | [](https://github.com/goauthentik/helm/actions/workflows/lint-test.yaml)
9 | {{ template "chart.versionBadge" . }}
10 | {{ template "chart.appVersionBadge" . }}
11 |
12 | {{ template "chart.deprecationWarning" . }}
13 |
14 | {{ template "chart.description" . }}
15 |
16 | {{ template "chart.homepageLine" . }}
17 |
18 | ## Example values to get started:
19 |
20 | ```yaml
21 | authentik:
22 | secret_key: "PleaseGenerateA50CharKey"
23 | # This sends anonymous usage-data, stack traces on errors and
24 | # performance data to authentik.error-reporting.a7k.io, and is fully opt-in
25 | error_reporting:
26 | enabled: true
27 | postgresql:
28 | password: "ThisIsNotASecurePassword"
29 |
30 | server:
31 | ingress:
32 | enabled: true
33 | hosts:
34 | - authentik.domain.tld
35 |
36 | postgresql:
37 | enabled: true
38 | auth:
39 | password: "ThisIsNotASecurePassword"
40 | ```
41 |
42 | ## Advanced values examples
43 |
44 |
45 | External PostgreSQL
46 |
47 | ```yaml
48 | authentik:
49 | postgresql:
50 | host: postgres.domain.tld
51 | user: file:///postgres-creds/username
52 | password: file:///postgres-creds/password
53 | server:
54 | volumes:
55 | - name: postgres-creds
56 | secret:
57 | secretName: authentik-postgres-credentials
58 | volumeMounts:
59 | - name: postgres-creds
60 | mountPath: /postgres-creds
61 | readOnly: true
62 | worker:
63 | volumes:
64 | - name: postgres-creds
65 | secret:
66 | secretName: authentik-postgres-credentials
67 | volumeMounts:
68 | - name: postgres-creds
69 | mountPath: /postgres-creds
70 | readOnly: true
71 | ```
72 |
73 | The secret `authentik-postgres-credentials` must have `username` and `password` keys.
74 |
75 |
76 | {{ template "chart.maintainersSection" . }}
77 |
78 | {{ template "chart.sourcesSection" . }}
79 |
80 | {{ template "chart.requirementsSection" . }}
81 |
82 | {{ template "chart.valuesSection" . }}
83 |
84 | ---
85 | [affinity]: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
86 | [DNS configuration]: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
87 | [HPA]: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
88 | [MetricRelabelConfigs]: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs
89 | [Node selector]: https://kubernetes.io/docs/user-guide/node-selection/
90 | [PodDisruptionBudget]: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/#pod-disruption-budgets
91 | [probe]: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
92 | [RelabelConfigs]: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
93 | [Tolerations]: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
94 | [TopologySpreadConstraints]: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
95 | [values.yaml]: values.yaml
96 |
--------------------------------------------------------------------------------
/charts/authentik/templates/deprectations.yaml:
--------------------------------------------------------------------------------
1 | {{ if .Values.image }}
2 | {{ required "`image` is deprecated. See the release notes for a list of changes." .Values.undefined }}
3 | {{ end }}
4 |
5 | {{ if .Values.global.image.pullSecrets }}
6 | {{ required "`global.image.pullSecrets` does not exist. See the release notes for a list of changes." .Values.undefined }}
7 | {{ end }}
8 |
9 | {{ if .Values.annotations }}
10 | {{ required "`annotations` is deprecated. See the release notes for a list of changes." .Values.undefined }}
11 | {{ end }}
12 |
13 | {{ if .Values.podAnnotations }}
14 | {{ required "`podAnnotations` is deprecated. See the release notes for a list of changes." .Values.undefined }}
15 | {{ end }}
16 |
17 | {{ if .Values.nodeSelector }}
18 | {{ required "`nodeSelector` is deprecated. See the release notes for a list of changes." .Values.undefined }}
19 | {{ end }}
20 |
21 | {{ if .Values.tolerations }}
22 | {{ required "`tolerations` is deprecated. See the release notes for a list of changes." .Values.undefined }}
23 | {{ end }}
24 |
25 | {{ if .Values.affinity }}
26 | {{ required "`affinity` is deprecated. See the release notes for a list of changes." .Values.undefined }}
27 | {{ end }}
28 |
29 | {{ if or .Values.env .Values.envValueFrom .Values.envFrom }}
30 | {{ required "`env`, `envValueFrom` and `envFrom` are deprecated. See the release notes for a list of changes." .Values.undefined }}
31 | {{ end }}
32 |
33 | {{ if or .Values.additionalContainers .Values.initContainers }}
34 | {{ required "`additionalContainers` and `initContainers` are deprecated. See the release notes for a list of changes." .Values.undefined }}
35 | {{ end }}
36 |
37 | {{ if or .Values.volumes .Values.volumeMounts }}
38 | {{ required "`volumes` and `volumeMounts` are deprecated. See the release notes for a list of changes." .Values.undefined }}
39 | {{ end }}
40 |
41 | {{ if .Values.replicas }}
42 | {{ required "`replicas` is deprecated. See the release notes for a list of changes." .Values.undefined }}
43 | {{ end }}
44 |
45 | {{ if .Values.strategy }}
46 | {{ required "`strategy` is deprecated. See the release notes for a list of changes." .Values.undefined }}
47 | {{ end }}
48 |
49 | {{ if .Values.priorityClassName }}
50 | {{ required "`priorityClassName` is deprecated. See the release notes for a list of changes." .Values.undefined }}
51 | {{ end }}
52 |
53 | {{ if .Values.containerSecurityContext }}
54 | {{ required "`containerSecurityContext` is deprecated. See the release notes for a list of changes." .Values.undefined }}
55 | {{ end }}
56 |
57 | {{ if or .Values.livenessProbe .Values.readinessProbe .Values.startupProbe }}
58 | {{ required "`livenessProbe`, `readinessProbe` and `startupProbe` are deprecated. See the release notes for a list of changes." .Values.undefined }}
59 | {{ end }}
60 |
61 | {{ if .Values.autoscaling }}
62 | {{ required "`autoscaling` is deprecated. See the release notes for a list of changes." .Values.undefined }}
63 | {{ end }}
64 |
65 | {{ if .Values.pdb }}
66 | {{ required "`pdb` is deprecated. See the release notes for a list of changes." .Values.undefined }}
67 | {{ end }}
68 |
69 | {{ if .Values.resources }}
70 | {{ required "`resources` is deprecated. See the release notes for a list of changes." .Values.undefined }}
71 | {{ end }}
72 |
73 | {{ if .Values.service }}
74 | {{ required "`service` is deprecated. See the release notes for a list of changes." .Values.undefined }}
75 | {{ end }}
76 |
77 | {{ if .Values.prometheus.serviceMonitor }}
78 | {{ required "`prometheus.serviceMonitor` is deprecated. See the release notes for a list of changes." .Values.undefined }}
79 | {{ end }}
80 |
81 | {{ if .Values.prometheus.rules.create }}
82 | {{ required "`prometheus.rules.create` is deprecated. See the release notes for a list of changes." .Values.undefined }}
83 | {{ end }}
84 |
85 | {{ if .Values.ingress }}
86 | {{ required "`ingress` is deprecated. See the release notes for a list of changes." .Values.undefined }}
87 | {{ end }}
88 |
--------------------------------------------------------------------------------
/charts/authentik/templates/_helpers.tpl:
--------------------------------------------------------------------------------
1 | {{/* vim: set filetype=mustache: */}}
2 |
3 | {{/*
4 | Create authentik server name and version as used by the chart label.
5 | */}}
6 | {{- define "authentik.server.fullname" -}}
7 | {{- printf "%s-%s" (include "authentik.fullname" .) .Values.server.name | trunc 63 | trimSuffix "-" -}}
8 | {{- end -}}
9 |
10 | {{/*
11 | Create authentik server worker and version as used by the chart label.
12 | */}}
13 | {{- define "authentik.worker.fullname" -}}
14 | {{- printf "%s-%s" (include "authentik.fullname" .) .Values.worker.name | trunc 63 | trimSuffix "-" -}}
15 | {{- end -}}
16 |
17 | {{/*
18 | Determine the namespace to use, allowing for a namespace override.
19 | */}}
20 | {{- define "authentik.namespace" -}}
21 | {{- if .Values.namespaceOverride }}
22 | {{- .Values.namespaceOverride }}
23 | {{- else }}
24 | {{- .Release.Namespace }}
25 | {{- end }}
26 | {{- end }}
27 |
28 | {{/*
29 | Create authentik configuration environment variables.
30 | */}}
31 | {{- define "authentik.env" -}}
32 | {{- range $k, $v := .values -}}
33 | {{- if kindIs "map" $v -}}
34 | {{- range $sk, $sv := $v -}}
35 | {{- include "authentik.env" (dict "root" $.root "values" (dict (printf "%s__%s" (upper $k) (upper $sk)) $sv)) -}}
36 | {{- end -}}
37 | {{- else -}}
38 | {{- $value := $v -}}
39 | {{- if or (kindIs "bool" $v) (kindIs "float64" $v) (kindIs "int" $v) (kindIs "int64" $v) -}}
40 | {{- $v = $v | toString | b64enc | quote -}}
41 | {{- else -}}
42 | {{- $v = tpl (toString $v) $.root | toString | b64enc | quote }}
43 | {{- end -}}
44 | {{- if and ($v) (ne $v "\"\"") }}
45 | {{ printf "AUTHENTIK_%s" (upper $k) }}: {{ $v }}
46 | {{- end }}
47 | {{- end -}}
48 | {{- end -}}
49 | {{- end -}}
50 |
51 | {{/*
52 | Common deployment strategy definition
53 | - Recreate doesn't have additional fields, we need to remove them if added by the mergeOverwrite
54 | */}}
55 | {{- define "authentik.strategy" -}}
56 | {{- $preset := . -}}
57 | {{- if (eq (toString $preset.type) "Recreate") }}
58 | type: Recreate
59 | {{- else if (eq (toString $preset.type) "RollingUpdate") }}
60 | type: RollingUpdate
61 | {{- with $preset.rollingUpdate }}
62 | rollingUpdate:
63 | {{- toYaml . | nindent 2 }}
64 | {{- end }}
65 | {{- end }}
66 | {{- end -}}
67 |
68 | {{/*
69 | Common affinity definition
70 | Pod affinity
71 | - Soft prefers different nodes
72 | - Hard requires different nodes and prefers different availibility zones
73 | Node affinity
74 | - Soft prefers given user expressions
75 | - Hard requires given user expressions
76 | */}}
77 | {{- define "authentik.affinity" -}}
78 | {{- with .component.affinity -}}
79 | {{- toYaml . -}}
80 | {{- else -}}
81 | {{- $preset := .context.Values.global.affinity -}}
82 | {{- if (eq $preset.podAntiAffinity "soft") }}
83 | podAntiAffinity:
84 | preferredDuringSchedulingIgnoredDuringExecution:
85 | - weight: 100
86 | podAffinityTerm:
87 | labelSelector:
88 | matchLabels:
89 | {{- include "authentik.selectorLabels" (dict "context" .context "component" .component.name) | nindent 12 }}
90 | topologyKey: kubernetes.io/hostname
91 | {{- else if (eq $preset.podAntiAffinity "hard") }}
92 | podAntiAffinity:
93 | preferredDuringSchedulingIgnoredDuringExecution:
94 | - weight: 100
95 | podAffinityTerm:
96 | labelSelector:
97 | matchLabels:
98 | {{- include "authentik.selectorLabels" (dict "context" .context "component" .component.name) | nindent 12 }}
99 | topologyKey: topology.kubernetes.io/zone
100 | requiredDuringSchedulingIgnoredDuringExecution:
101 | - labelSelector:
102 | matchLabels:
103 | {{- include "authentik.selectorLabels" (dict "context" .context "component" .component.name) | nindent 10 }}
104 | topologyKey: kubernetes.io/hostname
105 | {{- end }}
106 | {{- with $preset.nodeAffinity.matchExpressions }}
107 | {{- if (eq $preset.nodeAffinity.type "soft") }}
108 | nodeAffinity:
109 | preferredDuringSchedulingIgnoredDuringExecution:
110 | - weight: 1
111 | preference:
112 | matchExpressions:
113 | {{- toYaml . | nindent 10 }}
114 | {{- else if (eq $preset.nodeAffinity.type "hard") }}
115 | nodeAffinity:
116 | requiredDuringSchedulingIgnoredDuringExecution:
117 | nodeSelectorTerms:
118 | - matchExpressions:
119 | {{- toYaml . | nindent 8 }}
120 | {{- end }}
121 | {{- end -}}
122 | {{- end -}}
123 | {{- end -}}
124 |
--------------------------------------------------------------------------------
/charts/authentik/templates/server/deployment.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.server.enabled }}
2 | apiVersion: apps/v1
3 | kind: Deployment
4 | metadata:
5 | name: {{ template "authentik.server.fullname" . }}
6 | namespace: {{ include "authentik.namespace" . | quote }}
7 | labels:
8 | {{- include "authentik.labels" (dict "context" . "component" .Values.server.name) | nindent 4 }}
9 | {{- with (mergeOverwrite (deepCopy .Values.global.deploymentAnnotations) .Values.server.deploymentAnnotations) }}
10 | annotations:
11 | {{- range $key, $value := . }}
12 | {{ $key}}: {{ $value | quote }}
13 | {{- end }}
14 | {{- end }}
15 | spec:
16 | {{- with include "authentik.strategy" (mergeOverwrite (deepCopy .Values.global.deploymentStrategy) .Values.server.deploymentStrategy) }}
17 | strategy:
18 | {{- trim . | nindent 4 }}
19 | {{- end }}
20 | {{- if not .Values.server.autoscaling.enabled }}
21 | replicas: {{ .Values.server.replicas }}
22 | {{- end }}
23 | revisionHistoryLimit: {{ .Values.global.revisionHistoryLimit }}
24 | selector:
25 | matchLabels:
26 | {{- include "authentik.selectorLabels" (dict "context" . "component" .Values.server.name) | nindent 6 }}
27 | template:
28 | metadata:
29 | labels:
30 | {{- include "authentik.labels" (dict "context" . "component" .Values.server.name) | nindent 8 }}
31 | {{- with (mergeOverwrite (deepCopy .Values.global.podLabels) .Values.server.podLabels) }}
32 | {{- toYaml . | nindent 8 }}
33 | {{- end }}
34 | annotations:
35 | checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
36 | {{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.server.podAnnotations) }}
37 | {{- range $key, $value := . }}
38 | {{ $key }}: {{ $value | quote }}
39 | {{- end }}
40 | {{- end }}
41 | spec:
42 | {{- with .Values.server.imagePullSecrets | default .Values.global.imagePullSecrets }}
43 | imagePullSecrets:
44 | {{- toYaml . | nindent 8 }}
45 | {{- end }}
46 | {{- with .Values.server.serviceAccountName }}
47 | serviceAccountName: {{ . }}
48 | {{- end }}
49 | {{- with .Values.global.hostAliases }}
50 | hostAliases:
51 | {{- toYaml . | nindent 8 }}
52 | {{- end }}
53 | {{- with (mergeOverwrite (deepCopy .Values.global.securityContext) .Values.server.securityContext) }}
54 | securityContext:
55 | {{- toYaml . | nindent 8 }}
56 | {{- end }}
57 | {{- with .Values.server.priorityClassName | default .Values.global.priorityClassName }}
58 | priorityClassName: {{ . }}
59 | {{- end }}
60 | {{- if .Values.server.terminationGracePeriodSeconds }}
61 | terminationGracePeriodSeconds: {{ .Values.server.terminationGracePeriodSeconds }}
62 | {{- end }}
63 | {{- with .Values.server.initContainers }}
64 | initContainers:
65 | {{- tpl (toYaml . ) $ | nindent 6 }}
66 | {{- end }}
67 | containers:
68 | - name: {{ .Values.server.name }}
69 | image: {{ default .Values.global.image.repository .Values.server.image.repository }}:{{ default (include "authentik.defaultTag" .) .Values.server.image.tag }}{{- if (default .Values.global.image.digest .Values.server.image.digest) -}}@{{ default .Values.global.image.digest .Values.server.image.digest }}{{- end }}
70 | imagePullPolicy: {{ default .Values.global.image.pullPolicy .Values.server.image.pullPolicy }}
71 | args:
72 | - server
73 | env:
74 | {{- with (concat .Values.global.env .Values.server.env) }}
75 | {{- toYaml . | nindent 12 }}
76 | {{- end }}
77 | - name: AUTHENTIK_LISTEN__HTTP
78 | value: {{ printf "0.0.0.0:%v" .Values.server.containerPorts.http | quote }}
79 | - name: AUTHENTIK_LISTEN__HTTPS
80 | value: {{ printf "0.0.0.0:%v" .Values.server.containerPorts.https | quote }}
81 | - name: AUTHENTIK_LISTEN__METRICS
82 | value: {{ printf "0.0.0.0:%v" .Values.server.containerPorts.metrics | quote }}
83 | envFrom:
84 | - secretRef:
85 | name: {{ template "authentik.fullname" . }}
86 | {{- with (concat .Values.global.envFrom .Values.server.envFrom) }}
87 | {{- toYaml . | nindent 12 }}
88 | {{- end }}
89 | {{- if or .Values.geoip.enabled .Values.global.volumeMounts .Values.server.volumeMounts }}
90 | volumeMounts:
91 | {{- with .Values.global.volumeMounts }}
92 | {{- toYaml . | nindent 12 }}
93 | {{- end }}
94 | {{- with .Values.server.volumeMounts }}
95 | {{- toYaml . | nindent 12 }}
96 | {{- end }}
97 | {{- if .Values.geoip.enabled }}
98 | - name: geoip-db
99 | mountPath: /geoip
100 | {{- end }}
101 | {{- end }}
102 | ports:
103 | - name: http
104 | containerPort: {{ .Values.server.containerPorts.http }}
105 | protocol: TCP
106 | - name: https
107 | containerPort: {{ .Values.server.containerPorts.https }}
108 | protocol: TCP
109 | - name: metrics
110 | containerPort: {{ .Values.server.containerPorts.metrics }}
111 | protocol: TCP
112 | {{- with .Values.server.livenessProbe }}
113 | livenessProbe:
114 | {{ tpl (toYaml .) $ | nindent 12 }}
115 | {{- end }}
116 | {{- with .Values.server.readinessProbe }}
117 | readinessProbe:
118 | {{ tpl (toYaml .) $ | nindent 12 }}
119 | {{- end }}
120 | {{- with .Values.server.startupProbe }}
121 | startupProbe:
122 | {{ tpl (toYaml .) $ | nindent 12 }}
123 | {{- end }}
124 | resources:
125 | {{- toYaml .Values.server.resources | nindent 12 }}
126 | {{- with .Values.server.containerSecurityContext }}
127 | securityContext:
128 | {{- toYaml . | nindent 12 }}
129 | {{- end }}
130 | {{- with .Values.server.lifecycle }}
131 | lifecycle:
132 | {{- toYaml . | nindent 12 }}
133 | {{- end }}
134 | {{- if .Values.geoip.enabled }}
135 | - name: geoip
136 | image: {{ .Values.geoip.image.repository }}:{{ .Values.geoip.image.tag }}{{- if .Values.geoip.image.digest -}}@{{ .Values.geoip.image.digest }}{{- end }}
137 | imagePullPolicy: {{ .Values.geoip.image.pullPolicy }}
138 | env:
139 | {{- with .Values.geoip.env }}
140 | {{- toYaml . | nindent 12 }}
141 | {{- end }}
142 | - name: GEOIPUPDATE_FREQUENCY
143 | value: {{ .Values.geoip.updateInterval | quote }}
144 | - name: GEOIPUPDATE_PRESERVE_FILE_TIMES
145 | value: "1"
146 | {{- if not .Values.geoip.existingSecret.secretName }}
147 | - name: GEOIPUPDATE_ACCOUNT_ID
148 | valueFrom:
149 | secretKeyRef:
150 | name: {{ template "authentik.fullname" . }}
151 | key: GEOIPUPDATE_ACCOUNT_ID
152 | - name: GEOIPUPDATE_LICENSE_KEY
153 | valueFrom:
154 | secretKeyRef:
155 | name: {{ template "authentik.fullname" . }}
156 | key: GEOIPUPDATE_LICENSE_KEY
157 | {{- else }}
158 | - name: GEOIPUPDATE_ACCOUNT_ID
159 | valueFrom:
160 | secretKeyRef:
161 | name: {{ .Values.geoip.existingSecret.secretName }}
162 | key: {{ .Values.geoip.existingSecret.accountId }}
163 | - name: GEOIPUPDATE_LICENSE_KEY
164 | valueFrom:
165 | secretKeyRef:
166 | name: {{ .Values.geoip.existingSecret.secretName }}
167 | key: {{ .Values.geoip.existingSecret.licenseKey }}
168 | {{- end }}
169 | - name: GEOIPUPDATE_EDITION_IDS
170 | value: {{ required "geoip edition id required" .Values.geoip.editionIds | quote }}
171 | {{- with .Values.geoip.envFrom }}
172 | envFrom:
173 | {{- toYaml . | nindent 12 }}
174 | {{- end }}
175 | volumeMounts:
176 | {{- with .Values.geoip.volumeMounts }}
177 | {{- toYaml . | nindent 12 }}
178 | {{- end }}
179 | - name: geoip-db
180 | mountPath: /usr/share/GeoIP
181 | resources:
182 | {{- toYaml .Values.geoip.resources | nindent 12 }}
183 | {{- with .Values.geoip.containerSecurityContext }}
184 | securityContext:
185 | {{- toYaml . | nindent 12 }}
186 | {{- end }}
187 | {{- end }}
188 | {{- with .Values.server.extraContainers }}
189 | {{- tpl (toYaml . ) $ | nindent 8 }}
190 | {{- end }}
191 | {{- with include "authentik.affinity" (dict "context" . "component" .Values.server) }}
192 | affinity:
193 | {{- trim . | nindent 8 }}
194 | {{- end }}
195 | {{- with .Values.server.nodeSelector | default .Values.global.nodeSelector }}
196 | nodeSelector:
197 | {{- toYaml . | nindent 8 }}
198 | {{- end }}
199 | {{- with .Values.server.tolerations | default .Values.global.tolerations }}
200 | tolerations:
201 | {{- toYaml . | nindent 8 }}
202 | {{- end }}
203 | {{- with .Values.server.topologySpreadConstraints | default .Values.global.topologySpreadConstraints }}
204 | topologySpreadConstraints:
205 | {{- range $constraint := . }}
206 | - {{ toYaml $constraint | nindent 8 | trim }}
207 | {{- if not $constraint.labelSelector }}
208 | labelSelector:
209 | matchLabels:
210 | {{- include "authentik.selectorLabels" (dict "context" $ "component" $.Values.server.name) | nindent 12 }}
211 | {{- end }}
212 | {{- end }}
213 | {{- end }}
214 | {{- if or .Values.geoip.enabled .Values.global.volumes .Values.server.volumes }}
215 | volumes:
216 | {{- with .Values.global.volumes }}
217 | {{- toYaml . | nindent 8 }}
218 | {{- end }}
219 | {{- with .Values.server.volumes }}
220 | {{- toYaml . | nindent 8 }}
221 | {{- end }}
222 | {{- if .Values.geoip.enabled }}
223 | - name: geoip-db
224 | emptyDir: {}
225 | {{- end }}
226 | {{- end }}
227 | enableServiceLinks: true
228 | {{- if .Values.server.hostNetwork }}
229 | hostNetwork: {{ .Values.server.hostNetwork }}
230 | {{- end }}
231 | {{- with .Values.server.dnsConfig }}
232 | dnsConfig:
233 | {{- toYaml . | nindent 8 }}
234 | {{- end }}
235 | {{- if .Values.server.dnsPolicy }}
236 | dnsPolicy: {{ .Values.server.dnsPolicy }}
237 | {{- end }}
238 | {{- end }}
239 |
--------------------------------------------------------------------------------
/charts/authentik/templates/prometheusrule.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.prometheus.rules.enabled }}
2 | apiVersion: monitoring.coreos.com/v1
3 | kind: PrometheusRule
4 | metadata:
5 | name: {{ template "authentik.fullname" . }}
6 | namespace: {{ .Values.prometheus.rules.namespace | default (include "authentik.namespace" .) | quote }}
7 | labels:
8 | {{- include "authentik.labels" (dict "context" .) | nindent 4 }}
9 | {{- if .Values.prometheus.rules.selector }}
10 | {{- toYaml .Values.prometheus.rules.selector | nindent 4 }}
11 | {{- end }}
12 | {{- if .Values.prometheus.rules.labels }}
13 | {{- toYaml .Values.prometheus.rules.labels | nindent 4 }}
14 | {{- end }}
15 | {{- with .Values.prometheus.rules.annotations }}
16 | annotations:
17 | {{- toYaml . | nindent 4 }}
18 | {{- end }}
19 | spec:
20 | groups:
21 | - name: authentik Aggregate request counters
22 | {{- if .Values.prometheus.rules.additionalRuleGroupAnnotations }}
23 | annotations:
24 | {{- toYaml .Values.prometheus.rules.additionalRuleGroupAnnotations | nindent 8 }}
25 | {{- end }}
26 | rules:
27 | - record: job:django_http_requests_before_middlewares_total:sum_rate30s
28 | expr: sum(rate(django_http_requests_before_middlewares_total[30s])) by (job)
29 | - record: job:django_http_requests_unknown_latency_total:sum_rate30s
30 | expr: sum(rate(django_http_requests_unknown_latency_total[30s])) by (job)
31 | - record: job:django_http_ajax_requests_total:sum_rate30s
32 | expr: sum(rate(django_http_ajax_requests_total[30s])) by (job)
33 | - record: job:django_http_responses_before_middlewares_total:sum_rate30s
34 | expr: sum(rate(django_http_responses_before_middlewares_total[30s])) by (job)
35 | - record: job:django_http_requests_unknown_latency_including_middlewares_total:sum_rate30s
36 | expr: sum(rate(django_http_requests_unknown_latency_including_middlewares_total[30s])) by (job)
37 | - record: job:django_http_requests_body_total_bytes:sum_rate30s
38 | expr: sum(rate(django_http_requests_body_total_bytes[30s])) by (job)
39 | - record: job:django_http_responses_streaming_total:sum_rate30s
40 | expr: sum(rate(django_http_responses_streaming_total[30s])) by (job)
41 | - record: job:django_http_responses_body_total_bytes:sum_rate30s
42 | expr: sum(rate(django_http_responses_body_total_bytes[30s])) by (job)
43 | - record: job:django_http_requests_total:sum_rate30s
44 | expr: sum(rate(django_http_requests_total_by_method[30s])) by (job)
45 | - record: job:django_http_requests_total_by_method:sum_rate30s
46 | expr: sum(rate(django_http_requests_total_by_method[30s])) by (job,method)
47 | - record: job:django_http_requests_total_by_transport:sum_rate30s
48 | expr: sum(rate(django_http_requests_total_by_transport[30s])) by (job,transport)
49 | - record: job:django_http_requests_total_by_view:sum_rate30s
50 | expr: sum(rate(django_http_requests_total_by_view_transport_method[30s])) by (job,view)
51 | - record: job:django_http_requests_total_by_view_transport_method:sum_rate30s
52 | expr: sum(rate(django_http_requests_total_by_view_transport_method[30s])) by (job,view,transport,method)
53 | - record: job:django_http_responses_total_by_templatename:sum_rate30s
54 | expr: sum(rate(django_http_responses_total_by_templatename[30s])) by (job,templatename)
55 | - record: job:django_http_responses_total_by_status:sum_rate30s
56 | expr: sum(rate(django_http_responses_total_by_status[30s])) by (job,status)
57 | - record: job:django_http_responses_total_by_status_name_method:sum_rate30s
58 | expr: sum(rate(django_http_responses_total_by_status_name_method[30s])) by (job,status,name,method)
59 | - record: job:django_http_responses_total_by_charset:sum_rate30s
60 | expr: sum(rate(django_http_responses_total_by_charset[30s])) by (job,charset)
61 | - record: job:django_http_exceptions_total_by_type:sum_rate30s
62 | expr: sum(rate(django_http_exceptions_total_by_type[30s])) by (job,type)
63 | - record: job:django_http_exceptions_total_by_view:sum_rate30s
64 | expr: sum(rate(django_http_exceptions_total_by_view[30s])) by (job,view)
65 |
66 | - name: authentik Aggregate latency histograms
67 | {{- if .Values.prometheus.rules.additionalRuleGroupAnnotations }}
68 | annotations:
69 | {{- toYaml .Values.prometheus.rules.additionalRuleGroupAnnotations | nindent 8 }}
70 | {{- end }}
71 | rules:
72 | - record: job:django_http_requests_latency_including_middlewares_seconds:quantile_rate30s
73 | expr: histogram_quantile(0.50, sum(rate(django_http_requests_latency_including_middlewares_seconds_bucket[30s])) by (job, le))
74 | labels:
75 | quantile: "50"
76 | - record: job:django_http_requests_latency_including_middlewares_seconds:quantile_rate30s
77 | expr: histogram_quantile(0.95, sum(rate(django_http_requests_latency_including_middlewares_seconds_bucket[30s])) by (job, le))
78 | labels:
79 | quantile: "95"
80 | - record: job:django_http_requests_latency_including_middlewares_seconds:quantile_rate30s
81 | expr: histogram_quantile(0.99, sum(rate(django_http_requests_latency_including_middlewares_seconds_bucket[30s])) by (job, le))
82 | labels:
83 | quantile: "99"
84 | - record: job:django_http_requests_latency_including_middlewares_seconds:quantile_rate30s
85 | expr: histogram_quantile(0.999, sum(rate(django_http_requests_latency_including_middlewares_seconds_bucket[30s])) by (job, le))
86 | labels:
87 | quantile: "99.9"
88 | - record: job:django_http_requests_latency_seconds:quantile_rate30s
89 | expr: histogram_quantile(0.50, sum(rate(django_http_requests_latency_seconds_bucket[30s])) by (job, le))
90 | labels:
91 | quantile: "50"
92 | - record: job:django_http_requests_latency_seconds:quantile_rate30s
93 | expr: histogram_quantile(0.95, sum(rate(django_http_requests_latency_seconds_bucket[30s])) by (job, le))
94 | labels:
95 | quantile: "95"
96 | - record: job:django_http_requests_latency_seconds:quantile_rate30s
97 | expr: histogram_quantile(0.99, sum(rate(django_http_requests_latency_seconds_bucket[30s])) by (job, le))
98 | labels:
99 | quantile: "99"
100 | - record: job:django_http_requests_latency_seconds:quantile_rate30s
101 | expr: histogram_quantile(0.999, sum(rate(django_http_requests_latency_seconds_bucket[30s])) by (job, le))
102 | labels:
103 | quantile: "99.9"
104 |
105 | - name: authentik Aggregate model operations
106 | {{- if .Values.prometheus.rules.additionalRuleGroupAnnotations }}
107 | annotations:
108 | {{- toYaml .Values.prometheus.rules.additionalRuleGroupAnnotations | nindent 8 }}
109 | {{- end }}
110 | rules:
111 | - record: job:django_model_inserts_total:sum_rate1m
112 | expr: sum(rate(django_model_inserts_total[1m])) by (job, model)
113 | - record: job:django_model_updates_total:sum_rate1m
114 | expr: sum(rate(django_model_updates_total[1m])) by (job, model)
115 | - record: job:django_model_deletes_total:sum_rate1m
116 | expr: sum(rate(django_model_deletes_total[1m])) by (job, model)
117 | - name: authentik Aggregate database operations
118 | {{- if .Values.prometheus.rules.additionalRuleGroupAnnotations }}
119 | annotations:
120 | {{- toYaml .Values.prometheus.rules.additionalRuleGroupAnnotations | nindent 8 }}
121 | {{- end }}
122 | rules:
123 | - record: job:django_db_new_connections_total:sum_rate30s
124 | expr: sum(rate(django_db_new_connections_total[30s])) by (alias, vendor)
125 | - record: job:django_db_new_connection_errors_total:sum_rate30s
126 | expr: sum(rate(django_db_new_connection_errors_total[30s])) by (alias, vendor)
127 | - record: job:django_db_execute_total:sum_rate30s
128 | expr: sum(rate(django_db_execute_total[30s])) by (alias, vendor)
129 | - record: job:django_db_execute_many_total:sum_rate30s
130 | expr: sum(rate(django_db_execute_many_total[30s])) by (alias, vendor)
131 | - record: job:django_db_errors_total:sum_rate30s
132 | expr: sum(rate(django_db_errors_total[30s])) by (alias, vendor, type)
133 |
134 | - name: authentik Aggregate migrations
135 | {{- if .Values.prometheus.rules.additionalRuleGroupAnnotations }}
136 | annotations:
137 | {{- toYaml .Values.prometheus.rules.additionalRuleGroupAnnotations | nindent 8 }}
138 | {{- end }}
139 | rules:
140 | - record: job:django_migrations_applied_total:max
141 | expr: max(django_migrations_applied_total) by (job, connection)
142 | - record: job:django_migrations_unapplied_total:max
143 | expr: max(django_migrations_unapplied_total) by (job, connection)
144 |
145 | - name: authentik Alerts
146 | {{- if .Values.prometheus.rules.additionalRuleGroupAnnotations }}
147 | annotations:
148 | {{- toYaml .Values.prometheus.rules.additionalRuleGroupAnnotations | nindent 8 }}
149 | {{- end }}
150 | rules:
151 | - alert: NoWorkersConnected
152 | labels:
153 | severity: critical
154 | expr: max (authentik_tasks_workers) < 1
155 | for: 10m
156 | annotations:
157 | {{`
158 | summary: No workers connected
159 | message: authentik instance {{ $labels.instance }}'s worker are either not running or not connected.
160 | `}}
161 |
162 |
163 | - alert: PendingMigrations
164 | labels:
165 | severity: critical
166 | expr: max without (pid) (django_migrations_unapplied_total) > 0
167 | for: 10m
168 | annotations:
169 | {{`
170 | summary: Pending database migrations
171 | message: authentik instance {{ $labels.instance }} has pending database migrations
172 | `}}
173 |
174 | - alert: FailedSystemTasks
175 | labels:
176 | severity: critical
177 | expr: sum(increase(authentik_tasks_errors_total[2h])) by (actor_name) > 0
178 | for: 2h
179 | annotations:
180 | {{`
181 | summary: Failed system tasks
182 | message: System task {{ $labels.actor_name }} has failed on authentik instance {{ $labels.instance }}
183 | `}}
184 |
185 | - alert: DisconnectedOutposts
186 | labels:
187 | severity: critical
188 | expr: sum by (outpost) (max without (pid) (authentik_outposts_connected{uid!~"specific.*"})) < 1
189 | for: 30m
190 | annotations:
191 | {{`
192 | summary: Disconnected outpost
193 | message: Outpost {{ $labels.outpost }} has at least 1 disconnected instance
194 | `}}
195 | {{- end }}
196 |
--------------------------------------------------------------------------------
/charts/authentik/templates/worker/deployment.yaml:
--------------------------------------------------------------------------------
1 | {{- if .Values.worker.enabled }}
2 | apiVersion: apps/v1
3 | kind: Deployment
4 | metadata:
5 | name: {{ template "authentik.worker.fullname" . }}
6 | namespace: {{ include "authentik.namespace" . | quote }}
7 | labels:
8 | {{- include "authentik.labels" (dict "context" . "component" .Values.worker.name) | nindent 4 }}
9 | {{- with (mergeOverwrite (deepCopy .Values.global.deploymentAnnotations) .Values.worker.deploymentAnnotations) }}
10 | annotations:
11 | {{- range $key, $value := . }}
12 | {{ $key}}: {{ $value | quote }}
13 | {{- end }}
14 | {{- end }}
15 | spec:
16 | {{- with include "authentik.strategy" (mergeOverwrite (deepCopy .Values.global.deploymentStrategy) .Values.worker.deploymentStrategy) }}
17 | strategy:
18 | {{- trim . | nindent 4 }}
19 | {{- end }}
20 | {{- if not .Values.worker.autoscaling.enabled }}
21 | replicas: {{ .Values.worker.replicas }}
22 | {{- end }}
23 | revisionHistoryLimit: {{ .Values.global.revisionHistoryLimit }}
24 | selector:
25 | matchLabels:
26 | {{- include "authentik.selectorLabels" (dict "context" . "component" .Values.worker.name) | nindent 6 }}
27 | template:
28 | metadata:
29 | labels:
30 | {{- include "authentik.labels" (dict "context" . "component" .Values.worker.name) | nindent 8 }}
31 | {{- with (mergeOverwrite (deepCopy .Values.global.podLabels) .Values.worker.podLabels) }}
32 | {{- toYaml . | nindent 8 }}
33 | {{- end }}
34 | annotations:
35 | checksum/secret: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
36 | {{- with (mergeOverwrite (deepCopy .Values.global.podAnnotations) .Values.worker.podAnnotations) }}
37 | {{- range $key, $value := . }}
38 | {{ $key }}: {{ $value | quote }}
39 | {{- end }}
40 | {{- end }}
41 | spec:
42 | {{- with .Values.worker.imagePullSecrets | default .Values.global.imagePullSecrets }}
43 | imagePullSecrets:
44 | {{- toYaml . | nindent 8 }}
45 | {{- end }}
46 | {{- with .Values.worker.serviceAccountName }}
47 | serviceAccountName: {{ . }}
48 | {{- with $.Values.worker.automountServiceAccountToken }}
49 | automountServiceAccountToken: {{ . }}
50 | {{- end }}
51 | {{- else }}
52 | {{- if .Values.serviceAccount.create }}
53 | serviceAccountName: {{ include "authentik-remote-cluster.fullname" .Subcharts.serviceAccount }}
54 | {{- end }}
55 | {{- end }}
56 | {{- with .Values.global.hostAliases }}
57 | hostAliases:
58 | {{- toYaml . | nindent 8 }}
59 | {{- end }}
60 | {{- with (mergeOverwrite (deepCopy .Values.global.securityContext) .Values.worker.securityContext) }}
61 | securityContext:
62 | {{- toYaml . | nindent 8 }}
63 | {{- end }}
64 | {{- with .Values.worker.priorityClassName | default .Values.global.priorityClassName }}
65 | priorityClassName: {{ . }}
66 | {{- end }}
67 | {{- if .Values.worker.terminationGracePeriodSeconds }}
68 | terminationGracePeriodSeconds: {{ .Values.worker.terminationGracePeriodSeconds }}
69 | {{- end }}
70 | {{- with .Values.worker.initContainers }}
71 | initContainers:
72 | {{- tpl (toYaml . ) $ | nindent 6 }}
73 | {{- end }}
74 | containers:
75 | - name: {{ .Values.worker.name }}
76 | image: {{ default .Values.global.image.repository .Values.worker.image.repository }}:{{ default (include "authentik.defaultTag" .) .Values.worker.image.tag }}{{- if (default .Values.global.image.digest .Values.worker.image.digest) -}}@{{ default .Values.global.image.digest .Values.worker.image.digest }}{{- end }}
77 | imagePullPolicy: {{ default .Values.global.image.pullPolicy .Values.worker.image.pullPolicy }}
78 | args:
79 | - worker
80 | env:
81 | {{- with (concat .Values.global.env .Values.worker.env) }}
82 | {{- toYaml . | nindent 12 }}
83 | {{- end }}
84 | - name: AUTHENTIK_LISTEN__HTTP
85 | value: {{ printf "0.0.0.0:%v" .Values.worker.containerPorts.http | quote }}
86 | - name: AUTHENTIK_LISTEN__METRICS
87 | value: {{ printf "0.0.0.0:%v" .Values.worker.containerPorts.metrics | quote }}
88 | envFrom:
89 | - secretRef:
90 | name: {{ template "authentik.fullname" . }}
91 | {{- with (concat .Values.global.envFrom .Values.worker.envFrom) }}
92 | {{- toYaml . | nindent 12 }}
93 | {{- end }}
94 | {{- if or .Values.geoip.enabled .Values.global.volumeMounts .Values.worker.volumeMounts .Values.blueprints.configMaps .Values.blueprints.secrets }}
95 | volumeMounts:
96 | {{- with .Values.global.volumeMounts }}
97 | {{- toYaml . | nindent 12 }}
98 | {{- end }}
99 | {{- with .Values.worker.volumeMounts }}
100 | {{- toYaml . | nindent 12 }}
101 | {{- end }}
102 | {{- if .Values.geoip.enabled }}
103 | - name: geoip-db
104 | mountPath: /geoip
105 | {{- end }}
106 | {{- range $name := .Values.blueprints.configMaps }}
107 | - name: blueprints-cm-{{ $name }}
108 | mountPath: /blueprints/mounted/cm-{{ $name }}
109 | {{- end }}
110 | {{- range $name := .Values.blueprints.secrets }}
111 | - name: blueprints-secret-{{ $name }}
112 | mountPath: /blueprints/mounted/secret-{{ $name }}
113 | {{- end }}
114 | {{- end }}
115 | ports:
116 | - name: http
117 | containerPort: {{ .Values.worker.containerPorts.http }}
118 | protocol: TCP
119 | - name: metrics
120 | containerPort: {{ .Values.worker.containerPorts.metrics }}
121 | protocol: TCP
122 | {{- with .Values.worker.livenessProbe }}
123 | livenessProbe:
124 | {{ toYaml . | nindent 12 }}
125 | {{- end }}
126 | {{- with .Values.worker.readinessProbe }}
127 | readinessProbe:
128 | {{ toYaml . | nindent 12 }}
129 | {{- end }}
130 | {{- with .Values.worker.startupProbe }}
131 | startupProbe:
132 | {{ toYaml . | nindent 12 }}
133 | {{- end }}
134 | resources:
135 | {{- toYaml .Values.worker.resources | nindent 12 }}
136 | {{- with .Values.worker.containerSecurityContext }}
137 | securityContext:
138 | {{- toYaml . | nindent 12 }}
139 | {{- end }}
140 | {{- with .Values.worker.lifecycle }}
141 | lifecycle:
142 | {{- toYaml . | nindent 12 }}
143 | {{- end }}
144 | {{- if .Values.geoip.enabled }}
145 | - name: geoip
146 | image: {{ .Values.geoip.image.repository }}:{{ .Values.geoip.image.tag }}{{- if .Values.geoip.image.digest -}}@{{ .Values.geoip.image.digest }}{{- end }}
147 | imagePullPolicy: {{ .Values.geoip.image.pullPolicy }}
148 | env:
149 | {{- with .Values.geoip.env }}
150 | {{- toYaml . | nindent 12 }}
151 | {{- end }}
152 | - name: GEOIPUPDATE_FREQUENCY
153 | value: {{ .Values.geoip.updateInterval | quote }}
154 | - name: GEOIPUPDATE_PRESERVE_FILE_TIMES
155 | value: "1"
156 | {{- if not .Values.geoip.existingSecret.secretName }}
157 | - name: GEOIPUPDATE_ACCOUNT_ID
158 | valueFrom:
159 | secretKeyRef:
160 | name: {{ template "authentik.fullname" . }}
161 | key: GEOIPUPDATE_ACCOUNT_ID
162 | - name: GEOIPUPDATE_LICENSE_KEY
163 | valueFrom:
164 | secretKeyRef:
165 | name: {{ template "authentik.fullname" . }}
166 | key: GEOIPUPDATE_LICENSE_KEY
167 | {{- else }}
168 | - name: GEOIPUPDATE_ACCOUNT_ID
169 | valueFrom:
170 | secretKeyRef:
171 | name: {{ .Values.geoip.existingSecret.secretName }}
172 | key: {{ .Values.geoip.existingSecret.accountId }}
173 | - name: GEOIPUPDATE_LICENSE_KEY
174 | valueFrom:
175 | secretKeyRef:
176 | name: {{ .Values.geoip.existingSecret.secretName }}
177 | key: {{ .Values.geoip.existingSecret.licenseKey }}
178 | {{- end }}
179 | - name: GEOIPUPDATE_EDITION_IDS
180 | value: {{ required "geoip edition id required" .Values.geoip.editionIds | quote }}
181 | {{- with .Values.geoip.envFrom }}
182 | envFrom:
183 | {{- toYaml . | nindent 12 }}
184 | {{- end }}
185 | volumeMounts:
186 | {{- with .Values.geoip.volumeMounts }}
187 | {{- toYaml . | nindent 12 }}
188 | {{- end }}
189 | - name: geoip-db
190 | mountPath: /usr/share/GeoIP
191 | resources:
192 | {{- toYaml .Values.geoip.resources | nindent 12 }}
193 | {{- with .Values.geoip.containerSecurityContext }}
194 | securityContext:
195 | {{- toYaml . | nindent 12 }}
196 | {{- end }}
197 | {{- end }}
198 | {{- with .Values.worker.extraContainers }}
199 | {{- tpl (toYaml . ) $ | nindent 8 }}
200 | {{- end }}
201 | {{- with include "authentik.affinity" (dict "context" . "component" .Values.worker) }}
202 | affinity:
203 | {{- trim . | nindent 8 }}
204 | {{- end }}
205 | {{- with .Values.worker.nodeSelector | default .Values.global.nodeSelector }}
206 | nodeSelector:
207 | {{- toYaml . | nindent 8 }}
208 | {{- end }}
209 | {{- with .Values.worker.tolerations | default .Values.global.tolerations }}
210 | tolerations:
211 | {{- toYaml . | nindent 8 }}
212 | {{- end }}
213 | {{- with .Values.worker.topologySpreadConstraints | default .Values.global.topologySpreadConstraints }}
214 | topologySpreadConstraints:
215 | {{- range $constraint := . }}
216 | - {{ toYaml $constraint | nindent 8 | trim }}
217 | {{- if not $constraint.labelSelector }}
218 | labelSelector:
219 | matchLabels:
220 | {{- include "authentik.selectorLabels" (dict "context" $ "component" $.Values.worker.name) | nindent 12 }}
221 | {{- end }}
222 | {{- end }}
223 | {{- end }}
224 | {{- if or .Values.geoip.enabled .Values.global.volumes .Values.worker.volumes .Values.blueprints.configMaps .Values.blueprints.secrets }}
225 | volumes:
226 | {{- with .Values.global.volumes }}
227 | {{- toYaml . | nindent 8 }}
228 | {{- end }}
229 | {{- with .Values.worker.volumes }}
230 | {{- toYaml . | nindent 8 }}
231 | {{- end }}
232 | {{- if .Values.geoip.enabled }}
233 | - name: geoip-db
234 | emptyDir: {}
235 | {{- end }}
236 | {{- range $name := .Values.blueprints.configMaps }}
237 | - name: blueprints-cm-{{ $name }}
238 | configMap:
239 | name: {{ $name }}
240 | {{- end }}
241 | {{- range $name := .Values.blueprints.secrets }}
242 | - name: blueprints-secret-{{ $name }}
243 | secret:
244 | secretName: {{ $name }}
245 | {{- end }}
246 | {{- end }}
247 | enableServiceLinks: true
248 | {{- if .Values.worker.hostNetwork }}
249 | hostNetwork: {{ .Values.worker.hostNetwork }}
250 | {{- end }}
251 | {{- with .Values.worker.dnsConfig }}
252 | dnsConfig:
253 | {{- toYaml . | nindent 8 }}
254 | {{- end }}
255 | {{- if .Values.worker.dnsPolicy }}
256 | dnsPolicy: {{ .Values.worker.dnsPolicy }}
257 | {{- end }}
258 | {{- end }}
259 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/charts/authentik/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | ---
6 |
7 | [](https://goauthentik.io/discord)
8 | [](https://github.com/goauthentik/helm/actions/workflows/lint-test.yaml)
9 | 
10 | 
11 |
12 | authentik is an open-source Identity Provider focused on flexibility and versatility
13 |
14 | **Homepage:**
15 |
16 | ## Example values to get started:
17 |
18 | ```yaml
19 | authentik:
20 | secret_key: "PleaseGenerateA50CharKey"
21 | # This sends anonymous usage-data, stack traces on errors and
22 | # performance data to authentik.error-reporting.a7k.io, and is fully opt-in
23 | error_reporting:
24 | enabled: true
25 | postgresql:
26 | password: "ThisIsNotASecurePassword"
27 |
28 | server:
29 | ingress:
30 | enabled: true
31 | hosts:
32 | - authentik.domain.tld
33 |
34 | postgresql:
35 | enabled: true
36 | auth:
37 | password: "ThisIsNotASecurePassword"
38 | ```
39 |
40 | ## Advanced values examples
41 |
42 |
43 | External PostgreSQL
44 |
45 | ```yaml
46 | authentik:
47 | postgresql:
48 | host: postgres.domain.tld
49 | user: file:///postgres-creds/username
50 | password: file:///postgres-creds/password
51 | server:
52 | volumes:
53 | - name: postgres-creds
54 | secret:
55 | secretName: authentik-postgres-credentials
56 | volumeMounts:
57 | - name: postgres-creds
58 | mountPath: /postgres-creds
59 | readOnly: true
60 | worker:
61 | volumes:
62 | - name: postgres-creds
63 | secret:
64 | secretName: authentik-postgres-credentials
65 | volumeMounts:
66 | - name: postgres-creds
67 | mountPath: /postgres-creds
68 | readOnly: true
69 | ```
70 |
71 | The secret `authentik-postgres-credentials` must have `username` and `password` keys.
72 |
73 |
74 | ## Maintainers
75 |
76 | | Name | Email | Url |
77 | | ---- | ------ | --- |
78 | | authentik Team | | |
79 |
80 | ## Source Code
81 |
82 | *
83 | *
84 |
85 | ## Requirements
86 |
87 | | Repository | Name | Version |
88 | |------------|------|---------|
89 | | https://charts.goauthentik.io | serviceAccount(authentik-remote-cluster) | 2.1.0 |
90 | | oci://registry-1.docker.io/bitnamicharts | postgresql | 16.7.27 |
91 |
92 | ## Values
93 |
94 | | Key | Type | Default | Description |
95 | |-----|------|---------|-------------|
96 | | additionalObjects | list | `[]` | additional resources to deploy. Those objects are templated. |
97 | | authentik.email.from | string | `""` | Email from address, can either be in the format "foo@bar.baz" or "authentik " |
98 | | authentik.email.host | string | `""` | SMTP Server emails are sent from, fully optional |
99 | | authentik.email.password | string | `""` | SMTP credentials, when left empty, no authentication will be done |
100 | | authentik.email.port | int | `587` | SMTP server port |
101 | | authentik.email.timeout | int | `30` | Connection timeout |
102 | | authentik.email.use_ssl | bool | `false` | Use SSL. Enable either use_tls or use_ssl, they can't be enabled at the same time. |
103 | | authentik.email.use_tls | bool | `false` | Use StartTLS. Enable either use_tls or use_ssl, they can't be enabled at the same time. |
104 | | authentik.email.username | string | `""` | SMTP credentials, when left empty, no authentication will be done |
105 | | authentik.enabled | bool | `true` | whether to create the authentik configuration secret |
106 | | authentik.error_reporting.enabled | bool | `false` | This sends anonymous usage-data, stack traces on errors and performance data to sentry.beryju.org, and is fully opt-in |
107 | | authentik.error_reporting.environment | string | `"k8s"` | This is a string that is sent to sentry with your error reports |
108 | | authentik.error_reporting.send_pii | bool | `false` | Send PII (Personally identifiable information) data to sentry |
109 | | authentik.events.context_processors.asn | string | `"/geoip/GeoLite2-ASN.mmdb"` | Path for the GeoIP ASN database. If the file doesn't exist, GeoIP features are disabled. |
110 | | authentik.events.context_processors.geoip | string | `"/geoip/GeoLite2-City.mmdb"` | Path for the GeoIP City database. If the file doesn't exist, GeoIP features are disabled. |
111 | | authentik.log_level | string | `"info"` | Log level for server and worker |
112 | | authentik.outposts.container_image_base | string | `"ghcr.io/goauthentik/%(type)s:%(version)s"` | Template used for managed outposts. The following placeholders can be used %(type)s - the type of the outpost %(version)s - version of your authentik install %(build_hash)s - only for beta versions, the build hash of the image |
113 | | authentik.postgresql.host | string | `{{ .Release.Name }}-postgresql` | set the postgresql hostname to talk to if unset and .Values.postgresql.enabled == true, will generate the default |
114 | | authentik.postgresql.name | string | `authentik` | postgresql Database name |
115 | | authentik.postgresql.password | string | `""` | |
116 | | authentik.postgresql.port | int | `5432` | |
117 | | authentik.postgresql.user | string | `authentik` | postgresql Username |
118 | | authentik.secret_key | string | `""` | Secret key used for cookie singing and unique user IDs, don't change this after the first install |
119 | | authentik.web.path | string | `"/"` | Relative path the authentik instance will be available at. Value _must_ contain both a leading and trailing slash. |
120 | | blueprints.configMaps | list | `[]` | List of config maps to mount blueprints from. Only keys in the configMap ending with `.yaml` will be discovered and applied. |
121 | | blueprints.secrets | list | `[]` | List of secrets to mount blueprints from. Only keys in the secret ending with `.yaml` will be discovered and applied. |
122 | | fullnameOverride | string | `""` | String to fully override `"authentik.fullname"`. Prefer using global.fullnameOverride if possible |
123 | | geoip.accountId | string | `""` | sign up under https://www.maxmind.com/en/geolite2/signup |
124 | | geoip.containerSecurityContext | object | See [values.yaml] | GeoIP container-level security context |
125 | | geoip.editionIds | string | `"GeoLite2-City GeoLite2-ASN"` | |
126 | | geoip.enabled | bool | `false` | enable GeoIP sidecars for the authentik server and worker pods |
127 | | geoip.env | list | `[]` (See [values.yaml]) | Environment variables to pass to the GeoIP containers |
128 | | geoip.envFrom | list | `[]` (See [values.yaml]) | envFrom to pass to the GeoIP containers |
129 | | geoip.existingSecret.accountId | string | `"account_id"` | key in the secret containing the account ID |
130 | | geoip.existingSecret.licenseKey | string | `"license_key"` | key in the secret containing the license key |
131 | | geoip.existingSecret.secretName | string | `""` | name of an existing secret to use instead of values above |
132 | | geoip.image.digest | string | `""` | If defined, an image digest for GeoIP images |
133 | | geoip.image.pullPolicy | string | `"IfNotPresent"` | If defined, an imagePullPolicy for GeoIP images |
134 | | geoip.image.repository | string | `"ghcr.io/maxmind/geoipupdate"` | If defined, a repository for GeoIP images |
135 | | geoip.image.tag | string | `"v7.1.1"` | If defined, a tag for GeoIP images |
136 | | geoip.licenseKey | string | `""` | sign up under https://www.maxmind.com/en/geolite2/signup |
137 | | geoip.resources | object | `{}` | Resource limits and requests for GeoIP containers |
138 | | geoip.updateInterval | int | `8` | GeoIP update frequency, in hours |
139 | | geoip.volumeMounts | list | `[]` | Additional volumeMounts to the GeoIP containers. Make sure the volumes exists for the server and the worker. |
140 | | global.addPrometheusAnnotations | bool | `false` | Add Prometheus scrape annotations to all metrics services. This can be used as an alternative to the ServiceMonitors. |
141 | | global.additionalLabels | object | `{}` | Common labels for all resources. |
142 | | global.affinity.nodeAffinity.matchExpressions | list | `[]` | Default match expressions for node affinity |
143 | | global.affinity.nodeAffinity.type | string | `"hard"` | Default node affinity rules. Either `none`, `soft` or `hard` |
144 | | global.affinity.podAntiAffinity | string | `"soft"` | Default pod anti-affinity rules. Either: `none`, `soft` or `hard` |
145 | | global.deploymentAnnotations | object | `{}` | Annotations for all deployed Deployments |
146 | | global.deploymentStrategy | object | `{}` | Deployment strategy for all deployed Deployments |
147 | | global.env | list | `[]` (See [values.yaml]) | Environment variables to pass to all deployed Deployments. Does not apply to GeoIP See configuration options at https://goauthentik.io/docs/installation/configuration/ |
148 | | global.envFrom | list | `[]` (See [values.yaml]) | envFrom to pass to all deployed Deployments. Does not apply to GeoIP |
149 | | global.fullnameOverride | string | `""` | String to fully override `"authentik.fullname"` |
150 | | global.hostAliases | list | `[]` | Mapping between IP and hostnames that will be injected as entries in the pod's hosts files |
151 | | global.image.digest | string | `""` | If defined, an image digest applied to all authentik deployments |
152 | | global.image.pullPolicy | string | `"IfNotPresent"` | If defined, an imagePullPolicy applied to all authentik deployments |
153 | | global.image.repository | string | `"ghcr.io/goauthentik/server"` | If defined, a repository applied to all authentik deployments |
154 | | global.image.tag | string | `""` | Overrides the global authentik whose default is the chart appVersion |
155 | | global.imagePullSecrets | list | `[]` | Secrets with credentials to pull images from a private registry |
156 | | global.nameOverride | string | `""` | Provide a name in place of `authentik` |
157 | | global.namespaceOverride | string | `""` | A custom namespace to override the default namespace for the deployed resources. |
158 | | global.nodeSelector | object | `{}` | Default node selector for all components |
159 | | global.podAnnotations | object | `{}` | Annotations for all deployed pods |
160 | | global.podLabels | object | `{}` | Labels for all deployed pods |
161 | | global.priorityClassName | string | `""` | Default priority class for all components |
162 | | global.revisionHistoryLimit | int | `3` | |
163 | | global.secretAnnotations | object | `{}` | Annotations for all deployed secrets |
164 | | global.security.allowInsecureImages | bool | `true` | |
165 | | global.securityContext | object | `{}` (See [values.yaml]) | Toggle and define pod-level security context. |
166 | | global.tolerations | list | `[]` | Default tolerations for all components |
167 | | global.topologySpreadConstraints | list | `[]` | Default [TopologySpreadConstraints] rules for all components # Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ |
168 | | global.volumeMounts | list | `[]` (See [values.yaml]) | Additional volumeMounts to all deployed Deployments. Does not apply to GeoIP |
169 | | global.volumes | list | `[]` (See [values.yaml]) | Additional volumes to all deployed Deployments. |
170 | | kubeVersionOverride | string | `""` | Override the Kubernetes version, which is used to evaluate certain manifests |
171 | | nameOverride | string | `""` | Provide a name in place of `authentik`. Prefer using global.nameOverride if possible |
172 | | postgresql.auth.database | string | `"authentik"` | |
173 | | postgresql.auth.username | string | `"authentik"` | |
174 | | postgresql.backup.resourcesPreset | string | `"none"` | |
175 | | postgresql.enabled | bool | `false` | enable the Bitnami PostgreSQL chart. Refer to https://github.com/bitnami/charts/blob/main/bitnami/postgresql/ for possible values. |
176 | | postgresql.image.registry | string | `"docker.io"` | |
177 | | postgresql.image.repository | string | `"library/postgres"` | |
178 | | postgresql.image.tag | string | `"17.7-bookworm"` | |
179 | | postgresql.metrics.image.repository | string | `"prometheuscommunity/postgres-exporter"` | |
180 | | postgresql.metrics.image.tag | string | `"v0.18.1"` | |
181 | | postgresql.metrics.resourcesPreset | string | `"none"` | |
182 | | postgresql.passwordUpdateJob.resourcesPreset | string | `"none"` | |
183 | | postgresql.primary.args[0] | string | `"-c"` | |
184 | | postgresql.primary.args[1] | string | `"config_file=/bitnami/postgresql/conf/postgresql.conf"` | |
185 | | postgresql.primary.args[2] | string | `"-c"` | |
186 | | postgresql.primary.args[3] | string | `"hba_file=/bitnami/postgresql/conf/pg_hba.conf"` | |
187 | | postgresql.primary.configuration | string | `"listen_addresses = '*'\nport = '5432'\nwal_level = 'replica'\nfsync = 'on'\nhot_standby = 'on'\nlog_connections = 'false'\nlog_disconnections = 'false'\nlog_hostname = 'false'\nclient_min_messages = 'error'\ninclude_dir = 'conf.d'\n"` | |
188 | | postgresql.primary.containerSecurityContext.readOnlyRootFilesystem | bool | `false` | |
189 | | postgresql.primary.extendedConfiguration | string | `"max_connections = 500\n"` | |
190 | | postgresql.primary.extraEnvVars[0].name | string | `"POSTGRES_DB"` | |
191 | | postgresql.primary.extraEnvVars[0].value | string | `"{{ (include \"postgresql.v1.database\" .) }}"` | |
192 | | postgresql.primary.pgHbaConfiguration | string | `"host all all 0.0.0.0/0 scram-sha-256\nhost all all ::/0 scram-sha-256\nlocal all all scram-sha-256\nhost all all 127.0.0.1/32 scram-sha-256\nhost all all ::1/128 scram-sha-256\n"` | |
193 | | postgresql.primary.resourcesPreset | string | `"none"` | |
194 | | postgresql.readReplicas.resourcesPreset | string | `"none"` | |
195 | | postgresql.volumePermissions.image.repository | string | `"debian"` | |
196 | | postgresql.volumePermissions.image.tag | string | `"13-slim"` | |
197 | | postgresql.volumePermissions.resourcesPreset | string | `"none"` | |
198 | | prometheus.rules.additionalRuleGroupAnnotations | object | `{}` | PrometheusRuleGroup additional annotations |
199 | | prometheus.rules.annotations | object | `{}` | PrometheusRule annotations |
200 | | prometheus.rules.enabled | bool | `false` | |
201 | | prometheus.rules.labels | object | `{}` | PrometheusRule labels |
202 | | prometheus.rules.namespace | string | `""` | PrometheusRule namespace |
203 | | prometheus.rules.selector | object | `{}` | PrometheusRule selector |
204 | | server.affinity | object | `{}` (defaults to the global.affinity preset) | Assign custom [affinity] rules to the deployment |
205 | | server.autoscaling.behavior | object | `{}` | Configures the scaling behavior of the target in both Up and Down directions. |
206 | | server.autoscaling.enabled | bool | `false` | Enable Horizontal Pod Autoscaler ([HPA]) for the authentik server |
207 | | server.autoscaling.maxReplicas | int | `5` | Maximum number of replicas for the authentik server [HPA] |
208 | | server.autoscaling.metrics | list | `[]` | Configures custom HPA metrics for the authentik server Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ |
209 | | server.autoscaling.minReplicas | int | `1` | Minimum number of replicas for the authentik server [HPA] |
210 | | server.autoscaling.targetCPUUtilizationPercentage | int | `50` | Average CPU utilization percentage for the authentik server [HPA] |
211 | | server.autoscaling.targetMemoryUtilizationPercentage | string | `nil` | Average memory utilization percentage for the authentik server [HPA] |
212 | | server.containerPorts.http | int | `9000` | http container port |
213 | | server.containerPorts.https | int | `9443` | https container port |
214 | | server.containerPorts.metrics | int | `9300` | metrics container port |
215 | | server.containerSecurityContext | object | See [values.yaml] | authentik server container-level security context |
216 | | server.deploymentAnnotations | object | `{}` | Annotations to be added to the authentik server Deployment |
217 | | server.deploymentStrategy | object | `{}` (defaults to global.deploymentStrategy) | Deployment strategy to be added to the authentik server Deployment |
218 | | server.dnsConfig | object | `{}` | [DNS configuration] |
219 | | server.dnsPolicy | string | `""` | Alternative DNS policy for authentik server pods |
220 | | server.enabled | bool | `true` | whether to enable server resources |
221 | | server.env | list | `[]` (See [values.yaml]) | Environment variables to pass to the authentik server. Does not apply to GeoIP See configuration options at https://goauthentik.io/docs/installation/configuration/ |
222 | | server.envFrom | list | `[]` (See [values.yaml]) | envFrom to pass to the authentik server. Does not apply to GeoIP |
223 | | server.extraContainers | list | `[]` | Additional containers to be added to the authentik server pod # Note: Supports use of custom Helm templates |
224 | | server.hostNetwork | bool | `false` | Host Network for authentik server pods |
225 | | server.image.digest | string | `""` (defaults to global.image.digest) | Digest to use to the authentik server |
226 | | server.image.pullPolicy | string | `""` (defaults to global.image.pullPolicy) | Image pull policy to use to the authentik server |
227 | | server.image.repository | string | `""` (defaults to global.image.repository) | Repository to use to the authentik server |
228 | | server.image.tag | string | `""` (defaults to global.image.tag) | Tag to use to the authentik server |
229 | | server.imagePullSecrets | list | `[]` (defaults to global.imagePullSecrets) | Secrets with credentials to pull images from a private registry |
230 | | server.ingress.annotations | object | `{}` | additional ingress annotations |
231 | | server.ingress.enabled | bool | `false` | enable an ingress resource for the authentik server |
232 | | server.ingress.extraPaths | list | `[]` | additional ingress paths |
233 | | server.ingress.hosts | list | `[]` | List of ingress hosts |
234 | | server.ingress.https | bool | `false` | uses `server.service.servicePortHttps` instead of `server.service.servicePortHttp` |
235 | | server.ingress.ingressClassName | string | `""` | defines which ingress controller will implement the resource |
236 | | server.ingress.labels | object | `{}` | additional ingress labels |
237 | | server.ingress.pathType | string | `"Prefix"` | Ingress path type. One of `Exact`, `Prefix` or `ImplementationSpecific` |
238 | | server.ingress.paths | list | `["{{ .Values.authentik.web.path }}"]` | List of ingress paths |
239 | | server.ingress.tls | list | `[]` | ingress TLS configuration |
240 | | server.initContainers | list | `[]` | Init containers to add to the authentik server pod # Note: Supports use of custom Helm templates |
241 | | server.lifecycle | object | `{}` | Specify postStart and preStop lifecycle hooks for you authentik server container |
242 | | server.livenessProbe.failureThreshold | int | `3` | Minimum consecutive failures for the [probe] to be considered failed after having succeeded |
243 | | server.livenessProbe.httpGet.path | string | `"{{ .Values.authentik.web.path }}-/health/live/"` | |
244 | | server.livenessProbe.httpGet.port | string | `"http"` | |
245 | | server.livenessProbe.initialDelaySeconds | int | `5` | Number of seconds after the container has started before [probe] is initiated |
246 | | server.livenessProbe.periodSeconds | int | `10` | How often (in seconds) to perform the [probe] |
247 | | server.livenessProbe.successThreshold | int | `1` | Minimum consecutive successes for the [probe] to be considered successful after having failed |
248 | | server.livenessProbe.timeoutSeconds | int | `3` | Number of seconds after which the [probe] times out |
249 | | server.metrics.enabled | bool | `false` | deploy metrics service |
250 | | server.metrics.service.annotations | object | `{}` | metrics service annotations |
251 | | server.metrics.service.clusterIP | string | `""` | metrics service clusterIP. `None` makes a "headless service" (no virtual IP) |
252 | | server.metrics.service.labels | object | `{}` | metrics service labels |
253 | | server.metrics.service.portName | string | `"metrics"` | metrics service port name |
254 | | server.metrics.service.servicePort | int | `9300` | metrics service port |
255 | | server.metrics.service.type | string | `"ClusterIP"` | metrics service type |
256 | | server.metrics.serviceMonitor.annotations | object | `{}` | Prometheus ServiceMonitor annotations |
257 | | server.metrics.serviceMonitor.enabled | bool | `false` | enable a prometheus ServiceMonitor |
258 | | server.metrics.serviceMonitor.interval | string | `"30s"` | Prometheus ServiceMonitor interval |
259 | | server.metrics.serviceMonitor.labels | object | `{}` | Prometheus ServiceMonitor labels |
260 | | server.metrics.serviceMonitor.metricRelabelings | list | `[]` | Prometheus [MetricsRelabelConfigs] to apply to samples before ingestion |
261 | | server.metrics.serviceMonitor.namespace | string | `""` | Prometheus ServiceMonitor namespace |
262 | | server.metrics.serviceMonitor.relabelings | list | `[]` | Prometheus [RelabelConfigs] to apply to samples before scraping |
263 | | server.metrics.serviceMonitor.scheme | string | `""` | Prometheus ServiceMonitor scheme |
264 | | server.metrics.serviceMonitor.scrapeTimeout | string | `"3s"` | Prometheus ServiceMonitor scrape timeout |
265 | | server.metrics.serviceMonitor.selector | object | `{}` | Prometheus ServiceMonitor selector |
266 | | server.metrics.serviceMonitor.tlsConfig | object | `{}` | Prometheus ServiceMonitor tlsConfig |
267 | | server.name | string | `"server"` | authentik server name |
268 | | server.nodeSelector | object | `{}` (defaults to global.nodeSelector) | [Node selector] |
269 | | server.pdb.annotations | object | `{}` | Annotations to be added to the authentik server pdb |
270 | | server.pdb.enabled | bool | `false` | Deploy a [PodDistrubtionBudget] for the authentik server |
271 | | server.pdb.labels | object | `{}` | Labels to be added to the authentik server pdb |
272 | | server.pdb.maxUnavailable | string | `""` | Number of pods that are unavailable after eviction as number or percentage (eg.: 50%) # Has higher precedence over `server.pdb.minAvailable` |
273 | | server.pdb.minAvailable | string | `""` (defaults to 0 if not specified) | Number of pods that are available after eviction as number or percentage (eg.: 50%) |
274 | | server.podAnnotations | object | `{}` | Annotations to be added to the authentik server pods |
275 | | server.podLabels | object | `{}` | Labels to be added to the authentik server pods |
276 | | server.priorityClassName | string | `""` (defaults to global.priorityClassName) | Prority class for the authentik server pods |
277 | | server.readinessProbe.failureThreshold | int | `3` | Minimum consecutive failures for the [probe] to be considered failed after having succeeded |
278 | | server.readinessProbe.httpGet.path | string | `"{{ .Values.authentik.web.path }}-/health/ready/"` | |
279 | | server.readinessProbe.httpGet.port | string | `"http"` | |
280 | | server.readinessProbe.initialDelaySeconds | int | `5` | Number of seconds after the container has started before [probe] is initiated |
281 | | server.readinessProbe.periodSeconds | int | `10` | How often (in seconds) to perform the [probe] |
282 | | server.readinessProbe.successThreshold | int | `1` | Minimum consecutive successes for the [probe] to be considered successful after having failed |
283 | | server.readinessProbe.timeoutSeconds | int | `3` | Number of seconds after which the [probe] times out |
284 | | server.replicas | int | `1` | The number of server pods to run |
285 | | server.resources | object | `{}` | Resource limits and requests for the authentik server |
286 | | server.route.main.additionalRules | list | `[]` | Additional custom rules that can be added to the route |
287 | | server.route.main.annotations | object | `{}` | Route annotations |
288 | | server.route.main.apiVersion | string | `"gateway.networking.k8s.io/v1"` | Set the route apiVersion |
289 | | server.route.main.enabled | bool | `false` | enable an HTTPRoute resource for the authentik server. Be aware that this is an early beta of this feature. We don't guarantee this works and is subject to change. |
290 | | server.route.main.filters | list | `[]` | Route filters |
291 | | server.route.main.hostnames | list | `[]` | Route hostnames |
292 | | server.route.main.https | bool | `false` | uses `server.service.servicePortHttps` instead of `server.service.servicePortHttp` |
293 | | server.route.main.httpsRedirect | bool | `false` | Create http route for redirect (https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/#http-to-https-redirects). Take care that you only enable this on the http listener of the gateway to avoid an infinite redirect. Matches, filters and additionalRules will be ignored if this is set to true |
294 | | server.route.main.kind | string | `"HTTPRoute"` | Set the route kind |
295 | | server.route.main.labels | object | `{}` | Route labels |
296 | | server.route.main.matches | list | `[{"path":{"type":"PathPrefix","value":"{{ .Values.authentik.web.path }}"}}]` | Route matches |
297 | | server.route.main.parentRefs | list | `[]` | Reference to parent gateways |
298 | | server.securityContext | object | `{}` (See [values.yaml]) | authentik server pod-level security context |
299 | | server.service.annotations | object | `{}` | authentik server service annotations |
300 | | server.service.externalIPs | list | `[]` | authentik server service external IPs |
301 | | server.service.externalTrafficPolicy | string | `""` | Denotes if this service desires to route external traffic to node-local or cluster-wide endpoints |
302 | | server.service.labels | object | `{}` | authentik server service labels |
303 | | server.service.loadBalancerIP | string | `""` | LoadBalancer will get created with the IP specified in this field |
304 | | server.service.loadBalancerSourceRanges | list | `[]` | Source IP ranges to allow access to service from |
305 | | server.service.nodePortHttp | int | `30080` | authentik server service http port for NodePort service type (only if `server.service.type` is set to `NodePort`) |
306 | | server.service.nodePortHttps | int | `30443` | authentik server service https port for NodePort service type (only if `server.service.type` is set to `NodePort`) |
307 | | server.service.servicePortHttp | int | `80` | authentik server service http port |
308 | | server.service.servicePortHttpName | string | `"http"` | authentik server service http port name |
309 | | server.service.servicePortHttps | int | `443` | authentik server service https port |
310 | | server.service.servicePortHttpsName | string | `"https"` | authentik server service https port name |
311 | | server.service.sessionAffinity | string | `""` | Used to maintain session affinity. Supports `ClientIP` and `None` |
312 | | server.service.sessionAffinityConfig | object | `{}` | Session affinity configuration |
313 | | server.service.type | string | `"ClusterIP"` | authentik server service type |
314 | | server.serviceAccountName | string | `nil` | serviceAccount to use for authentik server pods |
315 | | server.startupProbe.failureThreshold | int | `60` | Minimum consecutive failures for the [probe] to be considered failed after having succeeded |
316 | | server.startupProbe.httpGet.path | string | `"{{ .Values.authentik.web.path }}-/health/live/"` | |
317 | | server.startupProbe.httpGet.port | string | `"http"` | |
318 | | server.startupProbe.initialDelaySeconds | int | `5` | Number of seconds after the container has started before [probe] is initiated |
319 | | server.startupProbe.periodSeconds | int | `10` | How often (in seconds) to perform the [probe] |
320 | | server.startupProbe.successThreshold | int | `1` | Minimum consecutive successes for the [probe] to be considered successful after having failed |
321 | | server.startupProbe.timeoutSeconds | int | `3` | Number of seconds after which the [probe] times out |
322 | | server.terminationGracePeriodSeconds | int | `30` | terminationGracePeriodSeconds for container lifecycle hook |
323 | | server.tolerations | list | `[]` (defaults to global.tolerations) | [Tolerations] for use with node taints |
324 | | server.topologySpreadConstraints | list | `[]` (defaults to global.topologySpreadConstraints) | Assign custom [TopologySpreadConstraints] rules to the authentik server # Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ # If labelSelector is left out, it will default to the labelSelector configuration of the deployment |
325 | | server.volumeMounts | list | `[]` | Additional volumeMounts to the authentik server main container |
326 | | server.volumes | list | `[]` | Additional volumes to the authentik server pod |
327 | | serviceAccount.annotations | object | `{}` | additional service account annotations |
328 | | serviceAccount.create | bool | `true` | Create service account. Needed for managed outposts |
329 | | serviceAccount.fullnameOverride | string | `"authentik"` | |
330 | | serviceAccount.serviceAccountSecret.enabled | bool | `false` | |
331 | | worker.affinity | object | `{}` (defaults to the global.affinity preset) | Assign custom [affinity] rules to the deployment |
332 | | worker.automountServiceAccountToken | bool | `nil` | automount behavior for service account token in worker pods. Only applies if worker.serviceAccountName is set. |
333 | | worker.autoscaling.behavior | object | `{}` | Configures the scaling behavior of the target in both Up and Down directions. |
334 | | worker.autoscaling.enabled | bool | `false` | Enable Horizontal Pod Autoscaler ([HPA]) for the authentik worker |
335 | | worker.autoscaling.maxReplicas | int | `5` | Maximum number of replicas for the authentik worker [HPA] |
336 | | worker.autoscaling.metrics | list | `[]` | Configures custom HPA metrics for the authentik worker Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ |
337 | | worker.autoscaling.minReplicas | int | `1` | Minimum number of replicas for the authentik worker [HPA] |
338 | | worker.autoscaling.targetCPUUtilizationPercentage | int | `50` | Average CPU utilization percentage for the authentik worker [HPA] |
339 | | worker.autoscaling.targetMemoryUtilizationPercentage | string | `nil` | Average memory utilization percentage for the authentik worker [HPA] |
340 | | worker.containerPorts.http | int | `9000` | http container port |
341 | | worker.containerPorts.metrics | int | `9300` | metrics container port |
342 | | worker.containerSecurityContext | object | See [values.yaml] | authentik worker container-level security context |
343 | | worker.deploymentAnnotations | object | `{}` | Annotations to be added to the authentik worker Deployment |
344 | | worker.deploymentStrategy | object | `{}` (defaults to global.deploymentStrategy) | Deployment strategy to be added to the authentik worker Deployment |
345 | | worker.dnsConfig | object | `{}` | [DNS configuration] |
346 | | worker.dnsPolicy | string | `""` | Alternative DNS policy for authentik worker pods |
347 | | worker.enabled | bool | `true` | whether to enable worker resources |
348 | | worker.env | list | `[]` (See [values.yaml]) | Environment variables to pass to the authentik worker. Does not apply to GeoIP See configuration options at https://goauthentik.io/docs/installation/configuration/ |
349 | | worker.envFrom | list | `[]` (See [values.yaml]) | envFrom to pass to the authentik worker. Does not apply to GeoIP |
350 | | worker.extraContainers | list | `[]` | Additional containers to be added to the authentik worker pod # Note: Supports use of custom Helm templates |
351 | | worker.hostNetwork | bool | `false` | Host Network for authentik worker pods |
352 | | worker.image.digest | string | `""` (defaults to global.image.digest) | Digest to use to the authentik worker |
353 | | worker.image.pullPolicy | string | `""` (defaults to global.image.pullPolicy) | Image pull policy to use to the authentik worker |
354 | | worker.image.repository | string | `""` (defaults to global.image.repository) | Repository to use to the authentik worker |
355 | | worker.image.tag | string | `""` (defaults to global.image.tag) | Tag to use to the authentik worker |
356 | | worker.imagePullSecrets | list | `[]` (defaults to global.imagePullSecrets) | Secrets with credentials to pull images from a private registry |
357 | | worker.initContainers | list | `[]` | Init containers to add to the authentik worker pod # Note: Supports use of custom Helm templates |
358 | | worker.lifecycle | object | `{}` | Specify postStart and preStop lifecycle hooks for you authentik worker container |
359 | | worker.livenessProbe.exec.command[0] | string | `"ak"` | |
360 | | worker.livenessProbe.exec.command[1] | string | `"healthcheck"` | |
361 | | worker.livenessProbe.failureThreshold | int | `3` | Minimum consecutive failures for the [probe] to be considered failed after having succeeded |
362 | | worker.livenessProbe.initialDelaySeconds | int | `5` | Number of seconds after the container has started before [probe] is initiated |
363 | | worker.livenessProbe.periodSeconds | int | `10` | How often (in seconds) to perform the [probe] |
364 | | worker.livenessProbe.successThreshold | int | `1` | Minimum consecutive successes for the [probe] to be considered successful after having failed |
365 | | worker.livenessProbe.timeoutSeconds | int | `3` | Number of seconds after which the [probe] times out |
366 | | worker.metrics.enabled | bool | `false` | deploy metrics service |
367 | | worker.metrics.service.annotations | object | `{}` | metrics service annotations |
368 | | worker.metrics.service.clusterIP | string | `""` | metrics service clusterIP. `None` makes a "headless service" (no virtual IP) |
369 | | worker.metrics.service.labels | object | `{}` | metrics service labels |
370 | | worker.metrics.service.portName | string | `"metrics"` | metrics service port name |
371 | | worker.metrics.service.servicePort | int | `9300` | metrics service port |
372 | | worker.metrics.service.type | string | `"ClusterIP"` | metrics service type |
373 | | worker.metrics.serviceMonitor.annotations | object | `{}` | Prometheus ServiceMonitor annotations |
374 | | worker.metrics.serviceMonitor.enabled | bool | `false` | enable a prometheus ServiceMonitor |
375 | | worker.metrics.serviceMonitor.interval | string | `"30s"` | Prometheus ServiceMonitor interval |
376 | | worker.metrics.serviceMonitor.labels | object | `{}` | Prometheus ServiceMonitor labels |
377 | | worker.metrics.serviceMonitor.metricRelabelings | list | `[]` | Prometheus [MetricsRelabelConfigs] to apply to samples before ingestion |
378 | | worker.metrics.serviceMonitor.namespace | string | `""` | Prometheus ServiceMonitor namespace |
379 | | worker.metrics.serviceMonitor.relabelings | list | `[]` | Prometheus [RelabelConfigs] to apply to samples before scraping |
380 | | worker.metrics.serviceMonitor.scheme | string | `""` | Prometheus ServiceMonitor scheme |
381 | | worker.metrics.serviceMonitor.scrapeTimeout | string | `"3s"` | Prometheus ServiceMonitor scrape timeout |
382 | | worker.metrics.serviceMonitor.selector | object | `{}` | Prometheus ServiceMonitor selector |
383 | | worker.metrics.serviceMonitor.tlsConfig | object | `{}` | Prometheus ServiceMonitor tlsConfig |
384 | | worker.name | string | `"worker"` | authentik worker name |
385 | | worker.nodeSelector | object | `{}` (defaults to global.nodeSelector) | [Node selector] |
386 | | worker.pdb.annotations | object | `{}` | Annotations to be added to the authentik worker pdb |
387 | | worker.pdb.enabled | bool | `false` | Deploy a [PodDistrubtionBudget] for the authentik worker |
388 | | worker.pdb.labels | object | `{}` | Labels to be added to the authentik worker pdb |
389 | | worker.pdb.maxUnavailable | string | `""` | Number of pods that are unavailable after eviction as number or percentage (eg.: 50%) # Has higher precedence over `worker.pdb.minAvailable` |
390 | | worker.pdb.minAvailable | string | `""` (defaults to 0 if not specified) | Number of pods that are available after eviction as number or percentage (eg.: 50%) |
391 | | worker.podAnnotations | object | `{}` | Annotations to be added to the authentik worker pods |
392 | | worker.podLabels | object | `{}` | Labels to be added to the authentik worker pods |
393 | | worker.priorityClassName | string | `""` (defaults to global.priorityClassName) | Prority class for the authentik worker pods |
394 | | worker.readinessProbe.exec.command[0] | string | `"ak"` | |
395 | | worker.readinessProbe.exec.command[1] | string | `"healthcheck"` | |
396 | | worker.readinessProbe.failureThreshold | int | `3` | Minimum consecutive failures for the [probe] to be considered failed after having succeeded |
397 | | worker.readinessProbe.initialDelaySeconds | int | `5` | Number of seconds after the container has started before [probe] is initiated |
398 | | worker.readinessProbe.periodSeconds | int | `10` | How often (in seconds) to perform the [probe] |
399 | | worker.readinessProbe.successThreshold | int | `1` | Minimum consecutive successes for the [probe] to be considered successful after having failed |
400 | | worker.readinessProbe.timeoutSeconds | int | `3` | Number of seconds after which the [probe] times out |
401 | | worker.replicas | int | `1` | The number of worker pods to run |
402 | | worker.resources | object | `{}` | Resource limits and requests for the authentik worker |
403 | | worker.securityContext | object | `{}` (See [values.yaml]) | authentik worker pod-level security context |
404 | | worker.serviceAccountName | string | `nil` | serviceAccount to use for authentik worker pods. If set, overrides the value used when serviceAccount.create is true |
405 | | worker.startupProbe.exec.command[0] | string | `"ak"` | |
406 | | worker.startupProbe.exec.command[1] | string | `"healthcheck"` | |
407 | | worker.startupProbe.failureThreshold | int | `60` | Minimum consecutive failures for the [probe] to be considered failed after having succeeded |
408 | | worker.startupProbe.initialDelaySeconds | int | `30` | Number of seconds after the container has started before [probe] is initiated |
409 | | worker.startupProbe.periodSeconds | int | `10` | How often (in seconds) to perform the [probe] |
410 | | worker.startupProbe.successThreshold | int | `1` | Minimum consecutive successes for the [probe] to be considered successful after having failed |
411 | | worker.startupProbe.timeoutSeconds | int | `3` | Number of seconds after which the [probe] times out |
412 | | worker.terminationGracePeriodSeconds | int | `30` | terminationGracePeriodSeconds for container lifecycle hook |
413 | | worker.tolerations | list | `[]` (defaults to global.tolerations) | [Tolerations] for use with node taints |
414 | | worker.topologySpreadConstraints | list | `[]` (defaults to global.topologySpreadConstraints) | Assign custom [TopologySpreadConstraints] rules to the authentik worker # Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ # If labelSelector is left out, it will default to the labelSelector configuration of the deployment |
415 | | worker.volumeMounts | list | `[]` | Additional volumeMounts to the authentik worker main container |
416 | | worker.volumes | list | `[]` | Additional volumes to the authentik worker pod |
417 |
418 | ---
419 | [affinity]: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
420 | [DNS configuration]: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
421 | [HPA]: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
422 | [MetricRelabelConfigs]: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs
423 | [Node selector]: https://kubernetes.io/docs/user-guide/node-selection/
424 | [PodDisruptionBudget]: https://kubernetes.io/docs/concepts/workloads/pods/disruptions/#pod-disruption-budgets
425 | [probe]: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
426 | [RelabelConfigs]: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
427 | [Tolerations]: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
428 | [TopologySpreadConstraints]: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
429 | [values.yaml]: values.yaml
430 |
--------------------------------------------------------------------------------
/charts/authentik/values.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | # -- Provide a name in place of `authentik`. Prefer using global.nameOverride if possible
3 | nameOverride: ""
4 | # -- String to fully override `"authentik.fullname"`. Prefer using global.fullnameOverride if possible
5 | fullnameOverride: ""
6 | # -- Override the Kubernetes version, which is used to evaluate certain manifests
7 | kubeVersionOverride: ""
8 |
9 |
10 | ## Globally shared configuration for authentik components.
11 | global:
12 |
13 | # To override bitnami images
14 | security:
15 | allowInsecureImages: true
16 |
17 | # -- Provide a name in place of `authentik`
18 | nameOverride: ""
19 | # -- String to fully override `"authentik.fullname"`
20 | fullnameOverride: ""
21 | # -- A custom namespace to override the default namespace for the deployed resources.
22 | namespaceOverride: ""
23 | # -- Common labels for all resources.
24 | additionalLabels: {}
25 | # app: authentik
26 |
27 | # Number of old deployment ReplicaSets to retain. The rest will be garbage collected.
28 | revisionHistoryLimit: 3
29 |
30 | # Default image used by all authentik components. For GeoIP configuration, see the geoip values below.
31 | image:
32 | # -- If defined, a repository applied to all authentik deployments
33 | repository: ghcr.io/goauthentik/server
34 | # -- Overrides the global authentik whose default is the chart appVersion
35 | tag: ""
36 | # -- If defined, an image digest applied to all authentik deployments
37 | digest: ""
38 | # -- If defined, an imagePullPolicy applied to all authentik deployments
39 | pullPolicy: IfNotPresent
40 |
41 | # -- Secrets with credentials to pull images from a private registry
42 | imagePullSecrets: []
43 |
44 | # -- Annotations for all deployed Deployments
45 | deploymentAnnotations: {}
46 |
47 | # -- Annotations for all deployed pods
48 | podAnnotations: {}
49 |
50 | # -- Annotations for all deployed secrets
51 | secretAnnotations: {}
52 |
53 | # -- Labels for all deployed pods
54 | podLabels: {}
55 |
56 | # -- Add Prometheus scrape annotations to all metrics services. This can be used as an alternative to the ServiceMonitors.
57 | addPrometheusAnnotations: false
58 |
59 | # -- Toggle and define pod-level security context.
60 | # @default -- `{}` (See [values.yaml])
61 | securityContext: {}
62 | # runAsUser: 1000
63 | # runAsGroup: 1000
64 | # fsGroup: 1000
65 |
66 | # -- Mapping between IP and hostnames that will be injected as entries in the pod's hosts files
67 | hostAliases: []
68 | # - ip: 10.20.30.40
69 | # hostnames:
70 | # - my.hostname
71 |
72 | # -- Default priority class for all components
73 | priorityClassName: ""
74 |
75 | # -- Default node selector for all components
76 | nodeSelector: {}
77 |
78 | # -- Default tolerations for all components
79 | tolerations: []
80 |
81 | # Default affinity preset for all components
82 | affinity:
83 | # -- Default pod anti-affinity rules. Either: `none`, `soft` or `hard`
84 | podAntiAffinity: soft
85 | # Node affinity rules
86 | nodeAffinity:
87 | # -- Default node affinity rules. Either `none`, `soft` or `hard`
88 | type: hard
89 | # -- Default match expressions for node affinity
90 | matchExpressions: []
91 | # - key: topology.kubernetes.io/zone
92 | # operator: In
93 | # values:
94 | # - zonea
95 | # - zoneb
96 |
97 | # -- Default [TopologySpreadConstraints] rules for all components
98 | ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
99 | topologySpreadConstraints: []
100 | # - maxSkew: 1
101 | # topologyKey: topology.kubernetes.io/zone
102 | # whenUnsatisfiable: DoNotSchedule
103 |
104 | # -- Deployment strategy for all deployed Deployments
105 | deploymentStrategy: {}
106 | # type: RollingUpdate
107 | # rollingUpdate:
108 | # maxSurge: 25%
109 | # maxUnavailable: 25%
110 |
111 | # -- Environment variables to pass to all deployed Deployments. Does not apply to GeoIP
112 | # See configuration options at https://goauthentik.io/docs/installation/configuration/
113 | # @default -- `[]` (See [values.yaml])
114 | env: []
115 | # - name: AUTHENTIK_VAR_NAME
116 | # value: VALUE
117 | # - name: AUTHENTIK_VAR_OTHER
118 | # valueFrom:
119 | # secretKeyRef:
120 | # name: secret-name
121 | # key: secret-key
122 | # - name: AUTHENTIK_VAR_ANOTHER
123 | # valueFrom:
124 | # configMapKeyRef:
125 | # name: config-map-name
126 | # key: config-map-key
127 |
128 | # -- envFrom to pass to all deployed Deployments. Does not apply to GeoIP
129 | # @default -- `[]` (See [values.yaml])
130 | envFrom: []
131 | # - configMapRef:
132 | # name: config-map-name
133 | # - secretRef:
134 | # name: secret-name
135 |
136 | # -- Additional volumeMounts to all deployed Deployments. Does not apply to GeoIP
137 | # @default -- `[]` (See [values.yaml])
138 | volumeMounts: []
139 | # - name: custom
140 | # mountPath: /custom
141 |
142 | # -- Additional volumes to all deployed Deployments.
143 | # @default -- `[]` (See [values.yaml])
144 | volumes: []
145 | # - name: custom
146 | # emptyDir: {}
147 |
148 |
149 | ## Authentik configuration
150 | authentik:
151 | # -- whether to create the authentik configuration secret
152 | enabled: true
153 | # -- Log level for server and worker
154 | log_level: info
155 | # -- Secret key used for cookie singing and unique user IDs,
156 | # don't change this after the first install
157 | secret_key: ""
158 | events:
159 | context_processors:
160 | # -- Path for the GeoIP City database. If the file doesn't exist, GeoIP features are disabled.
161 | geoip: /geoip/GeoLite2-City.mmdb
162 | # -- Path for the GeoIP ASN database. If the file doesn't exist, GeoIP features are disabled.
163 | asn: /geoip/GeoLite2-ASN.mmdb
164 | web:
165 | # -- Relative path the authentik instance will be available at. Value _must_ contain both a leading and trailing slash.
166 | path: /
167 | email:
168 | # -- SMTP Server emails are sent from, fully optional
169 | host: ""
170 | # -- SMTP server port
171 | port: 587
172 | # -- SMTP credentials, when left empty, no authentication will be done
173 | username: ""
174 | # -- SMTP credentials, when left empty, no authentication will be done
175 | password: ""
176 | # -- Use StartTLS. Enable either use_tls or use_ssl, they can't be enabled at the same time.
177 | use_tls: false
178 | # -- Use SSL. Enable either use_tls or use_ssl, they can't be enabled at the same time.
179 | use_ssl: false
180 | # -- Connection timeout
181 | timeout: 30
182 | # -- Email from address, can either be in the format "foo@bar.baz" or "authentik "
183 | from: ""
184 | outposts:
185 | # -- Template used for managed outposts. The following placeholders can be used
186 | # %(type)s - the type of the outpost
187 | # %(version)s - version of your authentik install
188 | # %(build_hash)s - only for beta versions, the build hash of the image
189 | container_image_base: ghcr.io/goauthentik/%(type)s:%(version)s
190 | error_reporting:
191 | # -- This sends anonymous usage-data, stack traces on errors and
192 | # performance data to sentry.beryju.org, and is fully opt-in
193 | enabled: false
194 | # -- This is a string that is sent to sentry with your error reports
195 | environment: "k8s"
196 | # -- Send PII (Personally identifiable information) data to sentry
197 | send_pii: false
198 | postgresql:
199 | # -- set the postgresql hostname to talk to
200 | # if unset and .Values.postgresql.enabled == true, will generate the default
201 | # @default -- `{{ .Release.Name }}-postgresql`
202 | host: "{{ .Release.Name }}-postgresql"
203 | # -- postgresql Database name
204 | # @default -- `authentik`
205 | name: "authentik"
206 | # -- postgresql Username
207 | # @default -- `authentik`
208 | user: "authentik"
209 | password: ""
210 | port: 5432
211 |
212 | blueprints:
213 | # -- List of config maps to mount blueprints from.
214 | # Only keys in the configMap ending with `.yaml` will be discovered and applied.
215 | configMaps: []
216 | # -- List of secrets to mount blueprints from.
217 | # Only keys in the secret ending with `.yaml` will be discovered and applied.
218 | secrets: []
219 |
220 |
221 | ## authentik server
222 | server:
223 | # -- whether to enable server resources
224 | enabled: true
225 |
226 | # -- authentik server name
227 | name: server
228 |
229 | # -- The number of server pods to run
230 | replicas: 1
231 |
232 | ## authentik server Horizontal Pod Autoscaler
233 | autoscaling:
234 | # -- Enable Horizontal Pod Autoscaler ([HPA]) for the authentik server
235 | enabled: false
236 | # -- Minimum number of replicas for the authentik server [HPA]
237 | minReplicas: 1
238 | # -- Maximum number of replicas for the authentik server [HPA]
239 | maxReplicas: 5
240 | # -- Average CPU utilization percentage for the authentik server [HPA]
241 | targetCPUUtilizationPercentage: 50
242 | # -- Average memory utilization percentage for the authentik server [HPA]
243 | targetMemoryUtilizationPercentage: ~
244 | # -- Configures the scaling behavior of the target in both Up and Down directions.
245 | behavior: {}
246 | # scaleDown:
247 | # stabilizationWindowSeconds: 300
248 | # policies:
249 | # - type: Pods
250 | # value: 1
251 | # periodSeconds: 180
252 | # scaleUp:
253 | # stabilizationWindowSeconds: 300
254 | # policies:
255 | # - type: Pods
256 | # value: 2
257 | # periodSeconds: 60
258 | # -- Configures custom HPA metrics for the authentik server
259 | # Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
260 | metrics: []
261 |
262 | ## authentik server Pod Disruption Budget
263 | ## Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
264 | pdb:
265 | # -- Deploy a [PodDistrubtionBudget] for the authentik server
266 | enabled: false
267 | # -- Labels to be added to the authentik server pdb
268 | labels: {}
269 | # -- Annotations to be added to the authentik server pdb
270 | annotations: {}
271 | # -- Number of pods that are available after eviction as number or percentage (eg.: 50%)
272 | # @default -- `""` (defaults to 0 if not specified)
273 | minAvailable: ""
274 | # -- Number of pods that are unavailable after eviction as number or percentage (eg.: 50%)
275 | ## Has higher precedence over `server.pdb.minAvailable`
276 | maxUnavailable: ""
277 |
278 | ## authentik server image
279 | ## This should match what is deployed in the worker. Prefer using global.image
280 | image:
281 | # -- Repository to use to the authentik server
282 | # @default -- `""` (defaults to global.image.repository)
283 | repository: "" # defaults to global.image.repository
284 | # -- Tag to use to the authentik server
285 | # @default -- `""` (defaults to global.image.tag)
286 | tag: "" # defaults to global.image.tag
287 | # -- Digest to use to the authentik server
288 | # @default -- `""` (defaults to global.image.digest)
289 | digest: "" # defaults to global.image.digest
290 | # -- Image pull policy to use to the authentik server
291 | # @default -- `""` (defaults to global.image.pullPolicy)
292 | pullPolicy: "" # defaults to global.image.pullPolicy
293 |
294 | # -- Secrets with credentials to pull images from a private registry
295 | # @default -- `[]` (defaults to global.imagePullSecrets)
296 | imagePullSecrets: []
297 |
298 | # -- Environment variables to pass to the authentik server. Does not apply to GeoIP
299 | # See configuration options at https://goauthentik.io/docs/installation/configuration/
300 | # @default -- `[]` (See [values.yaml])
301 | env: []
302 | # - name: AUTHENTIK_VAR_NAME
303 | # value: VALUE
304 | # - name: AUTHENTIK_VAR_OTHER
305 | # valueFrom:
306 | # secretKeyRef:
307 | # name: secret-name
308 | # key: secret-key
309 | # - name: AUTHENTIK_VAR_ANOTHER
310 | # valueFrom:
311 | # configMapKeyRef:
312 | # name: config-map-name
313 | # key: config-map-key
314 |
315 | # -- envFrom to pass to the authentik server. Does not apply to GeoIP
316 | # @default -- `[]` (See [values.yaml])
317 | envFrom: []
318 | # - configMapRef:
319 | # name: config-map-name
320 | # - secretRef:
321 | # name: secret-name
322 |
323 | # -- Specify postStart and preStop lifecycle hooks for you authentik server container
324 | lifecycle: {}
325 |
326 | # -- Additional containers to be added to the authentik server pod
327 | ## Note: Supports use of custom Helm templates
328 | extraContainers: []
329 | # - name: my-sidecar
330 | # image: nginx:latest
331 |
332 | # -- Init containers to add to the authentik server pod
333 | ## Note: Supports use of custom Helm templates
334 | initContainers: []
335 | # - name: download-tools
336 | # image: alpine:3
337 | # command: [sh, -c]
338 | # args:
339 | # - echo init
340 |
341 | # -- Additional volumeMounts to the authentik server main container
342 | volumeMounts: []
343 | # - name: custom
344 | # mountPath: /custom
345 |
346 | # -- Additional volumes to the authentik server pod
347 | volumes: []
348 | # - name: custom
349 | # emptyDir: {}
350 |
351 | # -- Annotations to be added to the authentik server Deployment
352 | deploymentAnnotations: {}
353 |
354 | # -- Annotations to be added to the authentik server pods
355 | podAnnotations: {}
356 |
357 | # -- Labels to be added to the authentik server pods
358 | podLabels: {}
359 |
360 | # -- Resource limits and requests for the authentik server
361 | resources: {}
362 | # requests:
363 | # cpu: 100m
364 | # memory: 512Mi
365 | # limits:
366 | # memory: 512Mi
367 |
368 | # authentik server container ports
369 | containerPorts:
370 | # -- http container port
371 | http: 9000
372 | # -- https container port
373 | https: 9443
374 | # -- metrics container port
375 | metrics: 9300
376 |
377 | # -- Host Network for authentik server pods
378 | hostNetwork: false
379 |
380 | # -- [DNS configuration]
381 | dnsConfig: {}
382 | # -- Alternative DNS policy for authentik server pods
383 | dnsPolicy: ""
384 |
385 | # -- serviceAccount to use for authentik server pods
386 | serviceAccountName: ~
387 |
388 | # -- authentik server pod-level security context
389 | # @default -- `{}` (See [values.yaml])
390 | securityContext: {}
391 | # runAsUser: 1000
392 | # runAsGroup: 1000
393 | # fsGroup: 1000
394 |
395 | # -- authentik server container-level security context
396 | # @default -- See [values.yaml]
397 | containerSecurityContext: {}
398 | # Not all of the following has been tested. Use at your own risk.
399 | # runAsNonRoot: true
400 | # readOnlyRootFilesystem: true
401 | # allowPrivilegeEscalation: false
402 | # seccomProfile:
403 | # type: RuntimeDefault
404 | # capabilities:
405 | # drop:
406 | # - ALL
407 |
408 | ## Liveness, readiness and startup probes for authentik server
409 | ## Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
410 | livenessProbe:
411 | # -- Minimum consecutive failures for the [probe] to be considered failed after having succeeded
412 | failureThreshold: 3
413 | # -- Number of seconds after the container has started before [probe] is initiated
414 | initialDelaySeconds: 5
415 | # -- How often (in seconds) to perform the [probe]
416 | periodSeconds: 10
417 | # -- Minimum consecutive successes for the [probe] to be considered successful after having failed
418 | successThreshold: 1
419 | # -- Number of seconds after which the [probe] times out
420 | timeoutSeconds: 3
421 | ## Probe configuration
422 | httpGet:
423 | path: "{{ .Values.authentik.web.path }}-/health/live/"
424 | port: http
425 |
426 | readinessProbe:
427 | # -- Minimum consecutive failures for the [probe] to be considered failed after having succeeded
428 | failureThreshold: 3
429 | # -- Number of seconds after the container has started before [probe] is initiated
430 | initialDelaySeconds: 5
431 | # -- How often (in seconds) to perform the [probe]
432 | periodSeconds: 10
433 | # -- Minimum consecutive successes for the [probe] to be considered successful after having failed
434 | successThreshold: 1
435 | # -- Number of seconds after which the [probe] times out
436 | timeoutSeconds: 3
437 | ## Probe configuration
438 | httpGet:
439 | path: "{{ .Values.authentik.web.path }}-/health/ready/"
440 | port: http
441 |
442 | startupProbe:
443 | # -- Minimum consecutive failures for the [probe] to be considered failed after having succeeded
444 | failureThreshold: 60
445 | # -- Number of seconds after the container has started before [probe] is initiated
446 | initialDelaySeconds: 5
447 | # -- How often (in seconds) to perform the [probe]
448 | periodSeconds: 10
449 | # -- Minimum consecutive successes for the [probe] to be considered successful after having failed
450 | successThreshold: 1
451 | # -- Number of seconds after which the [probe] times out
452 | timeoutSeconds: 3
453 | ## Probe configuration
454 | httpGet:
455 | path: "{{ .Values.authentik.web.path }}-/health/live/"
456 | port: http
457 |
458 | # -- terminationGracePeriodSeconds for container lifecycle hook
459 | terminationGracePeriodSeconds: 30
460 |
461 | # -- Prority class for the authentik server pods
462 | # @default -- `""` (defaults to global.priorityClassName)
463 | priorityClassName: ""
464 |
465 | # -- [Node selector]
466 | # @default -- `{}` (defaults to global.nodeSelector)
467 | nodeSelector: {}
468 |
469 | # -- [Tolerations] for use with node taints
470 | # @default -- `[]` (defaults to global.tolerations)
471 | tolerations: []
472 |
473 | # -- Assign custom [affinity] rules to the deployment
474 | # @default -- `{}` (defaults to the global.affinity preset)
475 | affinity: {}
476 |
477 | # -- Assign custom [TopologySpreadConstraints] rules to the authentik server
478 | # @default -- `[]` (defaults to global.topologySpreadConstraints)
479 | ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
480 | ## If labelSelector is left out, it will default to the labelSelector configuration of the deployment
481 | topologySpreadConstraints: []
482 | # - maxSkew: 1
483 | # topologyKey: topology.kubernetes.io/zone
484 | # whenUnsatisfiable: DoNotSchedule
485 |
486 | # -- Deployment strategy to be added to the authentik server Deployment
487 | # @default -- `{}` (defaults to global.deploymentStrategy)
488 | deploymentStrategy: {}
489 | # type: RollingUpdate
490 | # rollingUpdate:
491 | # maxSurge: 25%
492 | # maxUnavailable: 25%
493 |
494 | ## authentik server service configuration
495 | service:
496 | # -- authentik server service annotations
497 | annotations: {}
498 | # -- authentik server service labels
499 | labels: {}
500 | # -- authentik server service type
501 | type: ClusterIP
502 | # -- authentik server service http port for NodePort service type (only if `server.service.type` is set to `NodePort`)
503 | nodePortHttp: 30080
504 | # -- authentik server service https port for NodePort service type (only if `server.service.type` is set to `NodePort`)
505 | nodePortHttps: 30443
506 | # -- authentik server service http port
507 | servicePortHttp: 80
508 | # -- authentik server service https port
509 | servicePortHttps: 443
510 | # -- authentik server service http port name
511 | servicePortHttpName: http
512 | # -- authentik server service https port name
513 | servicePortHttpsName: https
514 | # -- authentik server service http port appProtocol
515 | # servicePortHttpAppProtocol: HTTP
516 | # -- authentik server service https port appProtocol
517 | # servicePortHttpsAppProtocol: HTTPS
518 | # -- LoadBalancer will get created with the IP specified in this field
519 | loadBalancerIP: ""
520 | # -- Source IP ranges to allow access to service from
521 | loadBalancerSourceRanges: []
522 | # -- authentik server service external IPs
523 | externalIPs: []
524 | # -- Denotes if this service desires to route external traffic to node-local or cluster-wide endpoints
525 | externalTrafficPolicy: ""
526 | # -- Used to maintain session affinity. Supports `ClientIP` and `None`
527 | sessionAffinity: ""
528 | # -- Session affinity configuration
529 | sessionAffinityConfig: {}
530 |
531 | ## authentik server metrics service configuration
532 | metrics:
533 | # -- deploy metrics service
534 | enabled: false
535 | service:
536 | # -- metrics service type
537 | type: ClusterIP
538 | # -- metrics service clusterIP. `None` makes a "headless service" (no virtual IP)
539 | clusterIP: ""
540 | # -- metrics service annotations
541 | annotations: {}
542 | # -- metrics service labels
543 | labels: {}
544 | # -- metrics service port
545 | servicePort: 9300
546 | # -- metrics service port name
547 | portName: metrics
548 | serviceMonitor:
549 | # -- enable a prometheus ServiceMonitor
550 | enabled: false
551 | # -- Prometheus ServiceMonitor interval
552 | interval: 30s
553 | # -- Prometheus ServiceMonitor scrape timeout
554 | scrapeTimeout: 3s
555 | # -- Prometheus [RelabelConfigs] to apply to samples before scraping
556 | relabelings: []
557 | # -- Prometheus [MetricsRelabelConfigs] to apply to samples before ingestion
558 | metricRelabelings: []
559 | # -- Prometheus ServiceMonitor selector
560 | selector: {}
561 | # prometheus: kube-prometheus
562 |
563 | # -- Prometheus ServiceMonitor scheme
564 | scheme: ""
565 | # -- Prometheus ServiceMonitor tlsConfig
566 | tlsConfig: {}
567 | # -- Prometheus ServiceMonitor namespace
568 | namespace: ""
569 | # -- Prometheus ServiceMonitor labels
570 | labels: {}
571 | # -- Prometheus ServiceMonitor annotations
572 | annotations: {}
573 |
574 | ingress:
575 | # -- enable an ingress resource for the authentik server
576 | enabled: false
577 | # -- additional ingress annotations
578 | annotations: {}
579 | # -- additional ingress labels
580 | labels: {}
581 | # -- defines which ingress controller will implement the resource
582 | ingressClassName: ""
583 | # -- List of ingress hosts
584 | hosts: []
585 | # - authentik.domain.tld
586 |
587 | # -- List of ingress paths
588 | paths:
589 | - "{{ .Values.authentik.web.path }}"
590 | # -- Ingress path type. One of `Exact`, `Prefix` or `ImplementationSpecific`
591 | pathType: Prefix
592 | # -- additional ingress paths
593 | extraPaths: []
594 | # - path: /*
595 | # pathType: Prefix
596 | # backend:
597 | # service:
598 | # name: ssl-redirect
599 | # port:
600 | # name: use-annotation
601 |
602 | # -- ingress TLS configuration
603 | tls: []
604 | # - secretName: authentik-tls
605 | # hosts:
606 | # - authentik.domain.tld
607 |
608 | # -- uses `server.service.servicePortHttps` instead of `server.service.servicePortHttp`
609 | https: false
610 |
611 | route:
612 | main:
613 | # -- enable an HTTPRoute resource for the authentik server.
614 | # Be aware that this is an early beta of this feature. We don't guarantee this works and is subject to change.
615 | enabled: false
616 | # -- Set the route apiVersion
617 | apiVersion: gateway.networking.k8s.io/v1
618 | # -- Set the route kind
619 | kind: HTTPRoute
620 |
621 | # -- Route annotations
622 | annotations: {}
623 | # -- Route labels
624 | labels: {}
625 |
626 | # -- Route hostnames
627 | hostnames: []
628 | # -- Reference to parent gateways
629 | parentRefs: []
630 |
631 | # -- Create http route for redirect (https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/#http-to-https-redirects).
632 | # Take care that you only enable this on the http listener of the gateway to avoid an infinite redirect.
633 | # Matches, filters and additionalRules will be ignored if this is set to true
634 | httpsRedirect: false
635 |
636 | # -- uses `server.service.servicePortHttps` instead of `server.service.servicePortHttp`
637 | https: false
638 |
639 | # -- Route matches
640 | matches:
641 | - path:
642 | type: PathPrefix
643 | value: "{{ .Values.authentik.web.path }}"
644 |
645 | # -- Route filters
646 | filters: []
647 |
648 | # -- Additional custom rules that can be added to the route
649 | additionalRules: []
650 |
651 |
652 | ## authentik worker
653 | worker:
654 | # -- whether to enable worker resources
655 | enabled: true
656 |
657 | # -- authentik worker name
658 | name: worker
659 |
660 | # -- The number of worker pods to run
661 | replicas: 1
662 |
663 | ## authentik worker Horizontal Pod Autoscaler
664 | autoscaling:
665 | # -- Enable Horizontal Pod Autoscaler ([HPA]) for the authentik worker
666 | enabled: false
667 | # -- Minimum number of replicas for the authentik worker [HPA]
668 | minReplicas: 1
669 | # -- Maximum number of replicas for the authentik worker [HPA]
670 | maxReplicas: 5
671 | # -- Average CPU utilization percentage for the authentik worker [HPA]
672 | targetCPUUtilizationPercentage: 50
673 | # -- Average memory utilization percentage for the authentik worker [HPA]
674 | targetMemoryUtilizationPercentage: ~
675 | # -- Configures the scaling behavior of the target in both Up and Down directions.
676 | behavior: {}
677 | # scaleDown:
678 | # stabilizationWindowSeconds: 300
679 | # policies:
680 | # - type: Pods
681 | # value: 1
682 | # periodSeconds: 180
683 | # scaleUp:
684 | # stabilizationWindowSeconds: 300
685 | # policies:
686 | # - type: Pods
687 | # value: 2
688 | # periodSeconds: 60
689 | # -- Configures custom HPA metrics for the authentik worker
690 | # Ref: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
691 | metrics: []
692 |
693 | ## authentik worker Pod Disruption Budget
694 | ## Ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
695 | pdb:
696 | # -- Deploy a [PodDistrubtionBudget] for the authentik worker
697 | enabled: false
698 | # -- Labels to be added to the authentik worker pdb
699 | labels: {}
700 | # -- Annotations to be added to the authentik worker pdb
701 | annotations: {}
702 | # -- Number of pods that are available after eviction as number or percentage (eg.: 50%)
703 | # @default -- `""` (defaults to 0 if not specified)
704 | minAvailable: ""
705 | # -- Number of pods that are unavailable after eviction as number or percentage (eg.: 50%)
706 | ## Has higher precedence over `worker.pdb.minAvailable`
707 | maxUnavailable: ""
708 |
709 | ## authentik worker image
710 | ## This should match what is deployed in the server. Prefer using global.image
711 | image:
712 | # -- Repository to use to the authentik worker
713 | # @default -- `""` (defaults to global.image.repository)
714 | repository: "" # defaults to global.image.repository
715 | # -- Tag to use to the authentik worker
716 | # @default -- `""` (defaults to global.image.tag)
717 | tag: "" # defaults to global.image.tag
718 | # -- Digest to use to the authentik worker
719 | # @default -- `""` (defaults to global.image.digest)
720 | digest: "" # defaults to global.image.digest
721 | # -- Image pull policy to use to the authentik worker
722 | # @default -- `""` (defaults to global.image.pullPolicy)
723 | pullPolicy: "" # defaults to global.image.pullPolicy
724 |
725 | # -- Secrets with credentials to pull images from a private registry
726 | # @default -- `[]` (defaults to global.imagePullSecrets)
727 | imagePullSecrets: []
728 |
729 | # -- Environment variables to pass to the authentik worker. Does not apply to GeoIP
730 | # See configuration options at https://goauthentik.io/docs/installation/configuration/
731 | # @default -- `[]` (See [values.yaml])
732 | env: []
733 | # - name: AUTHENTIK_VAR_NAME
734 | # value: VALUE
735 | # - name: AUTHENTIK_VAR_OTHER
736 | # valueFrom:
737 | # secretKeyRef:
738 | # name: secret-name
739 | # key: secret-key
740 | # - name: AUTHENTIK_VAR_ANOTHER
741 | # valueFrom:
742 | # configMapKeyRef:
743 | # name: config-map-name
744 | # key: config-map-key
745 |
746 | # -- envFrom to pass to the authentik worker. Does not apply to GeoIP
747 | # @default -- `[]` (See [values.yaml])
748 | envFrom: []
749 | # - configMapRef:
750 | # name: config-map-name
751 | # - secretRef:
752 | # name: secret-name
753 |
754 | # -- Specify postStart and preStop lifecycle hooks for you authentik worker container
755 | lifecycle: {}
756 |
757 | # -- Additional containers to be added to the authentik worker pod
758 | ## Note: Supports use of custom Helm templates
759 | extraContainers: []
760 | # - name: my-sidecar
761 | # image: nginx:latest
762 |
763 | # -- Init containers to add to the authentik worker pod
764 | ## Note: Supports use of custom Helm templates
765 | initContainers: []
766 | # - name: download-tools
767 | # image: alpine:3
768 | # command: [sh, -c]
769 | # args:
770 | # - echo init
771 |
772 | # -- Additional volumeMounts to the authentik worker main container
773 | volumeMounts: []
774 | # - name: custom
775 | # mountPath: /custom
776 |
777 | # -- Additional volumes to the authentik worker pod
778 | volumes: []
779 | # - name: custom
780 | # emptyDir: {}
781 |
782 | # -- Annotations to be added to the authentik worker Deployment
783 | deploymentAnnotations: {}
784 |
785 | # -- Annotations to be added to the authentik worker pods
786 | podAnnotations: {}
787 |
788 | # -- Labels to be added to the authentik worker pods
789 | podLabels: {}
790 |
791 | # -- Resource limits and requests for the authentik worker
792 | resources: {}
793 | # requests:
794 | # cpu: 100m
795 | # memory: 512Mi
796 | # limits:
797 | # memory: 512Mi
798 |
799 | # authentik worker container ports
800 | containerPorts:
801 | # -- http container port
802 | http: 9000
803 | # -- metrics container port
804 | metrics: 9300
805 |
806 | # -- Host Network for authentik worker pods
807 | hostNetwork: false
808 |
809 | # -- [DNS configuration]
810 | dnsConfig: {}
811 | # -- Alternative DNS policy for authentik worker pods
812 | dnsPolicy: ""
813 |
814 | # -- serviceAccount to use for authentik worker pods. If set, overrides the value used when serviceAccount.create is true
815 | serviceAccountName: ~
816 | # -- (bool) automount behavior for service account token in worker pods. Only applies if worker.serviceAccountName is set.
817 | automountServiceAccountToken: ~
818 |
819 | # -- authentik worker pod-level security context
820 | # @default -- `{}` (See [values.yaml])
821 | securityContext: {}
822 | # runAsUser: 1000
823 | # runAsGroup: 1000
824 | # fsGroup: 1000
825 |
826 | # -- authentik worker container-level security context
827 | # @default -- See [values.yaml]
828 | containerSecurityContext: {}
829 | # Not all of the following has been tested. Use at your own risk.
830 | # runAsNonRoot: true
831 | # readOnlyRootFilesystem: true
832 | # allowPrivilegeEscalation: false
833 | # seccomProfile:
834 | # type: RuntimeDefault
835 | # capabilities:
836 | # drop:
837 | # - ALL
838 |
839 | livenessProbe:
840 | # -- Minimum consecutive failures for the [probe] to be considered failed after having succeeded
841 | failureThreshold: 3
842 | # -- Number of seconds after the container has started before [probe] is initiated
843 | initialDelaySeconds: 5
844 | # -- How often (in seconds) to perform the [probe]
845 | periodSeconds: 10
846 | # -- Minimum consecutive successes for the [probe] to be considered successful after having failed
847 | successThreshold: 1
848 | # -- Number of seconds after which the [probe] times out
849 | timeoutSeconds: 3
850 | ## Probe configuration
851 | exec:
852 | command:
853 | - ak
854 | - healthcheck
855 |
856 | readinessProbe:
857 | # -- Minimum consecutive failures for the [probe] to be considered failed after having succeeded
858 | failureThreshold: 3
859 | # -- Number of seconds after the container has started before [probe] is initiated
860 | initialDelaySeconds: 5
861 | # -- How often (in seconds) to perform the [probe]
862 | periodSeconds: 10
863 | # -- Minimum consecutive successes for the [probe] to be considered successful after having failed
864 | successThreshold: 1
865 | # -- Number of seconds after which the [probe] times out
866 | timeoutSeconds: 3
867 | ## Probe configuration
868 | exec:
869 | command:
870 | - ak
871 | - healthcheck
872 |
873 | startupProbe:
874 | # -- Minimum consecutive failures for the [probe] to be considered failed after having succeeded
875 | failureThreshold: 60
876 | # -- Number of seconds after the container has started before [probe] is initiated
877 | initialDelaySeconds: 30
878 | # -- How often (in seconds) to perform the [probe]
879 | periodSeconds: 10
880 | # -- Minimum consecutive successes for the [probe] to be considered successful after having failed
881 | successThreshold: 1
882 | # -- Number of seconds after which the [probe] times out
883 | timeoutSeconds: 3
884 | ## Probe configuration
885 | exec:
886 | command:
887 | - ak
888 | - healthcheck
889 |
890 | # -- terminationGracePeriodSeconds for container lifecycle hook
891 | terminationGracePeriodSeconds: 30
892 |
893 | # -- Prority class for the authentik worker pods
894 | # @default -- `""` (defaults to global.priorityClassName)
895 | priorityClassName: ""
896 |
897 | # -- [Node selector]
898 | # @default -- `{}` (defaults to global.nodeSelector)
899 | nodeSelector: {}
900 |
901 | # -- [Tolerations] for use with node taints
902 | # @default -- `[]` (defaults to global.tolerations)
903 | tolerations: []
904 |
905 | # -- Assign custom [affinity] rules to the deployment
906 | # @default -- `{}` (defaults to the global.affinity preset)
907 | affinity: {}
908 |
909 | # -- Assign custom [TopologySpreadConstraints] rules to the authentik worker
910 | # @default -- `[]` (defaults to global.topologySpreadConstraints)
911 | ## Ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
912 | ## If labelSelector is left out, it will default to the labelSelector configuration of the deployment
913 | topologySpreadConstraints: []
914 | # - maxSkew: 1
915 | # topologyKey: topology.kubernetes.io/zone
916 | # whenUnsatisfiable: DoNotSchedule
917 |
918 | # -- Deployment strategy to be added to the authentik worker Deployment
919 | # @default -- `{}` (defaults to global.deploymentStrategy)
920 | deploymentStrategy: {}
921 | # type: RollingUpdate
922 | # rollingUpdate:
923 | # maxSurge: 25%
924 | # maxUnavailable: 25%
925 |
926 | ## authentik worker metrics service configuration
927 | metrics:
928 | # -- deploy metrics service
929 | enabled: false
930 | service:
931 | # -- metrics service type
932 | type: ClusterIP
933 | # -- metrics service clusterIP. `None` makes a "headless service" (no virtual IP)
934 | clusterIP: ""
935 | # -- metrics service annotations
936 | annotations: {}
937 | # -- metrics service labels
938 | labels: {}
939 | # -- metrics service port
940 | servicePort: 9300
941 | # -- metrics service port name
942 | portName: metrics
943 | serviceMonitor:
944 | # -- enable a prometheus ServiceMonitor
945 | enabled: false
946 | # -- Prometheus ServiceMonitor interval
947 | interval: 30s
948 | # -- Prometheus ServiceMonitor scrape timeout
949 | scrapeTimeout: 3s
950 | # -- Prometheus [RelabelConfigs] to apply to samples before scraping
951 | relabelings: []
952 | # -- Prometheus [MetricsRelabelConfigs] to apply to samples before ingestion
953 | metricRelabelings: []
954 | # -- Prometheus ServiceMonitor selector
955 | selector: {}
956 | # prometheus: kube-prometheus
957 |
958 | # -- Prometheus ServiceMonitor scheme
959 | scheme: ""
960 | # -- Prometheus ServiceMonitor tlsConfig
961 | tlsConfig: {}
962 | # -- Prometheus ServiceMonitor namespace
963 | namespace: ""
964 | # -- Prometheus ServiceMonitor labels
965 | labels: {}
966 | # -- Prometheus ServiceMonitor annotations
967 | annotations: {}
968 |
969 |
970 | serviceAccount:
971 | # -- Create service account. Needed for managed outposts
972 | create: true
973 | # -- additional service account annotations
974 | annotations: {}
975 | serviceAccountSecret:
976 | # As we use the authentik-remote-cluster chart as subchart, and that chart
977 | # creates a service account secret by default which we don't need here,
978 | # disable its creation
979 | enabled: false
980 | fullnameOverride: authentik
981 |
982 |
983 | geoip:
984 | # -- enable GeoIP sidecars for the authentik server and worker pods
985 | enabled: false
986 |
987 | editionIds: "GeoLite2-City GeoLite2-ASN"
988 | # -- GeoIP update frequency, in hours
989 | updateInterval: 8
990 | # -- sign up under https://www.maxmind.com/en/geolite2/signup
991 | accountId: ""
992 | # -- sign up under https://www.maxmind.com/en/geolite2/signup
993 | licenseKey: ""
994 | ## use existing secret instead of values above
995 | existingSecret:
996 | # -- name of an existing secret to use instead of values above
997 | secretName: ""
998 | # -- key in the secret containing the account ID
999 | accountId: "account_id"
1000 | # -- key in the secret containing the license key
1001 | licenseKey: "license_key"
1002 |
1003 | image:
1004 | # -- If defined, a repository for GeoIP images
1005 | repository: ghcr.io/maxmind/geoipupdate
1006 | # -- If defined, a tag for GeoIP images
1007 | tag: v7.1.1
1008 | # -- If defined, an image digest for GeoIP images
1009 | digest: ""
1010 | # -- If defined, an imagePullPolicy for GeoIP images
1011 | pullPolicy: IfNotPresent
1012 |
1013 | # -- Environment variables to pass to the GeoIP containers
1014 | # @default -- `[]` (See [values.yaml])
1015 | env: []
1016 | # - name: GEOIPUPDATE_VAR_NAME
1017 | # value: VALUE
1018 | # - name: GEOIPUPDATE_VAR_OTHER
1019 | # valueFrom:
1020 | # secretKeyRef:
1021 | # name: secret-name
1022 | # key: secret-key
1023 | # - name: GEOIPUPDATE_VAR_ANOTHER
1024 | # valueFrom:
1025 | # configMapKeyRef:
1026 | # name: config-map-name
1027 | # key: config-map-key
1028 |
1029 | # -- envFrom to pass to the GeoIP containers
1030 | # @default -- `[]` (See [values.yaml])
1031 | envFrom: []
1032 | # - configMapRef:
1033 | # name: config-map-name
1034 | # - secretRef:
1035 | # name: secret-name
1036 |
1037 | # -- Additional volumeMounts to the GeoIP containers. Make sure the volumes exists for the server and the worker.
1038 | volumeMounts: []
1039 | # - name: custom
1040 | # mountPath: /custom
1041 |
1042 | # -- Resource limits and requests for GeoIP containers
1043 | resources: {}
1044 | # requests:
1045 | # cpu: 100m
1046 | # memory: 128Mi
1047 | # limits:
1048 | # memory: 128Mi
1049 |
1050 | # -- GeoIP container-level security context
1051 | # @default -- See [values.yaml]
1052 | containerSecurityContext: {}
1053 | # Not all of the following has been tested. Use at your own risk.
1054 | # runAsNonRoot: true
1055 | # readOnlyRootFilesystem: true
1056 | # allowPrivilegeEscalation: false
1057 | # seccomProfile:
1058 | # type: RuntimeDefault
1059 | # capabilities:
1060 | # drop:
1061 | # - ALL
1062 |
1063 |
1064 | prometheus:
1065 | rules:
1066 | enabled: false
1067 | # -- PrometheusRule namespace
1068 | namespace: ""
1069 | # -- PrometheusRule selector
1070 | selector: {}
1071 | # prometheus: kube-prometheus
1072 |
1073 | # -- PrometheusRule labels
1074 | labels: {}
1075 | # -- PrometheusRule annotations
1076 | annotations: {}
1077 | # -- PrometheusRuleGroup additional annotations
1078 | additionalRuleGroupAnnotations: {}
1079 |
1080 |
1081 | postgresql:
1082 | # -- enable the Bitnami PostgreSQL chart. Refer to https://github.com/bitnami/charts/blob/main/bitnami/postgresql/ for possible values.
1083 | enabled: false
1084 | image:
1085 | registry: docker.io
1086 | repository: library/postgres
1087 | tag: "17.7-bookworm"
1088 | auth:
1089 | username: authentik
1090 | database: authentik
1091 | # password: ""
1092 | primary:
1093 | args:
1094 | - -c
1095 | - config_file=/bitnami/postgresql/conf/postgresql.conf
1096 | - -c
1097 | - hba_file=/bitnami/postgresql/conf/pg_hba.conf
1098 | configuration: |
1099 | listen_addresses = '*'
1100 | port = '5432'
1101 | wal_level = 'replica'
1102 | fsync = 'on'
1103 | hot_standby = 'on'
1104 | log_connections = 'false'
1105 | log_disconnections = 'false'
1106 | log_hostname = 'false'
1107 | client_min_messages = 'error'
1108 | include_dir = 'conf.d'
1109 | pgHbaConfiguration: |
1110 | host all all 0.0.0.0/0 scram-sha-256
1111 | host all all ::/0 scram-sha-256
1112 | local all all scram-sha-256
1113 | host all all 127.0.0.1/32 scram-sha-256
1114 | host all all ::1/128 scram-sha-256
1115 | extendedConfiguration: |
1116 | max_connections = 500
1117 | extraEnvVars:
1118 | - name: POSTGRES_DB
1119 | value: '{{ (include "postgresql.v1.database" .) }}'
1120 | resourcesPreset: "none"
1121 | # persistence:
1122 | # enabled: true
1123 | # storageClass:
1124 | # accessModes:
1125 | # - ReadWriteOnce
1126 | containerSecurityContext:
1127 | readOnlyRootFilesystem: false
1128 | readReplicas:
1129 | resourcesPreset: "none"
1130 | backup:
1131 | resourcesPreset: "none"
1132 | passwordUpdateJob:
1133 | resourcesPreset: "none"
1134 | volumePermissions:
1135 | resourcesPreset: "none"
1136 | image:
1137 | repository: debian
1138 | tag: 13-slim
1139 | metrics:
1140 | resourcesPreset: "none"
1141 | image:
1142 | repository: prometheuscommunity/postgres-exporter
1143 | tag: v0.18.1
1144 |
1145 | # -- additional resources to deploy. Those objects are templated.
1146 | additionalObjects: []
1147 |
--------------------------------------------------------------------------------