-
Notifications
You must be signed in to change notification settings - Fork 149
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
Fix download verification in snapshot builds #255
Conversation
Modify verifier to only delete the binary and .sha512 files when there is a checksum mismatch. And only delete the .asc file when the signature does not validate. Fixes elastic#252
This pull request does not have a backport label. Could you fix it @andrewkroh? 🙏
NOTE: |
e9ad916
to
85697f8
Compare
There is something weird with the linter failure on darwin CI.
If I remove the |
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.
@andrewkroh look good to me, I will merge it.. Not sure about why the linter is so weird.
I'll make a note we need an integration test for this scenario. To be honest I hope with the changes of shippers and the beats we can remove the download on demande when features are need.
cc @nimarezainia, we will also need to add this feature to the artifact api so we can control the bandwith/speed over a network, if not we will have the same issues as an upgrade.
What does this PR do?
Modify verifier to only delete the binary and .sha512 files when there is a
checksum mismatch. And only delete the .asc file when the signature does not
validate.
Fixes #252
Why is it important?
Downloaded artifacts fail signature validation in SNAPSHOT builds. You cannot test Packetbeat or Auditbeat with 8.2.0-SNAPSHOT builds.
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Related issues