File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env sh
2- # TODO: OWASP RULE#4 https://cheatsheetseries.owasp.org/cheatsheets/Docker_Security_Cheat_Sheet.html#rule-4-prevent-in-container-privilege-escalation
32# TODO: OWASP RULE#7 https://cheatsheetseries.owasp.org/cheatsheets/Docker_Security_Cheat_Sheet.html#rule-7-limit-resources-memory-cpu-file-descriptors-processes-restarts
43# TODO: Same OWASP rules in test.sh file
54# TODO: document security recommendations adapted to this project
@@ -22,6 +21,7 @@ echo '▶️ Starting the localdev PaperMC server...'
2221
2322docker run --rm -it \
2423 --cap-drop all \
24+ --security-opt no-new-privileges \
2525 -p 25565:25565/tcp -p 25565:25565/udp \
2626 -e EULA=true \
2727 ' djaytan/papermc-server:dev'
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ echo '▶️ Starting the PaperMC server in background...'
1111
1212docker run --rm -d --name " $CONTAINER_NAME " \
1313 --cap-drop all \
14+ --security-opt no-new-privileges \
1415 -p 25565:25565/tcp -p 25565:25565/udp \
1516 -e EULA=true \
1617 ' djaytan/papermc-server:dev'
You can’t perform that action at this time.
0 commit comments