Skip to content

Commit

Permalink
Merge pull request #1697 from eclipse-ditto/bugfix/helm-enable-pre-au…
Browse files Browse the repository at this point in the history
…th-default-fix

fix that in Helm config `jwtOnly=false` will enabled pre-authentication in Ditto
  • Loading branch information
thjaeckle authored Jul 21, 2023
2 parents 48eea43 + 5e53f7c commit 8840cb6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deployment/helm/ditto/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: |
A digital twin is a virtual, cloud based, representation of his real world counterpart
(real world “Things”, e.g. devices like sensors, smart heating, connected cars, smart grids, EV charging stations etc).
type: application
version: 3.3.4 # chart version is effectively set by release-job
version: 3.3.5 # chart version is effectively set by release-job
appVersion: 3.3.4
keywords:
- iot-chart
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/ditto/templates/gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ spec:
value: "{{ .Values.global.prometheus.port }}"
{{- end }}
- name: ENABLE_PRE_AUTHENTICATION
value: "{{ .Values.gateway.config.authentication.enablePreAuthentication }}"
value: "{{ or .Values.gateway.config.authentication.enablePreAuthentication (not .Values.global.jwtOnly) }}"
- name: DEVOPS_SECURED
value: "{{ .Values.gateway.config.authentication.devops.secured }}"
- name: DEVOPS_AUTHENTICATION_METHOD
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/ditto/templates/swaggerui-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
echo "removing Google auth from ditto-api-2.yml"
sed --in-place "/- Google:/,+1d" /usr/share/nginx/html/openapi/ditto-api-2.yml
sed --in-place "/ Google:/,+9d" /usr/share/nginx/html/openapi/ditto-api-2.yml
{{- if not .Values.gateway.config.authentication.enablePreAuthentication }}
{{- if or (not .Values.gateway.config.authentication.enablePreAuthentication) .Values.global.jwtOnly }}
echo "removing NginxBasic auth from ditto-api-2.yml"
sed --in-place "/- NginxBasic: \[]/d" /usr/share/nginx/html/openapi/ditto-api-2.yml
sed --in-place "/ NginxBasic:/,+3d" /usr/share/nginx/html/openapi/ditto-api-2.yml
Expand Down

0 comments on commit 8840cb6

Please sign in to comment.