Skip to content

Commit

Permalink
use ictsc/traefik-forward-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
logica0419 committed Mar 5, 2025
1 parent 9d73553 commit 3b2ce2a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
spec:
containers:
- name: forward-auth
image: thomseddon/traefik-forward-auth:latest
image: ghcr.io/ictsc/traefik-forward-auth:latest
ports:
- containerPort: 4181
args:
Expand All @@ -23,6 +23,12 @@ spec:
- --default-provider=oidc
- --providers.oidc.issuer-url={{ required "A valid issuer is required." .Values.issuer }}
- --providers.oidc.client-id=dex-client
{{- if .Values.skipJwtBearerTokens }}
- --skip-jwt-bearer-tokens=true
{{- end }}
{{- if .Values.tokenPropagation }}
- --token-propagation=bearer
{{- end }}
env:
- name: PROVIDERS_OIDC_CLIENT_SECRET
valueFrom:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@ metadata:
spec:
forwardAuth:
address: http://{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local:4181
{{- if .Values.tokenPropagation }}
authResponseHeaders:
- X-Forwarded-User
- Authorization
{{- end }}
4 changes: 4 additions & 0 deletions manifest/infrastructure/forward-auth/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
issuer:
# (required) クッキーを発行したいドメインを配列で指定
domains:
# IDトークンをBearerに伝播させるか
tokenPropagation: false
# Bearerトークンがあった時、クッキーの検証をスキップするか
skipJwtBearerTokens: false
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ issuer: https://dex.drove-dev.ictsc.net
domains:
- drove-dev.ictsc.net
- contest-dev.ictsc.net
tokenPropagation: true
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
issuer: https://dex.drove.ictsc.net
domains:
- drove.ictsc.net
tokenPropagation: true

0 comments on commit 3b2ce2a

Please sign in to comment.