Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support auth with both jwt and vault #1201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions charts/sn-platform/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ PULSAR_PREFIX_OIDCPublicKeyPath: file://{{ .Values.broker.publicKeyPath | defaul
PULSAR_PREFIX_OIDCPublicKeyPath: "{{ template "pulsar.vault.url" . }}/v1/identity/oidc/.well-known/keys"
{{- end }}
{{- end }}
{{- if .Values.auth.oauth.enabled }}
{{- if and .Values.auth.oauth.enabled (not (or .Values.auth.vault.enabled .Values.auth.authentication.jwt.enabled)) }}
PULSAR_PREFIX_oauthIssuerUrl: "{{ .Values.auth.oauth.oauthIssuerUrl }}"
PULSAR_PREFIX_oauthAudience: "{{ .Values.auth.oauth.oauthAudience }}"
{{- if .Values.auth.oauth.oauthAdminScope }}
Expand All @@ -239,7 +239,7 @@ brokerClientAuthenticationParameters: '{{ .Values.auth.oauth.brokerClientAuthent
PULSAR_PREFIX_oauthSubjectClaim: "{{ .Values.auth.oauth.oauthSubjectClaim }}"
{{- end }}
{{- else }}
{{- if .Values.auth.authentication.jwt.enabled }}
{{- if and .Values.auth.authentication.jwt.enabled (not (or .Values.auth.oauth.enabled .Values.auth.vault.enabled))}}
brokerClientAuthenticationPlugin: "org.apache.pulsar.client.impl.auth.AuthenticationToken"
{{- end }}
{{- end }}
Expand Down
Loading