k3s-cluster/cluster/apps/authentik/traefik-middleware.yaml

21 lines
581 B
YAML
Raw Normal View History

2023-04-07 03:01:51 +00:00
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: authentik
namespace: traefik
spec:
2023-04-07 03:03:15 +00:00
forwardAuth:
2023-04-07 03:01:51 +00:00
address: http://authentik-master.authentik:80/outpost.goauthentik.io/auth/traefik
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