-
Notifications
You must be signed in to change notification settings - Fork 39
Report stats about blocked/monitored user agents and IPs #505
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
3e2b46e
Report stats about blocked and rate limited requests
hansott 50d6478
Fix types
hansott 1598c09
Fix unit test
hansott 422a57b
Improve block request stats object
hansott d66f58d
Add key of matching IP/User agent list
hansott c6814e7
Update mock server
hansott 5d0c34e
Fix linting
hansott f07de45
Merge branch 'main' of github.com:AikidoSec/node-RASP into request-stats
hansott 1062e5d
Fixes
hansott b836465
Fix end2end test
hansott 3676533
Merge branch 'main' of github.com:AikidoSec/node-RASP into request-stats
hansott b94d1b8
Improve diff
hansott bef8fe2
Fix test file
hansott c39a440
Fix agent test
hansott 6f3156d
Merge branch 'main' of github.com:AikidoSec/node-RASP into request-stats
hansott acd2939
Revert changes
hansott 41169e3
Undo
hansott fe7e49a
Merge branch 'main' of github.com:AikidoSec/node-RASP into request-stats
hansott 505fb4b
Update inspection stats
hansott 9863cda
add unit test for monitored IPs and user agents
hansott df58be7
Improve tests
hansott 859a7bb
Set monitored user agents and IPs in config
hansott ee32f54
fix: update isUserAgentBlocked test to match implementation
hansott 1067623
Update FunctionsFramework tests to match new statistics structure
hansott 55787c2
Add tests for user agent and IP monitoring
hansott 112d9a4
Update Lambda test assertions to match new stats structure
hansott 82683f3
Fix formatting
hansott 5992d38
Fix linting
hansott 7c81efa
Ensure fetchBlockedLists returns all properties
hansott 1bd7dcf
Merge branch 'main' of github.com:AikidoSec/node-RASP into request-stats
hansott 920752f
Fix comment
hansott 25144ab
Use monitor flag instead of separate lists
hansott 274842d
Fix test
hansott b8b9022
Fixes
hansott 9bac765
Fix stats test assertions
hansott e2ec466
refactor: update statistics structure to use simpler format with tota…
hansott 090802f
Fix end2end tests
hansott 748aa1b
FIX TypeScript errors and remove unused eslint directives
hansott 8c33ac5
Add comment
hansott f4a0e4e
Move user agent and IP statistics outside requests
hansott 00f2b76
Move monitoring logic to checkIfRequestIsBlocked
hansott 65162e3
Fixes
hansott a1c97d1
Make sure to increment total only once
hansott 9914a3a
Reduce diff
hansott 1b8bb57
Add try/catch around new RegExp
hansott 94f49d0
Improve tests
hansott 7a59939
Merge branch 'main' of github.com:AikidoSec/node-RASP into request-stats
hansott 519a39d
Rename AgentBlocklist to BotBlocklist
hansott 2fa9007
Use .find(...) for performance
hansott 3f58756
Rename methods (we return a list of matches now)
hansott 8580d8e
Remove total and blocked
hansott cf35e65
Prevent double counting monitored lists
hansott 6f84655
Set symbol to true and add comment
hansott a42b9e2
Merge branch 'main' of github.com:AikidoSec/node-RASP into request-stats
hansott 3bcba19
Merge branch 'beta' of github.com:AikidoSec/node-RASP into request-stats
hansott b3f888b
Fix test
hansott File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.