SSWConsulting / SSW.CodeAuditor

SSW Code Auditor V2
6 stars 6 forks source link

♻️ Link Scan - Add default throttle and configure parameter #886

Closed tombui99 closed 5 months ago

tombui99 commented 5 months ago

Cc: @william-liebenberg @wicksipedia @adamcogan

Pain

As from @wicksipedia email, last week CodeAuditor brought down SSW Website as it was sending too many http requests in a short period of time. Therefore, we need to add default throttle and delay to make CodeAuditor run slower so these sites can catch a breath.

Tasks

Thanks!

tombui99 commented 5 months ago

cc @william-liebenberg @wicksipedia @adamcogan

Add default throttle setting and scan delay to link scanning

Done - added default maximum number of Golang thread to 100 and 3ms delay after scanning on each link

Add an extra parameter to set max thread in CodeAuditor Action

Done - added new parameter in CodeAuditor workflow to set max Golang thread

Image

Figure: New input parameter to add max thread

Update Homepage instruction for the new setting

Done - added instruction on "How to run a scan" page to set max Golang thread

Image

Figure: New instruction to add optional setting