-
Notifications
You must be signed in to change notification settings - Fork 2
feat: INFRA-5557 Cronos testnet image bump v1.5.0 #82
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🧩 Analysis chain
Remove TLS bypass; verify artifact; extract safely to target dir (avoid mv ./*).
Using
wget --no-check-certificateis a supply‑chain risk and flagged by Checkov (CKV2_DOCKER_3). Also, extracting into/tmpthenmv ./*can move unintended files and may break the expected/home/cronos/bin/cronosdpath. Switch to a validated download and extract directly into/home/cronos; add-zto tar.Apply this diff to Lines 7‑8:
Additionally, ensure CA trust is present (update Line 6 accordingly) and trim apt lists:
RUN apt-get update -y && apt-get install -y --no-install-recommends wget curl procps net-tools jq lz4 ca-certificates && rm -rf /var/lib/apt/lists/*Optional but recommended: verify integrity by checking a known SHA256 (set CRONOS_SHA256 from the release):
Please confirm the archive layout exposes
bin/cronosdat the archive root so/home/cronos/bin/cronosdremains valid after direct extraction. If not, add--strip-components=1to the tar command.🏁 Script executed:
Length of output: 2722
Remove TLS bypass; extract directly to /home/cronos; add CA and integrity check.
File: Dockerfile (lines ~6–8)
wget --no-check-certificate is a supply‑chain risk — replace with a verified download, extract directly into /home/cronos (avoid mv ./*), install CA trust, and validate the archive checksum.
Apply this diff to Lines 7‑8:
Ensure CA trust is installed (update the apt line) and trim apt lists:
RUN apt-get update -y && apt-get install -y --no-install-recommends wget curl procps net-tools jq lz4 ca-certificates && rm -rf /var/lib/apt/lists/*Optional but recommended: verify integrity with a known SHA256:
Verified: the archive contains ./bin/cronosd at the archive root, so direct extraction into /home/cronos will produce /home/cronos/bin/cronosd — no --strip-components required. Address the above changes before merging.
🧰 Tools
🪛 Checkov (3.2.334)
[high] 7-8: Ensure that certificate validation isn't disabled with wget
(CKV2_DOCKER_3)
🤖 Prompt for AI Agents