Skip to content

Commit

Permalink
add extra configuration for Console JWT auth
Browse files Browse the repository at this point in the history
Signed-off-by: ericsyh <[email protected]>
  • Loading branch information
ericsyh committed Nov 19, 2024
1 parent a2ca2d8 commit d86197a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ spec:
- name: JWT_BROKER_TOKEN_MODE
value: SECRET
- name: JWT_BROKER_SECRET_KEY_PATH
value: /pulsar-manager/keys/token/secret.key
value: {{ "/pulsar-manager/keys/" }} + {{ .Values.streamnative_console.login.sso.pulsarJwt.config.JWT_BROKER_SECRET_KEY_PATH }}
{{- end }}
{{- end }}
{{- if or .Values.streamnative_console.login.sso.google.enabled .Values.streamnative_console.login.sso.azure.enabled .Values.streamnative_console.login.sso.okta.enabled .Values.streamnative_console.login.sso.pulsarJwt.enabled }}
Expand Down Expand Up @@ -278,7 +278,7 @@ spec:
{{- end }}
{{- if eq .Values.streamnative_console.login.sso.pulsarJwt.config.JWT_BROKER_TOKEN_MODE "SECRET" }}
- key: SECRETKEY
path: token/secret.key
path: {{ .Values.streamnative_console.login.sso.pulsarJwt.config.JWT_BROKER_SECRET_KEY_PATH }}
secretName: {{ .Values.streamnative_console.login.sso.pulsarJwt.config.JWT_BROKER_SECRET_KEY }}
{{- end }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/sn-platform-slim/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2126,6 +2126,7 @@ streamnative_console:
JWT_BROKER_PUBLIC_PRIVATE_KEY: ""
# The secret should contain both `SECRETKEY`
JWT_BROKER_SECRET_KEY: ""
JWT_BROKER_SECRET_KEY_FILE: "token/secret.key"

## Components Stack: pulsar operators rbac
## templates/pulsar-operators-rbac.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ spec:
- name: JWT_BROKER_TOKEN_MODE
value: SECRET
- name: JWT_BROKER_SECRET_KEY_PATH
value: /pulsar-manager/keys/token/secret.key
value: {{ "/pulsar-manager/keys/" }} + {{ .Values.streamnative_console.login.sso.pulsarJwt.config.JWT_BROKER_SECRET_KEY_PATH }}
{{- end }}
{{- end }}
{{- if or .Values.auth.vault.enabled .Values.streamnative_console.login.sso.google.enabled .Values.streamnative_console.login.sso.azure.enabled .Values.streamnative_console.login.sso.okta.enabled .Values.streamnative_console.login.sso.pulsarJwt.enabled }}
Expand Down Expand Up @@ -288,7 +288,7 @@ spec:
{{- end }}
{{- if eq .Values.streamnative_console.login.sso.pulsarJwt.config.JWT_BROKER_TOKEN_MODE "SECRET" }}
- key: SECRETKEY
path: token/secret.key
path: {{ .Values.streamnative_console.login.sso.pulsarJwt.config.JWT_BROKER_SECRET_KEY_PATH }}
secretName: {{ .Values.streamnative_console.login.sso.pulsarJwt.config.JWT_BROKER_SECRET_KEY }}
{{- end }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/sn-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2216,6 +2216,7 @@ streamnative_console:
JWT_BROKER_PUBLIC_PRIVATE_KEY: ""
# The secret should contain both `SECRETKEY`
JWT_BROKER_SECRET_KEY: ""
JWT_BROKER_SECRET_KEY_FILE: "token/secret.key"

## Components Stack: pulsar operators rbac
## templates/pulsar-operators-rbac.yaml
Expand Down

0 comments on commit d86197a

Please sign in to comment.