Start ZAP and import context
Transition the following logic from the ZAP Python scripts to the DAST Python scripts:
- Import context, if exists
- trigger: zap_started
- Wait for ZAP to start
- Start ZAP
Outstanding tasks
-
Add to GitLab DocsDAST_ZAP_CONNECT_SLEEP_SECONDS
: The amount of seconds to wait between each connection attempt to the ZAP API, -
Add to GitLab DocsDAST_ZAP_MAX_CONNECTION_ATTEMPTS
: The amount of connection attempts to make to the ZAP API before aborting -
Add to GitLab DocsDAST_PASSIVE_SCAN_MAX_WAIT_TIME
: The amount of minutes to wait for the passive scan to complete -
Import context, if existsContext cannot be imported as it doesn't work. This code has been removed gitlab-org/security-products/dast!253 (merged). -
Trigger zap_started
code -
Wait for the ZAP Server to start -
Connect to the ZAP Server
Edited by Cameron Swords