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
@@ -59,7 +59,15 @@
|
||||
@endif
|
||||
|
||||
<div class="bg-white dark:bg-gray-800 shadow-sm sm:rounded-lg p-6">
|
||||
<h3 class="font-semibold text-gray-800 dark:text-gray-200 mb-4">{{ __('Targets') }}</h3>
|
||||
<div class="flex justify-between items-center mb-4">
|
||||
<h3 class="font-semibold text-gray-800 dark:text-gray-200">{{ __('Targets') }}</h3>
|
||||
@if ($canEdit && $investigation->targets->count() > 1)
|
||||
<form method="POST" action="{{ route('investigations.run-all', $investigation) }}">
|
||||
@csrf
|
||||
<x-secondary-button type="submit">{{ __('Run all targets') }}</x-secondary-button>
|
||||
</form>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@forelse ($investigation->targets as $target)
|
||||
<div class="border-t border-gray-200 dark:border-gray-700 py-4 first:border-t-0 first:pt-0">
|
||||
@@ -90,6 +98,12 @@
|
||||
<x-secondary-button type="submit">{{ __('Run') }}</x-secondary-button>
|
||||
</form>
|
||||
@endif
|
||||
@if ($applicableSources->filter(fn ($s) => $runnableSourceKeys->contains($s->key))->count() > 1)
|
||||
<form method="POST" action="{{ route('investigations.targets.run-all', [$investigation, $target]) }}">
|
||||
@csrf
|
||||
<x-secondary-button type="submit">{{ __('Run all') }}</x-secondary-button>
|
||||
</form>
|
||||
@endif
|
||||
<form method="POST" action="{{ route('investigations.targets.destroy', [$investigation, $target]) }}" onsubmit="return confirm('{{ __('Delete this target and its findings?') }}');">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
|
||||
Reference in New Issue
Block a user