Skip to content

Commit 772d993

Browse files
committed
#715 Set Amass Docker Image in a numeric way to allow runAsNonRoot
Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
1 parent 223ef6f commit 772d993

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎scanners/amass/scanner/Dockerfile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@
77

88
ARG scannerVersion
99
FROM caffix/amass:${scannerVersion}
10+
# The amass image uses the user "user" with the id 1000, we set it here as a numeric value to allow runAsNonRoot
11+
USER 1000
1012
ENTRYPOINT ["/bin/amass"]

‎scanners/amass/values.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ scanner:
8989
# scanner.securityContext -- Optional securityContext set on scanner container (see: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/)
9090
securityContext:
9191
# scanner.securityContext.runAsNonRoot -- Enforces that the scanner image is run as a non root user
92-
runAsNonRoot: false
92+
runAsNonRoot: true
9393
# scanner.securityContext.readOnlyRootFilesystem -- Prevents write access to the containers file system
9494
readOnlyRootFilesystem: false
9595
# scanner.securityContext.allowPrivilegeEscalation -- Ensure that users privileges cannot be escalated

0 commit comments

Comments
 (0)