-
Notifications
You must be signed in to change notification settings - Fork 14
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
#4019 - Virus Scan False Positives #4129
Conversation
@@ -562,7 +562,7 @@ MaxRecursion 10 | |||
# Note: disabling this limit or setting it too high may result in severe damage | |||
# to the system. | |||
# Default: 10000 | |||
MaxFiles 100 | |||
MaxFiles 10000 |
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.
As it is set to default value please comment this line leaving the default value to be in effect.
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.
Thanks @dheepak-aot
Default value is commented.
sources/packages/clam-av/clamd.conf
Outdated
@@ -562,7 +562,7 @@ MaxRecursion 10 | |||
# Note: disabling this limit or setting it too high may result in severe damage | |||
# to the system. | |||
# Default: 10000 | |||
MaxFiles 100 | |||
MaxFiles 10000 |
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.
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.
Thanks @dheepak-aot
Default value is commented.
Quality Gate passedIssues Measures |
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.
Thanks for doing the changes @bidyashish. Looks good 👍
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.
Looks good. Thanks for the explanation. I just think that some explanation about why that happened and how it works would be good to be added in the description of this PR as someone can as ask one of the DEVs in the future why we change that.
Acceptance Criteria
Notes
MaxFiles 100 was causing issue with file being not scanned and using ClamAV virus Database bank to not scan file.
MaxFiles in ClamAV's configuration refers to the maximum number of files to be scanned within an archive, document, or any other container file. Here's a detailed explanation: For example: If scanning a ZIP file containing 15,000 files with MaxFiles 10000: Only the first 10,000 files will be scanned The remaining 5,000 files will be skipped If AlertExceedsMax is enabled, it will trigger a "Heuristics.Limits.Exceeded.MaxFiles" alert
Update Clam AV Docker from BCGOV Repo
Link: https://github.com/bcgov/common-hosted-clamav-service/pkgs/container/clamav-unprivileged
Demo: Manual test in Dev using Config update.