DAST On-demand Scheduler - Implement Scheduling
related link(s)
implementation plan
use Extend DAST scan execution policy to support scheduled execution as a guide.
model changes
- create new model
Dast::ProfileScheduleid :: bigintdast_profile_id :: bigint-
user_id :: bigint(ownerof the schedule) next_run_at :: timestamp with time zonecron :: text
- add relevant model associations to
dast_profileanddast_profile_schedule
worker
- create a new worker
AppSec::Dast::ProfileScheduleWorker - enumerate upcoming scheduled scans and create a
dastscan using::DastOnDemandScans::CreateService
settings
- extend
Settings.cron_jobswith newly created workerAppSec::Dast::ProfileScheduleWorker - extend
ee/app/workers/all_queues.ymlwith newly created
gotchas
-
Ci::Pipelineneeds auserto ensure scan runs correctly hence necessity ofownerconcept
Edited by Philip Cunningham