diff --git a/stable/dex/Chart.yaml b/stable/dex/Chart.yaml index d0bf27f559..e63a7290db 100644 --- a/stable/dex/Chart.yaml +++ b/stable/dex/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: dex -version: 2.8.1 +version: 2.9.0 appVersion: 2.21.0 description: OpenID Connect Identity (OIDC) and OAuth 2.0 Provider with Pluggable Connectors keywords: diff --git a/stable/dex/README.md b/stable/dex/README.md index 8a6a428f5f..0b156098ae 100644 --- a/stable/dex/README.md +++ b/stable/dex/README.md @@ -95,6 +95,7 @@ Parameters introduced starting from v2 | `ports.web.nodePort` | K8S Service node port for the dex http/https listener | `32000` | | `ports.web.servicePort` | K8S Service port for the dex http/https listener | `32000` | | `rbac.create` | If `true`, create & use RBAC resources | `true` | +| `securityContext` | Allow setting the securityContext of the main dex deployment | `` | | `service.loadBalancerIP` | IP override for K8S LoadBalancer Service | `""` | | `livenessProbe.enabled` | k8s liveness probe enabled (cannot be enabled when `https = true`) | `false` | | `livenessProbe.path` | k8s liveness probe http path | `"/healthz"` | diff --git a/stable/dex/templates/deployment.yaml b/stable/dex/templates/deployment.yaml index e2ad39caea..d1b15f2775 100644 --- a/stable/dex/templates/deployment.yaml +++ b/stable/dex/templates/deployment.yaml @@ -55,6 +55,9 @@ spec: affinity: {{ toYaml . | indent 8 }} {{- end }} + {{- if .Values.securityContext }} + securityContext: {{ toYaml .Values.securityContext | nindent 8 }} + {{- end }} containers: - name: main image: "{{ .Values.image }}:{{ .Values.imageTag }}" diff --git a/stable/dex/values.yaml b/stable/dex/values.yaml index eac30ea15b..4427fc6865 100644 --- a/stable/dex/values.yaml +++ b/stable/dex/values.yaml @@ -25,6 +25,18 @@ tolerations: [] # value: bar # effect: NoSchedule +securityContext: + # Rejecting containers trying to run with root privileges + # runAsNonRoot: true + # Preventing privilege escalation to root privileges + # allowPrivilegeEscalation: false + # Set the user ID used to run the container + # runAsUser: 1001 + # Set the primary group ID used to run all processes within any container of the pod + # runAsGroup: 1001 + # Set the group ID associated with the container + # fsGroup: 1001 + replicas: 1 # resources: