Repository navigation
Conversation
target.verified, run.started, run.completed, run.failed, run.refused and finding.created, delivered as signed CloudEvents to the account owning the target. Findings carry severity + title only, never the probe payload. /api/v1/webhooks behind the existing API-key auth, /account#webhooks UI, CLI webhooks/webhook, MCP webhook tools. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds outbound customer webhooks on
@profullstack/webhooks@0.2.1(pinned exactly; deliveries never follow redirects).Events (owner = the account that owns the target):
target.verified: a host goes from unverified/lapsed to verified (not re-sent on every scan's re-check)run.started: the worker passed the second gate wall and is calling the enginerun.completed: summary, severity counts, number of findings, report URLrun.failed: engine threw, or the target was unreachablerun.refused: the ownership gate refused the run (at launch or right before the engine)finding.created:severity+title(the check name) + ids + report URL only. Never the message, probed URL or details, since those can carry the probe payload.Surfaces
new Webhooks({ store: sqliteStore(store.db), source: origin, eventTypes })inAutoHacker;hooks.start()once inserve()./api/v1/webhooks(webhooksApi) behind the existingah_…bearer / session auth; 401 without one; cross-site cookie writes refused./account#webhookslist/add (with event patterns)/test/rotate/remove, secret shown after add/rotate.autohacker webhooks,autohacker webhook add|test|rotate|rm|log.list_webhooks,create_webhook,test_webhook,rotate_webhook_secret,delete_webhook,webhook_deliveries.No existing outbound webhooks, so nothing to migrate. (
/hooks/coinpayis inbound and unchanged.)Tests:
test/webhooks.test.ts(signed deliveries verify withverifySignature, event order, target.verified once, finding payload has no payload/location, refusal, unreachable -> run.failed, cross-account isolation, API 401 + scoped CRUD). 27/27 pass,tsc --noEmitclean.Version 0.1.0 -> 0.2.0.
🤖 Generated with Claude Code