middleware

This commit is contained in:
Ari Sosnovsky committed 2024-07-17 17:48:57 -04:00
1 parent 63da3f2bba
commit 17591a1d66
1 file changed
+24 -2
+24 -2
View File
@@ -10,7 +10,7 @@ spec:
match: "Host(`authentik.core.home.{{ .Values.global.domain }}`)"
middlewares:
- name: forwardauth-authentik
namespace: "{{ .Release.Namespace }}"
namespace: chart-authentik
priority: 10
services:
- kind: Service
@@ -28,4 +28,26 @@ spec:
tls:
secretName: tls-authentik.core.home.{{ .Values.global.domain }}
domains:
- main: authentik.core.home.{{ .Values.global.domain }}
- main: authentik.core.home.{{ .Values.global.domain }}
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: forwardauth-authentik
namespace: chart-authentik
spec:
forwardAuth:
address: http://authentik.core.home.{{ .Values.global.domain }}/outpost.goauthentik.io/auth/traefik
trustForwardHeader: true
authResponseHeaders:
- X-authentik-username
- X-authentik-groups
- X-authentik-email
- X-authentik-name
- X-authentik-uid
- X-authentik-jwt
- X-authentik-meta-jwks
- X-authentik-meta-outpost
- X-authentik-meta-provider
- X-authentik-meta-app
- X-authentik-meta-version