Skip to content

Commit 954de20

Browse files
authored
[bitnami/oauth2-proxy] feat: ✨ 🔒 Add readOnlyRootFilesystem support (#23855)
Signed-off-by: Javier Salmeron Garcia <jsalmeron@vmware.com> Signed-off-by: Javier J. Salmerón-García <jsalmeron@vmware.com>
1 parent e577a7d commit 954de20

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

bitnami/oauth2-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ maintainers:
3535
name: oauth2-proxy
3636
sources:
3737
- https://github.com/bitnami/charts/tree/main/bitnami/oauth2-proxy
38-
version: 4.8.2
38+
version: 4.9.0

bitnami/oauth2-proxy/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ The command removes all the Kubernetes components associated with the chart and
196196
| `containerSecurityContext.enabled` | Enabled containers' Security Context | `true` |
197197
| `containerSecurityContext.seLinuxOptions` | Set SELinux options in container | `nil` |
198198
| `containerSecurityContext.runAsUser` | Set containers' Security Context runAsUser | `1001` |
199+
| `containerSecurityContext.runAsGroup` | Set containers' Security Context runAsGroup | `0` |
199200
| `containerSecurityContext.runAsNonRoot` | Set container's Security Context runAsNonRoot | `true` |
200201
| `containerSecurityContext.privileged` | Set container's Security Context privileged | `false` |
201202
| `containerSecurityContext.readOnlyRootFilesystem` | Set container's Security Context readOnlyRootFilesystem | `false` |

bitnami/oauth2-proxy/templates/deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ spec:
238238
{{- end }}
239239
{{- end }}
240240
volumeMounts:
241+
- name: empty-dir
242+
mountPath: /tmp
243+
subPath: tmp-dir
241244
{{- if .Values.configuration.google.enabled }}
242245
- name: google-secret
243246
mountPath: /bitnami/oauth2-proxy/conf/google
@@ -264,6 +267,8 @@ spec:
264267
{{- include "common.tplvalues.render" ( dict "value" .Values.sidecars "context" $) | nindent 8 }}
265268
{{- end }}
266269
volumes:
270+
- name: empty-dir
271+
emptyDir: {}
267272
{{- if .Values.configuration.google.enabled }}
268273
- name: google-secret
269274
secret:

bitnami/oauth2-proxy/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ podSecurityContext:
526526
## @param containerSecurityContext.enabled Enabled containers' Security Context
527527
## @param containerSecurityContext.seLinuxOptions [object,nullable] Set SELinux options in container
528528
## @param containerSecurityContext.runAsUser Set containers' Security Context runAsUser
529+
## @param containerSecurityContext.runAsGroup Set containers' Security Context runAsGroup
529530
## @param containerSecurityContext.runAsNonRoot Set container's Security Context runAsNonRoot
530531
## @param containerSecurityContext.privileged Set container's Security Context privileged
531532
## @param containerSecurityContext.readOnlyRootFilesystem Set container's Security Context readOnlyRootFilesystem
@@ -537,6 +538,7 @@ containerSecurityContext:
537538
enabled: true
538539
seLinuxOptions: null
539540
runAsUser: 1001
541+
runAsGroup: 0
540542
runAsNonRoot: true
541543
privileged: false
542544
readOnlyRootFilesystem: false

0 commit comments

Comments
 (0)