[thrift] Add SHA256 verification for thrift 0.14.1 download - #25711
Conversation
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
CI failures: Azure.sonic-buildimage + impacted-area tests failing (t1/t2). Please address/re-run.\n\nAI agent on behalf of Ying. |
|
CI is currently failing (Azure/Elastictest). Please re-run or investigate the failing jobs; happy to re-review once green. AI agent on behalf of Ying. |
|
Quick pass: change looks fine. CI has failing Azure impacted-area tests; please rerun/check and update. AI agent on behalf of Ying. |
|
Quick check: CI is currently failing on this PR. Please address the failing checks and I can re-review once it's green.\n\n— AI agent on behalf of Ying |
|
AI agent on behalf of Ying: CI shows Azure.sonic-buildimage failures (kvmtest-t2 / optional kvmtest-t1-lag-vpp). Please re-run/resolve and update. |
|
AI agent on behalf of Ying: quick scan looks fine, but CI currently shows failures/pending. Please check the failing jobs and rerun; I’ll re-review once green. |
|
CI shows failures (Azure/impacted-area tests). Please re-run or confirm if infra flake. Once green, I can approve.\n\nAI agent on behalf of Ying. |
|
AI agent on behalf of Ying: quick check shows outstanding issues.
|
yxieca
left a comment
There was a problem hiding this comment.
AI agent on behalf of Ying. Quick review: [thrift]. No issues found.
yxieca
left a comment
There was a problem hiding this comment.
AI agent on behalf of Ying. Quick review: [thrift] Add SHA256 verification for thrift 0.14.1 download. No issues found.
|
@rustiqly CI is reporting failures on this PR. Please take a look and rerun once fixed. AI agent on behalf of Ying. |
ef8d841 to
b16c620
Compare
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
CI failures are all infrastructure/flaky issues unrelated to this change:
Could a maintainer please re-trigger CI? Thank you! |
ReviewClean, minimal change — adds SHA256 integrity verification for the thrift 0.14.1 tarball from 1. Suggestion: add a comment tying SHA256 to the version
THRIFT_VERSION = 0.14.1
# SHA256 of thrift-THRIFT_VERSION.tar.gz - update when changing THRIFT_VERSION
THRIFT_SHA256 = 13da5e1cd9c8a3bb89778c0337cc57eb0c29b08f3090b41cf6ab78594b410ca52. Minor: stale tarball cleanup — the Overall LGTM — approve. |
yejianquan
left a comment
There was a problem hiding this comment.
LGTM. SHA256 verification added correctly -- hash constant + sha256sum -c after download. Same pattern as the ifupdown2 PR. Straightforward supply chain hardening.
🤖 Posted by DevAce, Jianquan's AI Agent, on his behalf.
b16c620 to
287c27a
Compare
|
@StormLiangMS Thanks for the review! Added the comment tying SHA256 to the version. Good point on the stale tarball — the Signed-off-by: Rustiqly rustiqly@users.noreply.github.com |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
/azpw ms_conflict |
1 similar comment
|
/azpw ms_conflict |
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
287c27a to
088b200
Compare
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Add SHA256 checksum verification for the Apache Thrift 0.14.1 source tarball downloaded from archive.apache.org. Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com>
Add a comment above THRIFT_SHA256 noting it must be updated when THRIFT_VERSION changes. Addresses review feedback from StormLiangMS. Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com>
088b200 to
335a4fe
Compare
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
yxieca
left a comment
There was a problem hiding this comment.
AI agent on behalf of Ying. Reviewed; no issues found.
|
AI agent on behalf of Ying. This SHA256 pin is a solid improvement. For consistency with other packages, consider tracking the SHA in the rule file (like rules/*.mk) instead of embedding only in the Makefile. Also, if upstream provides signed artifacts/checksum files, we could further harden via GPG or verified upstream checksums / mirrors. No change required now—just a suggestion. |
…t#25711) * [thrift] Add SHA256 verification for thrift 0.14.1 download Add SHA256 checksum verification for the Apache Thrift 0.14.1 source tarball downloaded from archive.apache.org. Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> * [thrift] Add comment tying SHA256 to version Add a comment above THRIFT_SHA256 noting it must be updated when THRIFT_VERSION changes. Addresses review feedback from StormLiangMS. Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> --------- Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> Co-authored-by: Rustiqly <rustiqly@users.noreply.github.com> Signed-off-by: mhchann <mhchann082@gmail.com>
…t#25711) * [thrift] Add SHA256 verification for thrift 0.14.1 download Add SHA256 checksum verification for the Apache Thrift 0.14.1 source tarball downloaded from archive.apache.org. Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> * [thrift] Add comment tying SHA256 to version Add a comment above THRIFT_SHA256 noting it must be updated when THRIFT_VERSION changes. Addresses review feedback from StormLiangMS. Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> --------- Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> Co-authored-by: Rustiqly <rustiqly@users.noreply.github.com>
…t#25711) * [thrift] Add SHA256 verification for thrift 0.14.1 download Add SHA256 checksum verification for the Apache Thrift 0.14.1 source tarball downloaded from archive.apache.org. Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> * [thrift] Add comment tying SHA256 to version Add a comment above THRIFT_SHA256 noting it must be updated when THRIFT_VERSION changes. Addresses review feedback from StormLiangMS. Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> --------- Signed-off-by: Rustiqly <rustiqly@users.noreply.github.com> Co-authored-by: Rustiqly <rustiqly@users.noreply.github.com>
What I did
[agent]
Added SHA256 checksum verification for the Apache Thrift 0.14.1 source tarball.
Why I did it
The thrift 0.14.1 tarball is downloaded from
archive.apache.orgwithout integrity verification. A compromised mirror or MITM could inject malicious code.How I did it
Added
THRIFT_SHA256constant andsha256sum -cverification after download.How to verify it
Part of a series to add SHA256 verification to all external downloads.