diff --git a/apps/prod/authelia/forward-auth-middleware.yaml b/apps/prod/authelia/forward-auth-middleware.yaml deleted file mode 100644 index 1858800..0000000 --- a/apps/prod/authelia/forward-auth-middleware.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# /apps/prod/authelia/forward-auth-middleware.yaml -apiVersion: traefik.io/v1alpha1 -kind: Middleware -metadata: - name: authelia - namespace: auth -spec: - forwardAuth: - address: 'http://authelia.auth.svc.cluster.local/api/verify?rd=https://auth.example.com' - trustForwardHeader: true - authResponseHeaders: - - "Remote-User" - - "Remote-Groups" - - "Remote-Email" - - "Remote-Name" diff --git a/apps/prod/authelia/ingress.yaml b/apps/prod/authelia/ingress.yaml deleted file mode 100644 index 2c1cfde..0000000 --- a/apps/prod/authelia/ingress.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# /apps/prod/authelia/ingress.yaml -apiVersion: traefik.io/v1alpha1 -kind: IngressRoute -metadata: - name: authelia-ingress - namespace: auth -spec: - entryPoints: - - websecure - routes: - - match: Host(`auth.example.com`) - kind: Rule - services: - - name: authelia - port: 80 diff --git a/apps/prod/authelia/kustomization.yaml b/apps/prod/authelia/kustomization.yaml index 8ada8c5..ac11aed 100644 --- a/apps/prod/authelia/kustomization.yaml +++ b/apps/prod/authelia/kustomization.yaml @@ -6,8 +6,6 @@ namespace: auth resources: - ../../base/authelia - release.yaml - - ingress.yaml - - forward-auth-middleware.yaml - users-database.enc.yaml configMapGenerator: diff --git a/apps/prod/authelia/values.yaml b/apps/prod/authelia/values.yaml index f1fc43a..e4c9f69 100644 --- a/apps/prod/authelia/values.yaml +++ b/apps/prod/authelia/values.yaml @@ -40,3 +40,20 @@ pod: - name: authelia-users-vol secret: secretName: authelia-users-secret + +ingress: + enabled: true + ingressClassName: "traefik" + traefikCRD: + enabled: true + middlewares: + auth: + nameOverride: "authelia" + authResponseHeaders: + - "Remote-User" + - "Remote-Groups" + - "Remote-Email" + - "Remote-Name" + matchOverride: Host(`auth.example.com`) + entryPoints: + - "websecure" \ No newline at end of file diff --git a/infrastructure/controllers/traefik/values.yaml b/infrastructure/controllers/traefik/values.yaml index 762ae19..56ae138 100644 --- a/infrastructure/controllers/traefik/values.yaml +++ b/infrastructure/controllers/traefik/values.yaml @@ -7,9 +7,8 @@ ingressRoute: enabled: true matchRule: Host(`traefik.example.com`) entryPoints: ["websecure"] - # middlewares: - # - name: "authelia@kubernetescrd" - # - namespace: "auth" + middlewares: + - name: "auth-authelia@kubernetescrd" providers: kubernetesCRD: allowCrossNamespace: true