-
Notifications
You must be signed in to change notification settings - Fork 2
feat: INFRA-6244 Cronos testnet image upgrade v1.5.3 #88
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,8 +8,8 @@ RUN mkdir -p /home/cronos/data && mkdir -p /home/cronos/config | |
| RUN apt-get update -y && apt-get install wget curl procps net-tools jq lz4 -y | ||
|
|
||
| # Download and verify tarball | ||
| RUN cd /tmp && wget --no-check-certificate https://github.com/crypto-org-chain/cronos/releases/download/v1.5.3/cronos_1.5.3_Linux_x86_64.tar.gz && tar -xvf cronos_1.5.3_Linux_x86_64.tar.gz \ | ||
| && rm cronos_1.5.3_Linux_x86_64.tar.gz && mv ./* /home/cronos/ | ||
| RUN cd /tmp && wget --no-check-certificate https://github.com/crypto-org-chain/cronos/releases/download/v1.5.1/cronos_1.5.3-testnet_Linux_x86_64.tar.gz && tar -xvf cronos_1.5.3-testnet_Linux_x86_64.tar.gz \ | ||
| && rm cronos_1.5.3-testnet_Linux_x86_64.tar.gz && mv ./* /home/cronos/ | ||
|
Comment on lines
+11
to
+12
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. 🧩 Analysis chainVerify release version: PR claims v1.5.3 but URL downloads v1.5.1. The PR objective states "Cronos testnet image upgrade to v1.5.3", but line 11 downloads from the Run the following script to verify the release exists and inspect its contents: 🏁 Script executed: #!/bin/bash
# Description: Verify the v1.5.1 release and check for the expected tarball
# Fetch release metadata
gh api repos/crypto-org-chain/cronos/releases/tags/v1.5.1 --jq '.assets[] | {name, download_count}'
# Check if v1.5.3 release also exists
echo "Checking for v1.5.3 release..."
gh api repos/crypto-org-chain/cronos/releases/tags/v1.5.3 --jq '.assets[] | {name, download_count}' 2>/dev/null || echo "v1.5.3 release not found or not accessible"Length of output: 1697 Fix critical version mismatch: URL downloads v1.5.1 but requests v1.5.3 file that doesn't exist. Line 11 contains a breaking error: the URL references the Additionally, remove the 🧰 Tools🪛 Checkov (3.2.334)[high] 11-12: Ensure that certificate validation isn't disabled with wget (CKV2_DOCKER_3) 🤖 Prompt for AI Agents |
||
|
|
||
| # Set permissions | ||
| RUN chown -R cronos:cronos /home/cronos && chmod 1777 /tmp | ||
|
|
||
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.
Remove
--no-check-certificateflag for security.Disabling certificate validation via
--no-check-certificateintroduces a man-in-the-middle attack vector, even in a trusted Docker build environment. This is a security best practice violation.Apply this fix to remove the flag:
If certificate issues persist in your build environment, consider updating the base image (bullseye-slim includes current CA certificates) rather than disabling verification.
📝 Committable suggestion
🧰 Tools
🪛 Checkov (3.2.334)
[high] 11-12: Ensure that certificate validation isn't disabled with wget
(CKV2_DOCKER_3)
🤖 Prompt for AI Agents