Skip to content
Merged
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 @@ -96,6 +96,8 @@ spec:
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
imagePullPolicy: {{ .Values.image.blob.pullPolicy }}
securityContext:
runAsUser: 0
volumeMounts:
- mountPath: /csi
name: socket-dir
Expand Down
1 change: 1 addition & 0 deletions charts/latest/blob-csi-driver/templates/csi-blob-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
securityContext:
privileged: true
runAsUser: 0
volumeMounts:
- mountPath: /csi
name: socket-dir
Expand Down
2 changes: 2 additions & 0 deletions deploy/csi-blob-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ spec:
optional: true
- name: CSI_ENDPOINT
value: unix:///csi/csi.sock
securityContext:
runAsUser: 0
volumeMounts:
- mountPath: /csi
name: socket-dir
Expand Down
1 change: 1 addition & 0 deletions deploy/csi-blob-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ spec:
fieldPath: spec.nodeName
securityContext:
privileged: true
runAsUser: 0
volumeMounts:
- mountPath: /csi
name: socket-dir
Expand Down
4 changes: 4 additions & 0 deletions pkg/blobplugin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ RUN apt update && apt install nfs-common nfs-kernel-server -y || true
LABEL maintainers="andyzhangx"
LABEL description="Azure Blob Storage CSI driver"

# Create a nonroot user
RUN useradd -u 10001 nonroot
USER nonroot

ENTRYPOINT ["/blobplugin"]
4 changes: 4 additions & 0 deletions pkg/blobplugin/dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,9 @@ RUN dpkg -i /tmp/packages-microsoft-prod.deb && apt-get update && apt-get instal
LABEL maintainers="andyzhangx"
LABEL description="Azure Blob Storage CSI driver"

# Create a nonroot user
RUN useradd -u 10001 nonroot
USER nonroot

COPY ./_output/blobplugin /blobplugin
ENTRYPOINT ["/blobplugin"]