feat: add ForwardAuth middleware, protect Longhorn and Hubble with Authentik

This commit is contained in:
2026-07-01 21:10:35 +01:00
parent 194128c463
commit 4ca7278782
3 changed files with 60 additions and 34 deletions
+21
View File
@@ -0,0 +1,21 @@
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: authentik-forwardauth
namespace: traefik
spec:
forwardAuth:
address: http://ak-outpost-traefik-forwardauth.authentik.svc.cluster.local:9000/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