Add bulk-run actions and per-source rate limiting
Run-all buttons (per target and per investigation) queue every applicable, not-already-in-flight source via a new FindingDispatcher, re-attempting prior failures automatically. RunFinding now applies a per-source RateLimited queue middleware so a bulk run can't hammer the free public APIs (ip-api, crt.sh, whois, sherlock, theharvester) it depends on; $tries raised to 30 to survive rate-limiter releases, with a failed() handler so exhausted retries still resolve the Finding instead of leaving it stuck pending. Also fixes CrtShRunner treating crt.sh's intermittent 404/502 (a known flaky free service) as fatal on the first try — added a bounded retry. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
853686f3f3
commit
e4fa57c3d6
@@ -25,9 +25,11 @@ Route::middleware('auth')->group(function () {
|
||||
Route::get('/search', [SearchController::class, 'index'])->name('search.index');
|
||||
|
||||
Route::resource('investigations', InvestigationController::class)->only(['index', 'create', 'store', 'show', 'destroy']);
|
||||
Route::post('investigations/{investigation}/run-all', [InvestigationController::class, 'runAll'])->name('investigations.run-all');
|
||||
Route::post('investigations/{investigation}/targets', [TargetController::class, 'store'])->name('investigations.targets.store');
|
||||
Route::delete('investigations/{investigation}/targets/{target}', [TargetController::class, 'destroy'])->name('investigations.targets.destroy');
|
||||
Route::post('investigations/{investigation}/targets/{target}/run', [TargetController::class, 'run'])->name('investigations.targets.run');
|
||||
Route::post('investigations/{investigation}/targets/{target}/run-all', [TargetController::class, 'runAll'])->name('investigations.targets.run-all');
|
||||
|
||||
Route::get('investigations/{investigation}/access', [InvestigationAccessController::class, 'index'])->name('investigations.access.index');
|
||||
Route::post('investigations/{investigation}/access/users', [InvestigationAccessController::class, 'storeUser'])->name('investigations.access.users.store');
|
||||
|
||||
Reference in New Issue
Block a user