From ad7ef4ac12c13611335fdad2f52025f35017d220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Verstraeten?= Date: Thu, 20 Aug 2026 22:09:19 +0200 Subject: [PATCH] Add frontend URL to Hub API CORS Initialize CORS origins with the primary frontend URL while retaining support for the legacy frontend URL. Bump the Hub chart to 0.130.0. --- charts/hub/Chart.yaml | 2 +- charts/hub/templates/kerberos-hub/hub-api.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/hub/Chart.yaml b/charts/hub/Chart.yaml index 225c219..6e10ae1 100644 --- a/charts/hub/Chart.yaml +++ b/charts/hub/Chart.yaml @@ -16,7 +16,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.129.0 +version: 0.130.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/hub/templates/kerberos-hub/hub-api.yaml b/charts/hub/templates/kerberos-hub/hub-api.yaml index e799378..254eb9a 100644 --- a/charts/hub/templates/kerberos-hub/hub-api.yaml +++ b/charts/hub/templates/kerberos-hub/hub-api.yaml @@ -196,7 +196,7 @@ spec: value: "{{ .Values.kerberoshub.frontend.schema }}://{{ .Values.kerberoshub.frontend.url }}" - name: REFRESH_COOKIE_SECURE value: {{ eq .Values.kerberoshub.api.schema "https" | quote }} - {{- $corsOrigins := list }} + {{- $corsOrigins := list (printf "%s://%s" .Values.kerberoshub.frontend.schema .Values.kerberoshub.frontend.url) }} {{- with .Values.kerberoshub.frontend.legacyUrl }} {{- $corsOrigins = append $corsOrigins (printf "%s://%s" $.Values.kerberoshub.frontend.schema .) }} {{- end }}