quickstart: Add Scan Policy option to Automated Scan panel#7300
quickstart: Add Scan Policy option to Automated Scan panel#7300Adarshkumar0509 wants to merge 12 commits intozaproxy:mainfrom
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
Changelog will have to be updated. |
|
Great job! No new security vulnerabilities introduced in this pull requestUse @Checkmarx to interact with Checkmarx PR Assistant. |
|
@Checkmarx rescan this PR. |
|
@Checkmarx rescan this PR. |
|
hii @kingthorin sir can you have a look at this. |
You don't need to worry about this, thanks for trying to be diligent 😉 |
|
hii @kingthorin and @thc202 , please take a look whenever you have time. since this was my first contribution i want to contribute and learn more can you guide me some issues. |
|
It's not necessary to ping, we get notifications of comments/pushes. |
psiinon
left a comment
There was a problem hiding this comment.
It works, which is always a good start 😁
A couple of chances would be good:
- Initially default to "Dev Standard" (if present)
- Save the last chosen policy in the options, and use that as the new default
- Update the help
|
i have made the changes , Take a look whenever you have time. |
| } | ||
| if (savedPolicy != null && !savedPolicy.isEmpty()) { | ||
| policyField.setSelectedItem(savedPolicy); | ||
| } else if (defaultPolicy != null) { |
There was a problem hiding this comment.
Preferable to inline in the if than declare variables upfront that might not be even used.
|
|
||
| The scan policy to use when performing the active scan. | ||
| The last chosen policy will be used by default. | ||
| <br><br> |
There was a problem hiding this comment.
I believe this is still outstanding
|
Be good to add some tests to cover the new behaviour. |
|
can you take a look at this. |
| attackThread.setURL(url); | ||
| attackThread.setTraditionalSpider(traditionalSpider); | ||
| attackThread.setPlugableSpider(plugableSpider); | ||
| attackThread.setScanPolicyName(getQuickStartPanel().getAttackPanel().getSelectedPolicy()); |
There was a problem hiding this comment.
This will break in headless mode, see HeadlessQuickAttacker usage. Better add a package method which accepts a policy than access view classes directly.
|
please take a look at this. |
|
Still pending review comments. |
| org.gradle.parallel=true | ||
| org.gradle.jvmargs=-Xmx2g |
|
working on it. |
… gradle.properties
|
just take a look at this |
There was a problem hiding this comment.
There should be no changes to this file
There was a problem hiding this comment.
For gradle.properties: reply i Reverted in latest commit.
|
|
||
| The scan policy to use when performing the active scan. | ||
| The last chosen policy will be used by default. | ||
| <br><br> |
There was a problem hiding this comment.
I believe this is still outstanding

Fixes zaproxy/zaproxy#9291
Added a Scan Policy dropdown to the Quick Start Automated Scan panel.
Changes: