Skip to content

Verify download checksums during packaging#9226

Merged
swiatekm merged 2 commits intomainfrom
chore/check-download-checksums
Aug 25, 2025
Merged

Verify download checksums during packaging#9226
swiatekm merged 2 commits intomainfrom
chore/check-download-checksums

Conversation

@swiatekm
Copy link
Copy Markdown
Member

@swiatekm swiatekm commented Aug 1, 2025

What does this PR do?

It verifies downloaded binaries using checksum files that we already download anyway.

Why is it important?

We ensure we don't accidentally package corrupted binaries.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added an entry in ./changelog/fragments using the changelog tool
  • [ ] I have added an integration test or an E2E test

How to test this PR locally

Package agent locally. Intentionally corrupting the download requires some fiddling with proxies, unfortunately.

@swiatekm swiatekm added the backport-active-all Automated backport with mergify to all the active branches label Aug 1, 2025
@swiatekm swiatekm force-pushed the chore/check-download-checksums branch from 434306e to 71c6673 Compare August 1, 2025 17:40
@swiatekm swiatekm force-pushed the chore/check-download-checksums branch from 71c6673 to 4b9af7d Compare August 11, 2025 15:23
@swiatekm swiatekm added the chore Tasks that just need to be done, they are neither bug, nor enhancements label Aug 12, 2025
@swiatekm swiatekm force-pushed the chore/check-download-checksums branch from 4b9af7d to 8a9848c Compare August 12, 2025 14:11
@swiatekm swiatekm added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Aug 12, 2025
@swiatekm swiatekm marked this pull request as ready for review August 12, 2025 14:11
@swiatekm swiatekm requested a review from a team as a code owner August 12, 2025 14:11
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@elastic-sonarqube
Copy link
Copy Markdown

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

cc @swiatekm

Copy link
Copy Markdown
Contributor

@michel-laterman michel-laterman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM was able to verify that this verifies files in successful build cases.

@swiatekm swiatekm merged commit d5d0175 into main Aug 25, 2025
20 checks passed
@swiatekm swiatekm deleted the chore/check-download-checksums branch August 25, 2025 10:40
@github-actions
Copy link
Copy Markdown
Contributor

@Mergifyio backport 8.17 8.18 8.19 9.0 9.1

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 25, 2025

backport 8.17 8.18 8.19 9.0 9.1

✅ Backports have been created

Details

mergify bot pushed a commit that referenced this pull request Aug 25, 2025
* Verify download checksums

* Add tests for checksum verification

(cherry picked from commit d5d0175)
mergify bot pushed a commit that referenced this pull request Aug 25, 2025
* Verify download checksums

* Add tests for checksum verification

(cherry picked from commit d5d0175)
mergify bot pushed a commit that referenced this pull request Aug 25, 2025
* Verify download checksums

* Add tests for checksum verification

(cherry picked from commit d5d0175)
mergify bot pushed a commit that referenced this pull request Aug 25, 2025
* Verify download checksums

* Add tests for checksum verification

(cherry picked from commit d5d0175)
mergify bot pushed a commit that referenced this pull request Aug 25, 2025
* Verify download checksums

* Add tests for checksum verification

(cherry picked from commit d5d0175)
swiatekm added a commit that referenced this pull request Aug 25, 2025
* Verify download checksums

* Add tests for checksum verification

(cherry picked from commit d5d0175)

Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com>
swiatekm added a commit that referenced this pull request Aug 25, 2025
* Verify download checksums

* Add tests for checksum verification

(cherry picked from commit d5d0175)

Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com>
swiatekm added a commit that referenced this pull request Aug 25, 2025
* Verify download checksums

* Add tests for checksum verification

(cherry picked from commit d5d0175)

Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com>
swiatekm added a commit that referenced this pull request Aug 25, 2025
* Verify download checksums

* Add tests for checksum verification

(cherry picked from commit d5d0175)

Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com>
swiatekm added a commit that referenced this pull request Aug 25, 2025
* Verify download checksums

* Add tests for checksum verification

(cherry picked from commit d5d0175)

Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com>
kaanyalti pushed a commit to kaanyalti/elastic-agent that referenced this pull request Sep 4, 2025
* Verify download checksums

* Add tests for checksum verification
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-all Automated backport with mergify to all the active branches chore Tasks that just need to be done, they are neither bug, nor enhancements skip-changelog Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants