-
Notifications
You must be signed in to change notification settings - Fork 6
v1.5.16 #89
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?
v1.5.16 #89
Conversation
WalkthroughThe Dockerfile was updated to fetch a newer version of the Changes
Poem
✨ Finishing Touches🧪 Generate Unit Tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Looks good to me 🤙
💡 To request another review, post a new comment with "/windsurf-review".
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.
Actionable comments posted: 1
🧹 Nitpick comments (1)
Dockerfile (1)
4-4
: Add checksum validation for the downloaded binary
Downloading a binary without integrity checks risks corrupt or malicious code. Fetch the SHA256 sum from a trusted source and verify it before installing.Example enhancement:
ARG GETH_VERSION=v1.5.16 ARG GETH_SHA256=<official-sha256> RUN wget https://github.com/bnb-chain/bsc/releases/download/${GETH_VERSION}/geth_linux \ && echo "${GETH_SHA256} geth_linux" | sha256sum -c - \ && chmod 744 geth_linux \ && mv geth_linux /usr/local/bin/geth🧰 Tools
🪛 Checkov (3.2.334)
[HIGH] 4-4: Ensure that certificate validation isn't disabled with wget
(CKV2_DOCKER_3)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
Dockerfile
(1 hunks)
🧰 Additional context used
🪛 Checkov (3.2.334)
Dockerfile
[HIGH] 4-4: Ensure that certificate validation isn't disabled with wget
(CKV2_DOCKER_3)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: guardrails/scan
@@ -1,6 +1,6 @@ | |||
FROM debian:stable-slim | |||
|
|||
RUN apt-get update -y && apt-get install wget curl procps net-tools htop -y | |||
RUN wget --no-check-certificate https://github.com/bnb-chain/bsc/releases/download/v1.5.13/geth_linux && chmod 744 geth_linux && mv geth_linux /usr/local/bin/geth | |||
RUN wget --no-check-certificate https://github.com/bnb-chain/bsc/releases/download/v1.5.16/geth_linux && chmod 744 geth_linux && mv geth_linux /usr/local/bin/geth |
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.
🛠️ Refactor suggestion
Enable TLS certificate validation for wget
The --no-check-certificate
flag disables server certificate verification, leaving the build susceptible to man-in-the-middle attacks. Remove this flag and ensure ca-certificates
is installed in an earlier step so that downloads remain secure.
Example patch:
-RUN wget --no-check-certificate https://github.com/bnb-chain/bsc/releases/download/v1.5.16/geth_linux && chmod 744 geth_linux && mv geth_linux /usr/local/bin/geth
+RUN wget https://github.com/bnb-chain/bsc/releases/download/v1.5.16/geth_linux && chmod 744 geth_linux && mv geth_linux /usr/local/bin/geth
Make sure your prior apt-get install
includes ca-certificates
.
🧰 Tools
🪛 Checkov (3.2.334)
[HIGH] 4-4: Ensure that certificate validation isn't disabled with wget
(CKV2_DOCKER_3)
🤖 Prompt for AI Agents
In Dockerfile at line 4, remove the `--no-check-certificate` flag from the wget
command to enable TLS certificate validation. Before this line, ensure that the
`ca-certificates` package is installed by adding it to the `apt-get install`
command in an earlier step. This will allow wget to verify server certificates
securely during the download.
BSC Mainnet Maxwell Hardfork
Summary by CodeRabbit
geth_linux
binary for improved performance and stability.