-
Notifications
You must be signed in to change notification settings - Fork 0
Sentinel: 🛡️ Restore secure entrypoint for random password generation #5
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Image Version Not Explicit More DetailsAlways tag the version of an image explicitly Expected Found
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing User Instruction More DetailsThis rule checks whether a `USER` instruction is specified in the Dockerfile. The rule fails when the `USER` instruction is missing, causing the container to run with root privileges (UID 0). If an attacker compromises an application running as root, they gain the privileges needed to potentially escape the container and attack the host node. It also increases the blast radius of a breach, allowing full control to modify files or install malware within the container. Enforcing a non-root user is a fundamental security measure that minimizes the attack surface and contains the impact of a potential compromise. Expected Found Security Frameworks: wf-id-264, c7d2843b-ff83-4115-823e-a440e5c9b434, fcb43ca7-1138-43c6-af95-fe30190b00f7, 9bc0c54d-4a51-4dbc-8ae6-890bc8c96f68, e24345c2-b2f7-40d2-9067-d71280d443d8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. RUN Instruction Using 'cd' Instead of WORKDIR More DetailsUse WORKDIR instead of proliferating instructions like RUN cd … && do-something, which are hard to read, troubleshoot, and maintain. Expected Found
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. YALI - Docker image should be fetched from an approved registry More Details... Use this rule to alert on disapproved image registries Expected Found
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unpinned Package Version in Apk Add More DetailsPackage version pinning reduces the range of versions that can be installed, reducing the chances of failure due to unanticipated changes Expected Found
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Healthcheck Instruction Missing More DetailsEnsure that HEALTHCHECK is being used. The HEALTHCHECK instruction tells Docker how to test a container to check that it is still working Expected Found Security Frameworks: wf-id-264, e24345c2-b2f7-40d2-9067-d71280d443d8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Healthcheck Instruction Missing More DetailsEnsure that HEALTHCHECK is being used. The HEALTHCHECK instruction tells Docker how to test a container to check that it is still working Expected Found Security Frameworks: wf-id-264, e24345c2-b2f7-40d2-9067-d71280d443d8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. **ALPA - Docker file base image not from private registry ** More DetailsExpected Found
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,9 @@ RUN apk add --no-cache readline \ | |
| openssl \ | ||
| libsodium \ | ||
| gnu-libiconv \ | ||
| iptables | ||
| iptables \ | ||
| bash \ | ||
| unzip | ||
| ENV LD_PRELOAD=/usr/lib/preloadable_libiconv.so | ||
| WORKDIR /usr/local/bin | ||
| VOLUME /var/log/softether | ||
|
|
@@ -47,5 +49,10 @@ COPY --from=builder /usr/local/src/SoftEtherVPN/build/libcedar.so /usr/local/src | |
|
|
||
| FROM base AS vpnserver | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. **ALPA - Docker file base image not from private registry ** More DetailsExpected Found
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Healthcheck Instruction Missing More DetailsEnsure that HEALTHCHECK is being used. The HEALTHCHECK instruction tells Docker how to test a container to check that it is still working Expected Found Security Frameworks: wf-id-264, e24345c2-b2f7-40d2-9067-d71280d443d8
|
||
| COPY --from=builder /usr/local/src/SoftEtherVPN/build/vpnserver ./ | ||
| COPY copyables/entrypoint.sh /entrypoint.sh | ||
| COPY copyables/gencert.sh /gencert.sh | ||
| RUN chmod +x /entrypoint.sh /gencert.sh | ||
|
|
||
| EXPOSE 443/tcp 992/tcp 1194/tcp 1194/udp 5555/tcp 500/udp 4500/udp | ||
| ENTRYPOINT ["/entrypoint.sh"] | ||
| CMD ["/usr/local/bin/vpnserver", "execsvc"] | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unpinned Package Version in Apk Add
on resource
FROM alpine AS builder.RUN apk add binutils --no-cache linux-headers build-base readline-dev openssl-dev ncurses-dev git cmake zlib-dev libsodium-dev gnu-libiconvMore Details
Package version pinning reduces the range of versions that can be installed, reducing the chances of failure due to unanticipated changes
Expected
Found