-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Make the number of request/response pairs returned by the API configurable #9967
Conversation
Hi there 👋, @DryRunSecurity here, below is a summary of our analysis and findings.
Note 🔴 Risk threshold exceeded. Adding a reviewer if one is configured in notification list: @mtesauro @grendel513 Tip Get answers to your security questions. Add a comment in this PR starting with @DryRunSecurity. For example...
Powered by DryRun Security |
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.
Just a minor comment to make the environment variable's purpose a little clearer. I'm also not sure it makes sense to have a 0
value return 0 results here - I doubt anyone would want to force returning 0 req/resp pairs globally, but I'll leave that up to you to decide.
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.
Approved
Co-authored-by: Charles Neill <[email protected]>
…rable (DefectDojo#9967) * limit req response via setting * add unittest * update running test documentation * also must do here * fix linting, add urls.py * trailing space in a comment... * switch back to finding - different test uses it * change test data to not break * reset data, use my own * Update dojo/settings/settings.dist.py Co-authored-by: Charles Neill <[email protected]> --------- Co-authored-by: Charles Neill <[email protected]>
Description
[sc-5238]
Implemented a new variable, DD_MAX_REQRESP_FROM_API, to allow a limit to the number of request/response pairs that are returned via the API. The default value is -1, meaning no limit to maintain current functionality.
Test results
Tested with multiple values for MAX_REQRESP_FROM_API: 5, 10, 18, 100, -1, -100
See included unittest for more
All tests pass
Documentation
Updated the DOCKER.md file to include updated instructions for running single or more tests in the container