feat: rate-limit folder virus scans#103
Merged
DenizAltunkapan merged 1 commit intoJul 18, 2026
Merged
Conversation
Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
arnabnandy7
requested review from
DenizAltunkapan,
GabrielBBaldez and
MaximilianRau04
as code owners
July 17, 2026 18:23
DenizAltunkapan
approved these changes
Jul 18, 2026
DenizAltunkapan
left a comment
Member
There was a problem hiding this comment.
@arnabnandy7 thank you for your contirbution, looks very good!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SCANrate-limit category.POST /api/files/scanper authenticated user, falling back to client IP.GET /api/files/scan/{jobId}polling outside the scan budget.Linked issue
Closes #97
How to test
Expected result: all formatting checks pass and the test suite completes successfully.
Manual verification:
POST /api/files/scan; expect202 Accepted.429 Too Many Requests.GET /api/files/scan/{jobId}; expect polling to remain available.cloudpage.rate-limit.per-client.scan.capacity=0and verify repeated scan starts are not rate-limited.Notes / Risk