-
Notifications
You must be signed in to change notification settings - Fork 244
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
Remove bomb.zip
test file to stop anti-virus noise
#424
Conversation
This file was useful to verify the zip bomb protections worked properly against a real "zip bomb", but is not required to verify out mitigations works in our tests. Including a real zip bomb lead to confusion and reports of anti-virus causing issues for users.
cc @nywilken we probably need to get this same change landed in v2 sometime in the near future. |
Sounds good thanks for the detailed description. I like the approach. This change can be easily cherry-picked into v2 once merged. |
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.
LGTM
Sounds good thanks for the detailed description. I like the approach. This change can be easily cherry-picked into v2 once merged. |
Remove `bomb.zip` test file to stop anti-virus noise
* Merge pull request #424 from hashicorp/fix-av-reports Remove `bomb.zip` test file to stop anti-virus noise * Update call to WriteFile --------- Co-authored-by: Kent 'picat' Gruber <kent@hashicorp.com>
This is a recommended fix to avoid security alerts downloading the current release, that contained a suspicious test ZIP file. see: - https://github.com/hashicorp/go-getter/releases/v1.7.1 - hashicorp/go-getter#424 - hashicorp/go-getter#419
This PR aims to fix #419. The
bomb.zip
file was useful to verify the zip bomb protections worked properly, but is not required to verify our mitigations work. Including a real zip bomb lead to confusion and reports of anti-virus causing issues for users. Instead, a zip file is created inline with the test before verifying the decompression limit works.