Skip to content

Commit

Permalink
Increase security
Browse files Browse the repository at this point in the history
  • Loading branch information
jastBytes committed Dec 10, 2020
1 parent 6fa9b95 commit 5cef011
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/dex/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: dex
version: 1.0.17
version: 1.0.18
appVersion: 2.25.0
description: A federated OpenID Connect provider
keywords:
Expand Down
6 changes: 5 additions & 1 deletion charts/dex/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ spec:
- |
cp /input/ca.crt /input/client.crt /input/client.key /certs
chown 1001:1001 /certs/*
chmod 0400 /certs/*
volumeMounts:
- name: certs-input
mountPath: /input
readOnly: true
- name: certs
mountPath: /certs
securityContext:
Expand All @@ -77,6 +79,8 @@ spec:
- /usr/local/bin/dex
- serve
- /etc/dex/cfg/config.yaml
securityContext:
runAsUser: 1001
resources:
{{ toYaml .Values.resources | indent 10 }}
ports:
Expand Down Expand Up @@ -128,7 +132,7 @@ spec:
name: {{ .Values.config.storage.config.secret }}
items:
- key: ca.crt
path: ca.ca
path: ca.crt
mode: 0400
- key: tls.crt
path: client.crt
Expand Down

0 comments on commit 5cef011

Please sign in to comment.