mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-14 06:49:05 +02:00
Create forward auth
This commit is contained in:
@@ -40,7 +40,12 @@ spec:
|
||||
volumeMounts:
|
||||
- name: gh-auth-service-certs
|
||||
mountPath: /etc/gh-auth-service/ssl
|
||||
- name: zitadel-service-account
|
||||
mountPath: /etc/gh-auth-service/zitadel
|
||||
volumes:
|
||||
- name: gh-auth-service-certs
|
||||
secret:
|
||||
secretName: gh-auth-service-tls
|
||||
- name: zitadel-service-account
|
||||
secret:
|
||||
secretName: zitadel-service-account
|
||||
|
11
deployment/auth-service/forwardAuth.yaml
Normal file
11
deployment/auth-service/forwardAuth.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: auth-service
|
||||
spec:
|
||||
forwardAuth:
|
||||
address: https://gh-auth-service/auth
|
||||
authResponseHeaders:
|
||||
- id
|
||||
tls:
|
||||
insecureSkipVerify: true
|
@@ -4,6 +4,8 @@ namespace: generations-heritage
|
||||
|
||||
resources:
|
||||
- ./certificate.yaml
|
||||
- ./zitadel-acces-key.yaml
|
||||
- ./deployment.yaml
|
||||
- ./service.yaml
|
||||
- ./horizontalPodAutoScaler.yaml
|
||||
- ./forwardAuth.yaml
|
||||
|
Reference in New Issue
Block a user