-
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
Disallow multiple single-use notes on a single object #11306
base: bugfix
Are you sure you want to change the base?
Conversation
DryRun Security SummaryThe code change in this pull request implements a new feature that restricts the creation of multiple instances of a specific note type on an engagement, finding, or test, which is a security-focused improvement to the Defect Dojo application. Expand for full summarySummary: The code change in this pull request appears to be a security-focused improvement to the Defect Dojo application. The key change is the implementation of a new feature that restricts the creation of multiple instances of a specific note type on an engagement, finding, or test. This change is likely an application security enhancement to prevent users from accidentally creating multiple instances of certain note types, which could lead to confusion or unintended behavior in the application. From an application security perspective, this change is a positive step, as it helps to enforce data integrity and consistency within the application. By restricting the creation of multiple instances of specific note types, the application reduces the risk of data inconsistency and potential security vulnerabilities that could arise from such inconsistencies. Overall, this code change appears to be a well-considered improvement to the Defect Dojo application, with a focus on enhancing the application's security and data integrity. Files Changed:
Code AnalysisWe ran Riskiness🟢 Risk threshold not exceeded. |
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
[sc-6050]
Returns a BAD_REQUEST status and an error message when attempting to POST a note with a Note Type of 'is_single' - if another Note with that Note Type already exists on the given object (finding, engagement, test).