feat: envoy-gateway

This commit is contained in:
auricom
2025-08-19 00:13:40 +02:00
parent 5b82fd7742
commit c0dde8be0a
119 changed files with 998 additions and 1563 deletions

View 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}}

View 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