Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions apps/faf-user-service/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
{{- if .Values.cors.enabled }}
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: faf-user-service-cors
spec:
headers:
accessControlAllowMethods:
- "GET"
- "POST"
- "OPTIONS"
accessControlAllowHeaders:
- "Content-Type"
- "Authorization"
- "X-HMAC"
accessControlAllowOriginListRegex:
{{- toYaml .Values.cors.allowOriginListRegex | nindent 6 }}
accessControlAllowCredentials: true
accessControlMaxAge: 600
addVaryHeader: true
---
{{- end }}
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
Expand All @@ -11,3 +33,7 @@ spec:
services:
- name: faf-user-service
port: 8080
{{- if .Values.cors.enabled }}
middlewares:
- name: faf-user-service-cors
{{- end }}
5 changes: 5 additions & 0 deletions apps/faf-user-service/values-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cors:
enabled: true
allowOriginListRegex:
- "^https?://localhost(:[0-9]+)?$"
- "^https?://127\\.0\\.0\\.1(:[0-9]+)?$"
3 changes: 3 additions & 0 deletions apps/faf-user-service/values.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
infisical-secret:
name: faf-user-service
cors:
enabled: false
allowOriginListRegex: []
25 changes: 25 additions & 0 deletions apps/ory-hydra/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
{{- if .Values.cors.enabled }}
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: ory-hydra-cors
spec:
headers:
accessControlAllowMethods:
- "GET"
- "POST"
- "OPTIONS"
accessControlAllowHeaders:
- "Content-Type"
- "Authorization"
- "X-HMAC"
accessControlAllowOriginListRegex:
{{- toYaml .Values.cors.allowOriginListRegex | nindent 6 }}
accessControlMaxAge: 600
addVaryHeader: true
---
{{- end }}
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
Expand All @@ -11,3 +32,7 @@ spec:
services:
- name: ory-hydra
port: 4444
{{- if .Values.cors.enabled }}
middlewares:
- name: ory-hydra-cors
{{- end }}
5 changes: 5 additions & 0 deletions apps/ory-hydra/values-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cors:
enabled: true
allowOriginListRegex:
- "^https?://localhost(:[0-9]+)?$"
- "^https?://127\\.0\\.0\\.1(:[0-9]+)?$"
3 changes: 3 additions & 0 deletions apps/ory-hydra/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ image:
tag: "v25.4.0"
infisical-secret:
name: ory-hydra
cors:
enabled: false
allowOriginListRegex: []
clients:
- name: "FAF Client"
id: "2e8808cf-5889-469b-b2c3-01f0cc58c4af"
Expand Down
2 changes: 1 addition & 1 deletion disabled/reloader/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ name: reloader
version: 1.0.0
dependencies:
- name: reloader
version: 2.2.9
version: 2.2.11
repository: https://stakater.github.io/stakater-charts