Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feature(helm): require config.siteUrl in infisical-nkp chart (0.2.1)

ArshBallagan63e2ea9781a9
diff --git a/.github/workflows/helm-release-infisical-nkp.yml b/.github/workflows/helm-release-infisical-nkp.yml
index d8e5258dee..5760e2ccbf 100644
--- a/.github/workflows/helm-release-infisical-nkp.yml
+++ b/.github/workflows/helm-release-infisical-nkp.yml
@@ -21,7 +21,7 @@ jobs:
run: helm lint helm-charts/infisical-nkp
- name: Run helm template
- run: helm template infisical helm-charts/infisical-nkp > /dev/null
+ run: helm template infisical helm-charts/infisical-nkp --set config.siteUrl=https://infisical.example.com > /dev/null
release:
needs: test-helm
diff --git a/helm-charts/infisical-nkp/Chart.yaml b/helm-charts/infisical-nkp/Chart.yaml
index fe35cb8744..61ba1f9b9e 100644
--- a/helm-charts/infisical-nkp/Chart.yaml
+++ b/helm-charts/infisical-nkp/Chart.yaml
@@ -2,7 +2,7 @@ apiVersion: v2
name: infisical-nkp
description: Infisical, the open-source secrets management platform, packaged for the Nutanix NKP partner catalog.
type: application
-version: 0.2.0
+version: 0.2.1
appVersion: "v0.162.11"
home: https://infisical.com
sources:
diff --git a/helm-charts/infisical-nkp/templates/configmap.yaml b/helm-charts/infisical-nkp/templates/configmap.yaml
index 574bf23e9f..1a6469be39 100644
--- a/helm-charts/infisical-nkp/templates/configmap.yaml
+++ b/helm-charts/infisical-nkp/templates/configmap.yaml
@@ -1,3 +1,13 @@
+{{- /*
+config.siteUrl is mandatory. Infisical uses SITE_URL to lock down CORS and to
+build every absolute URL it emits (invite / password-reset / verification
+links, SSO and OAuth redirect URIs, WebAuthn relying party). Fail the install
+early with a clear message rather than deploying a silently degraded instance.
+*/ -}}
+{{- $siteUrl := required "config.siteUrl is required: set it to the external URL users will reach Infisical at, e.g. https://infisical.example.com" .Values.config.siteUrl -}}
+{{- if not (regexMatch "^https?://[^/]+$" $siteUrl) -}}
+{{- fail (printf "config.siteUrl must be an origin of the form http(s)://<hostname> with no path suffix or trailing slash (Infisical cannot be served under a path prefix); got %q" $siteUrl) -}}
+{{- end -}}
apiVersion: v1
kind: ConfigMap
metadata:
@@ -5,6 +15,6 @@ metadata:
labels:
{{- include "infisical.labels" . | nindent 4 }}
data:
- SITE_URL: {{ .Values.config.siteUrl | quote }}
+ SITE_URL: {{ $siteUrl | quote }}
PORT: {{ .Values.config.port | quote }}
TELEMETRY_ENABLED: {{ .Values.config.telemetryEnabled | quote }}
diff --git a/helm-charts/infisical-nkp/values.yaml b/helm-charts/infisical-nkp/values.yaml
index aa0b631306..38655b0d1f 100644
--- a/helm-charts/infisical-nkp/values.yaml
+++ b/helm-charts/infisical-nkp/values.yaml
@@ -11,7 +11,11 @@ image:
# Non-secret application configuration (rendered into a ConfigMap).
config:
- siteUrl: "https://infisical.example.com"
+ # REQUIRED. External origin users reach Infisical at, e.g. https://infisical.example.com
+ # (scheme + hostname only; Infisical cannot be served under a path prefix).
+ # Used for CORS, invite/reset/verification links, SSO/OAuth redirect URIs and
+ # WebAuthn. The install fails with a clear error if this is left empty.
+ siteUrl: ""
port: 8080
telemetryEnabled: false