-
Notifications
You must be signed in to change notification settings - Fork 9
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
TechDebt: Centralize Virus Scan #1365
Conversation
Openshift URLs for the PR Deployment: |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #1365 +/- ##
==========================================
- Coverage 48.34% 48.28% -0.06%
==========================================
Files 763 763
Lines 20498 20465 -33
Branches 3134 3124 -10
==========================================
- Hits 9909 9882 -27
+ Misses 10437 10431 -6
Partials 152 152 ☔ View full report in Codecov by Sentry. |
@mauberti-bc I know we talked about patching the error handling as part of this PR, but on second thought there is no real overlap, so in the interest of small PRs we may as well merge this when its ready. I can just open a separate PR for the frontend changes. |
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.
👍
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.
🫎
Links to Jira Tickets
n/a
Description of Changes
Move the virus scan step into the app.ts file, so that it doesn't need to be included in every endpoint that handles file uploads.
Testing Notes
Uploading/Downloading files works as before.
Can use this string (paste into a random txt file) to trigger our APIs file upload virus scans: https://en.wikipedia.org/wiki/EICAR_test_file
I've tested a few places we upload files, and they work as expected. Every file upload goes through the same field and should be handled by the same multer middleware anyways, so if one works they should all work.