Skip to content

Commit

Permalink
add default htpasswd file
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Oct 5, 2023
1 parent b7cbfea commit da68fd8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ data:
gplazma.gridmap.file=/opt/dcache/etc/grid-mapfile
gplazma.authzdb.file=/opt/dcache/etc/storage-authzdb
gplazma.vorolemap.file=/opt/dcache/etc/grid-vorolemap
gplazma.htpasswd.file=/opt/dcache/etc/htpasswd
[{{ $.Release.Name }}-door-svc/xrootd]
xrootd.security.tls.mode=OFF
Expand Down Expand Up @@ -159,7 +160,7 @@ data:
gplazma.conf: |-
auth optional x509
auth optional voms
#auth sufficient htpasswd
auth sufficient htpasswd
map optional vorolemap
map optional gridmap
map requisite authzdb
Expand All @@ -182,3 +183,6 @@ data:
linkgroupauthz: |-
LinkGroup default-linkgroup
/desy
htpasswd: |-
admin:$apr1$nq7.vQxE$tvmghVXGplwv/SNpNYGiC1
10 changes: 10 additions & 0 deletions templates/door.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ spec:
mountPath: /opt/dcache/etc/storage-authzdb
subPath: storage-authzdb
readOnly: true
- name: htpasswd
mountPath: /opt/dcache/etc/htpasswd
subPath: htpasswd
readOnly: true
- name: linkgroupauthz
mountPath: /opt/dcache/etc/linkgroupauthz.conf
subPath: linkgroupauthz.conf
Expand Down Expand Up @@ -126,6 +130,12 @@ spec:
items:
- key: "storage-authzdb"
path: "storage-authzdb"
- name: htpasswd
configMap:
name: {{ $.Release.Name }}-configmap
items:
- key: "htpasswd"
path: "htpasswd"
- name: linkgroupauthz
configMap:
name: {{ $.Release.Name }}-configmap
Expand Down

0 comments on commit da68fd8

Please sign in to comment.