k3s-cluster/kubernetes/main/apps/authentik/app/traefik-middleware.yaml

23 lines
612 B
YAML
Raw Normal View History

apiVersion: traefik.io/v1alpha1
2023-04-07 03:01:51 +00:00
kind: Middleware
metadata:
name: authentik
namespace: traefik
spec:
2023-04-07 03:03:15 +00:00
forwardAuth:
address: http://authentik-server.authentik/outpost.goauthentik.io/auth/traefik
2023-04-07 03:01:51 +00:00
trustForwardHeader: true
2023-04-07 03:04:19 +00:00
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
- X-WebAuth-User
- Remote-User