File tree 3 files changed +15
-0
lines changed
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 9
9
Chart.lock
10
10
# dependencies of charts get downloaded to chart/<chartname>/carts - so exclude those:
11
11
charts /* /charts
12
+ /charts /ditto /requirements.lock
Original file line number Diff line number Diff line change @@ -23,8 +23,14 @@ metadata:
23
23
{{ $labels | indent 4 }}
24
24
data :
25
25
"nginx.htpasswd" : |-
26
+ {{- if .Values.global.hashedBasicAuthUsers }}
27
+ {{ range $key, $value := .Values.global.hashedBasicAuthUsers }}
28
+ {{- $value.hashedUserPassword | indent 4 }}
29
+ {{ end }}
30
+ {{- else }}
26
31
{{ range $key, $value := .Values.global.basicAuthUsers }}
27
32
{{- (htpasswd $value.user $value.password) | indent 4 }}
28
33
{{ end }}
34
+ {{ end }}
29
35
---
30
36
{{- end }}
Original file line number Diff line number Diff line change @@ -86,12 +86,20 @@ openshift:
86
86
# # ----------------------------------------------------------------------------
87
87
# # global configuration shared by all components
88
88
global :
89
+ # Nginx Basic Auth config
90
+ # either configure one or more basic auth user in the basicAuthUsers section
91
+ # where you can specify username and password in clear text
92
+ # or use the hashedBasicAuthUsers section where you can add already hashed username/password combinations
89
93
# default basic auth user used for authentication in nginx is ditto with password ditto
90
94
# add more users to the basicAuthUsers array or replace the default user
91
95
basicAuthUsers :
92
96
ditto :
93
97
user : ditto
94
98
password : ditto
99
+ # alternative: add already hashed username and password combinations
100
+ hashedBasicAuthUsers : []
101
+ # ditto:
102
+ # hashedUserPassword: ditto:A6BgmB8IEtPTs
95
103
# # jwtOnly controls whether only OpenID-Connect authentication is supported
96
104
# # if false, basicAuth is used
97
105
# # ref: https://www.eclipse.org/ditto/installation-operating.html#openid-connect
You can’t perform that action at this time.
0 commit comments