mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 13:09:53 +00:00
traefik forward auth
This commit is contained in:
@@ -20,7 +20,7 @@ spec:
|
|||||||
# This is a YAML-formatted file.
|
# This is a YAML-formatted file.
|
||||||
# Declare variables to be passed into your templates.
|
# Declare variables to be passed into your templates.
|
||||||
|
|
||||||
replicaCount: 1
|
replicaCount: 2
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: emberstack/kubernetes-reflector
|
repository: emberstack/kubernetes-reflector
|
||||||
|
|||||||
@@ -240,7 +240,7 @@ spec:
|
|||||||
# -- Load Kubernetes IngressRoute provider
|
# -- Load Kubernetes IngressRoute provider
|
||||||
enabled: true
|
enabled: true
|
||||||
# -- Allows IngressRoute to reference resources in namespace other than theirs
|
# -- Allows IngressRoute to reference resources in namespace other than theirs
|
||||||
allowCrossNamespace: false
|
allowCrossNamespace: true
|
||||||
# -- Allows to reference ExternalName services in IngressRoute
|
# -- Allows to reference ExternalName services in IngressRoute
|
||||||
allowExternalNameServices: false
|
allowExternalNameServices: false
|
||||||
# -- Allows to return 503 when there is no endpoints available
|
# -- Allows to return 503 when there is no endpoints available
|
||||||
|
|||||||
20
traefik/middleware-traefik-forward-auth.yaml
Normal file
20
traefik/middleware-traefik-forward-auth.yaml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: authentik
|
||||||
|
spec:
|
||||||
|
forwardAuth:
|
||||||
|
address: http://authentik.michaelthomson.dev: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
|
||||||
Reference in New Issue
Block a user