Skip to content

Commit d573201

Browse files
Merge branch 'main' into feature/wait-for-redis
2 parents 0a9c1e4 + c9ffb3b commit d573201

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

helm/oauth2-proxy/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ Parameter | Description | Default
176176
`serviceAccount.name` | the service account name | ``
177177
`serviceAccount.annotations` | (optional) annotations for the service account | `{}`
178178
`tolerations` | list of node taints to tolerate | `[]`
179-
`securityContext.enabled` | enable Kubernetes security context on container | `false`
180-
`securityContext.runAsNonRoot` | make sure that the container runs as a non-root user | `true`
179+
`securityContext.enabled` | enable Kubernetes security context on container | `true`
181180
`proxyVarsAsSecrets` | choose between environment values or secrets for setting up OAUTH2_PROXY variables. When set to false, remember to add the variables OAUTH2_PROXY_CLIENT_ID, OAUTH2_PROXY_CLIENT_SECRET, OAUTH2_PROXY_COOKIE_SECRET in extraEnv | `true`
182181
`sessionStorage.type` | Session storage type which can be one of the following: cookie or redis | `cookie`
183182
`sessionStorage.redis.existingSecret` | Name of the Kubernetes secret containing the redis & redis sentinel password values (see also `sessionStorage.redis.passwordKey`) | `""`

helm/oauth2-proxy/values.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,17 @@ readinessProbe:
235235
# Configure Kubernetes security context for container
236236
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
237237
securityContext:
238-
enabled: false
238+
enabled: true
239+
allowPrivilegeEscalation: false
240+
capabilities:
241+
drop:
242+
- ALL
243+
readOnlyRootFilesystem: true
239244
runAsNonRoot: true
240-
# allowPrivilegeEscalation: false
241-
# runAsUser: 2000
245+
runAsUser: 2000
246+
runAsGroup: 2000
247+
seccompProfile:
248+
type: RuntimeDefault
242249

243250
deploymentAnnotations: {}
244251
podAnnotations: {}

0 commit comments

Comments
 (0)