Skip to content

Add scan preferences#33

Merged
greenbonebot merged 13 commits into
mainfrom
add-scan-preferences
Jun 24, 2026
Merged

Add scan preferences#33
greenbonebot merged 13 commits into
mainfrom
add-scan-preferences

Conversation

@timopollmeier

Copy link
Copy Markdown
Member

What

Scan preferences scan_mode and ajax_spider_timeout that can be set on scan creation are added.
The scan_mode can be either safe or active. The ajax_spider_timeout is sets the maximum run time for the AJAX spider in ZAP.

Why

The scan mode preference makes the scans safer by default by requiring active scans to be enabled explicitly.

References

GEA-1789

Co-authored-by: AI (copilot/full)
A module for handling the `scan_type` and `ajax_spider_timeout` preferences is added.

Co-authored-by: AI (copilot/full)
Co-authored-by: AI (copilot/full)
The `execute_scan` function now handles different scan phases and stop requests with helper function so the control flow is easier to read.

Co-authored-by: AI (copilot/full)
Co-authored-by: AI (copilot/full)
@timopollmeier timopollmeier requested review from a team as code owners June 24, 2026 08:09
@greenbonebot greenbonebot enabled auto-merge (rebase) June 24, 2026 08:10
Comment thread src/scan/worker.rs
Comment thread src/zapclient/ajaxspider.rs
@timopollmeier timopollmeier force-pushed the add-scan-preferences branch from 05ab1a8 to 42e38e5 Compare June 24, 2026 13:20
Comment thread src/scan/worker.rs
ozgen
ozgen previously approved these changes Jun 24, 2026
Co-authored-by: AI (copilot/full)
Co-authored-by: AI (copilot/full)
@greenbonebot greenbonebot merged commit 7ad539e into main Jun 24, 2026
14 checks passed
@greenbonebot greenbonebot deleted the add-scan-preferences branch June 24, 2026 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants