Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make filesystem read only (#283) #291

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ spec:
- name: provider
image: "{{ .Values.image.repository }}@{{ .Values.image.hash }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext:
readOnlyRootFilesystem: true
resources:
{{- toYaml .Values.resources | nindent 12 }}
env:
Expand All @@ -33,6 +35,7 @@ spec:
volumeMounts:
- mountPath: "/etc/kubernetes/secrets-store-csi-providers"
name: providervol
readOnly: false
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
3 changes: 3 additions & 0 deletions deploy/provider-gcp-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ spec:
- name: provider
image: us-docker.pkg.dev/secretmanager-csi/secrets-store-csi-driver-provider-gcp/plugin@sha256:b7dde5ed536b2c6500c9237e14f6851cf8a2ff6d7a72656c3741be38e2cddf4d
imagePullPolicy: IfNotPresent
securityContext:
readOnlyRootFilesystem: true
resources:
requests:
cpu: 50m
Expand All @@ -85,6 +87,7 @@ spec:
volumeMounts:
- mountPath: "/etc/kubernetes/secrets-store-csi-providers"
name: providervol
readOnly: false
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/templates/provider-gcp-plugin-wif.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ spec:
args:
- "-v=5"
imagePullPolicy: Always
securityContext:
readOnlyRootFilesystem: true
resources:
requests:
cpu: 50m
Expand All @@ -105,6 +107,7 @@ spec:
volumeMounts:
- mountPath: "/etc/kubernetes/secrets-store-csi-providers"
name: providervol
readOnly: false
- mountPath: /var/run/secrets/tokens/gcp-ksa
name: gcp-ksa
readOnly: true
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/templates/provider-gcp-plugin.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ spec:
args:
- "-v=5"
imagePullPolicy: Always
securityContext:
readOnlyRootFilesystem: true
resources:
requests:
cpu: 50m
Expand All @@ -86,6 +88,7 @@ spec:
volumeMounts:
- mountPath: "/etc/kubernetes/secrets-store-csi-providers"
name: providervol
readOnly: false
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down