mirror of
https://github.com/auricom/home-cluster.git
synced 2025-09-17 18:24:14 +02:00
feat: envoy-gateway
This commit is contained in:
32
kubernetes/components/ext-auth/authentication.yaml
Normal file
32
kubernetes/components/ext-auth/authentication.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://schemas.budimanjojo.com/gateway.envoyproxy.io/securitypolicy_v1alpha1.json
|
||||
apiVersion: gateway.envoyproxy.io/v1alpha1
|
||||
kind: SecurityPolicy
|
||||
metadata:
|
||||
name: ${APP}
|
||||
spec:
|
||||
extAuth:
|
||||
headersToExtAuth:
|
||||
- X-Forwarded-For # this is here so we can get the real IP
|
||||
- X-Forwarded-Proto
|
||||
- authorization
|
||||
- header-authorization
|
||||
- proxy-authorization
|
||||
- accept
|
||||
- cookie
|
||||
failOpen: false
|
||||
http:
|
||||
backendRefs:
|
||||
- group: ""
|
||||
kind: Service
|
||||
name: authelia
|
||||
namespace: default
|
||||
port: 8888
|
||||
path: /api/authz/ext-authz/
|
||||
headersToBackend:
|
||||
- 'remote-*'
|
||||
- 'authelia-*'
|
||||
targetRefs:
|
||||
- group: ${EXT_AUTH_GROUP:-gateway.networking.k8s.io}
|
||||
kind: ${EXT_AUTH_KIND:-HTTPRoute}
|
||||
name: ${EXT_AUTH_TARGET:-${APP}}
|
6
kubernetes/components/ext-auth/kustomization.yaml
Normal file
6
kubernetes/components/ext-auth/kustomization.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
resources:
|
||||
- ./authentication.yaml
|
Reference in New Issue
Block a user