Skip to content

Commit

Permalink
Enable Auth Prompt (#5)
Browse files Browse the repository at this point in the history
Signed-off-by: TasdidurRahman <[email protected]>
Signed-off-by: Tamal Saha <[email protected]>
Co-authored-by: Tamal Saha <[email protected]>
  • Loading branch information
TasdidurRahman and tamalsaha authored Jul 18, 2024
1 parent 734eaf2 commit 1dd6714
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 4 additions & 1 deletion charts/dbgate/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if not .Values.authzproxy.enabled }}
env:
- name: CONNECTIONS
value: "PRIMARY"
Expand All @@ -99,11 +98,15 @@ spec:
secretKeyRef:
name: {{ .Values.app.authSecret.name }}
key: username
{{- if .Values.authzproxy.enabled }}
- name: PASSWORD_PRIMARY
valueFrom:
secretKeyRef:
name: {{ .Values.app.authSecret.name }}
key: password
{{- else }}
- name: PASSWORD_MODE_PRIMARY
value: askPassword
{{- end }}
ports:
- name: http
Expand Down
12 changes: 11 additions & 1 deletion charts/mongo-ui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,20 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if not .Values.authzproxy.enabled }}
env:
- name: MONGO_URL
value: {{ .Values.app.url }}
{{- if not .Values.authzproxy.enabled }}
- name: MONGOGUI_USERNAME
valueFrom:
secretKeyRef:
name: {{ .Values.app.authSecret.name }}
key: username
- name: MONGOGUI_PASSWORD
valueFrom:
secretKeyRef:
name: {{ .Values.app.authSecret.name }}
key: password
{{- end }}
ports:
- name: http
Expand Down

0 comments on commit 1dd6714

Please sign in to comment.