From 166b805b0053c5b9a31d8830631323a8cad97f78 Mon Sep 17 00:00:00 2001 From: Guangning E Date: Wed, 12 Jun 2024 12:14:37 +0800 Subject: [PATCH 1/2] Fixed non auth token --- .../streamnative-console-statefulset.yaml | 4 ++++ charts/sn-platform-slim/values.yaml | 2 ++ .../streamnative-console-statefulset.yaml | 4 ++++ charts/sn-platform/values.yaml | 2 ++ 4 files changed, 12 insertions(+) diff --git a/charts/sn-platform-slim/templates/streamnative-console/streamnative-console-statefulset.yaml b/charts/sn-platform-slim/templates/streamnative-console/streamnative-console-statefulset.yaml index 610b6815..71d8680a 100644 --- a/charts/sn-platform-slim/templates/streamnative-console/streamnative-console-statefulset.yaml +++ b/charts/sn-platform-slim/templates/streamnative-console/streamnative-console-statefulset.yaml @@ -136,6 +136,10 @@ spec: - name: AZURE_RESTRICT_DOMAIN_SUFFIXES_NAME value: {{ .Values.streamnative_console.login.sso.azure.config.AZURE_RESTRICT_DOMAIN_SUFFIXES_NAME }} {{- end }} + {{- if and .Values.streamnative_console.configData.NON_AUTH_TOKEN }} + - name: NON_AUTH_TOKEN + value: {{ .Values.streamnative_console.configData.NON_AUTH_TOKEN | b64dec }} + {{- end }} {{- if .Values.streamnative_console.login.sso.okta.enabled }} - name: OKTA_OAUTH2_ENABLED value: "true" diff --git a/charts/sn-platform-slim/values.yaml b/charts/sn-platform-slim/values.yaml index adce08fb..2b8c3f55 100644 --- a/charts/sn-platform-slim/values.yaml +++ b/charts/sn-platform-slim/values.yaml @@ -2072,6 +2072,8 @@ streamnative_console: GRAFANA_AUTH_PROXY_USER: "" CONNECTOR_ENABLED: true OPENAPI_ENABLED: false + # Use it to set the default user information for the console when all auth is disabled + NON_AUTH_TOKEN: ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKaGRXUWlPaUp6ZEhKbFlXMXVZWFJwZG1VdWFXOGlMQ0oxYzJWeWJtRnRaU0k2SW1Ga2JXbHVJbjAucW4xbFdLZmo3eFVyaFQyOEZSUDhMdS1zdHhPMFBQVjU5RkRYVEdEeHBpbwo= login: sso: diff --git a/charts/sn-platform/templates/streamnative-console/streamnative-console-statefulset.yaml b/charts/sn-platform/templates/streamnative-console/streamnative-console-statefulset.yaml index 8a0fdb33..268aef6d 100644 --- a/charts/sn-platform/templates/streamnative-console/streamnative-console-statefulset.yaml +++ b/charts/sn-platform/templates/streamnative-console/streamnative-console-statefulset.yaml @@ -178,6 +178,10 @@ spec: - name: BACKEND_DEFAULT_SUPER_USER_ROLE value: {{ .Values.streamnative_console.configData.BACKEND_DEFAULT_SUPER_USER_ROLE }} {{- end }} + {{- if and .Values.streamnative_console.configData.NON_AUTH_TOKEN }} + - name: NON_AUTH_TOKEN + value: {{ .Values.streamnative_console.configData.NON_AUTH_TOKEN | b64dec }} + {{- end }} - name: CUSTOM_PAYLOAD_ENABLED value: "{{ .Values.streamnative_console.configData.CUSTOM_PAYLOAD_ENABLED | default "false" }}" {{- if .Values.streamnative_console.login.sso.pulsarJwt.enabled }} diff --git a/charts/sn-platform/values.yaml b/charts/sn-platform/values.yaml index 79497837..57765b33 100644 --- a/charts/sn-platform/values.yaml +++ b/charts/sn-platform/values.yaml @@ -2160,6 +2160,8 @@ streamnative_console: CONNECTOR_ENABLED: true CUSTOM_PAYLOAD_ENABLED: false OPENAPI_ENABLED: false + # Use it to set the default user information for the console when all auth is disabled + NON_AUTH_TOKEN: ZXlKaGJHY2lPaUpJVXpJMU5pSjkuZXlKaGRXUWlPaUp6ZEhKbFlXMXVZWFJwZG1VdWFXOGlMQ0oxYzJWeWJtRnRaU0k2SW1Ga2JXbHVJbjAucW4xbFdLZmo3eFVyaFQyOEZSUDhMdS1zdHhPMFBQVjU5RkRYVEdEeHBpbwo= login: sso: From 6e6dad7512ee54bb3c9409da9727728e80102df3 Mon Sep 17 00:00:00 2001 From: Guangning E Date: Wed, 12 Jun 2024 15:11:52 +0800 Subject: [PATCH 2/2] Update version --- charts/sn-platform-slim/values.yaml | 2 +- charts/sn-platform/values.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/sn-platform-slim/values.yaml b/charts/sn-platform-slim/values.yaml index 2b8c3f55..71c28b6b 100644 --- a/charts/sn-platform-slim/values.yaml +++ b/charts/sn-platform-slim/values.yaml @@ -174,7 +174,7 @@ images: pullPolicy: IfNotPresent streamnative_console: repository: streamnative/private-cloud-console - tag: "v2.3.5-rc.5" + tag: "v2.3.5" pullPolicy: IfNotPresent hasCommand: false node_exporter: diff --git a/charts/sn-platform/values.yaml b/charts/sn-platform/values.yaml index 57765b33..be2fe491 100644 --- a/charts/sn-platform/values.yaml +++ b/charts/sn-platform/values.yaml @@ -201,7 +201,7 @@ images: pullPolicy: IfNotPresent streamnative_console: repository: streamnative/private-cloud-console - tag: "v2.3.5-rc.5" + tag: "v2.3.5" pullPolicy: IfNotPresent hasCommand: false node_exporter: