mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-12 13:59:08 +02:00
authZ+N chained
This commit is contained in:
20
deployment/auth-chain.yaml
Normal file
20
deployment/auth-chain.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: https-only
|
||||
spec:
|
||||
redirectScheme:
|
||||
scheme: https
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: auth-chain
|
||||
namespace: apps
|
||||
spec:
|
||||
chain:
|
||||
middlewares:
|
||||
- name: https-only
|
||||
- name: authn
|
||||
- name: authz
|
@@ -8,4 +8,4 @@ resources:
|
||||
- ./deployment.yaml
|
||||
- ./service.yaml
|
||||
- ./horizontalPodAutoScaler.yaml
|
||||
- ./forwardAuth.yaml
|
||||
- ./middleware.yaml
|
||||
|
11
deployment/authZ/middleware.yaml
Normal file
11
deployment/authZ/middleware.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: authz
|
||||
spec:
|
||||
forwardAuth:
|
||||
address: https://gh-authz/auth/
|
||||
authResponseHeaders:
|
||||
- id
|
||||
tls:
|
||||
insecureSkipVerify: true
|
@@ -15,3 +15,5 @@ spec:
|
||||
port: 443
|
||||
scheme: https
|
||||
serversTransport: gh-backend
|
||||
middlewares:
|
||||
- name: auth-chain
|
14
deployment/kustomization.yaml
Normal file
14
deployment/kustomization.yaml
Normal file
@@ -0,0 +1,14 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: generations-heritage
|
||||
|
||||
bases:
|
||||
- authZ
|
||||
- authN
|
||||
- backend
|
||||
- memgraph
|
||||
|
||||
resources:
|
||||
- ./cert-issuer.yaml
|
||||
- ./server-transport.yaml
|
||||
- ./auth-chain.yaml
|
Reference in New Issue
Block a user