Repository navigation
fix(inbox): require an authenticated sender before an allow-listed address is admitted - #10319
Conversation
…dress is admitted
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
No issues found across 4 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
This PR changes authentication, authorization, or input validation. Ultrareviews find 2.4x more serious bugs than standard reviews. Comment @cubic-dev-ai ultrareview to run one.
Turn on auto-fix | Re-trigger cubic
[Medium impact] The PR appears safe to merge; it closes the unauthenticated allowlist path without changing admission for authenticated senders. SummaryThe webhook now requires sender authentication before checking workspace membership or the allowed-senders list.
No actionable issues found. Review was based on source inspection; tests were not run.
|
Summary
Fromheader. Anyone who knew one allowed address could forge it and start an agent turn in the workspace (owner-attributed, read-capped, billed to the workspace)isSenderAllowedis now a plain member/allowlist lookup, and the webhook only runs it when the sender is authenticated, so an unauthenticated message is rejected assender_not_allowedwhichever address it namesType of Change
Testing
sender-authentication.integration.tsagainst real Postgres through the signed webhook and the real executor:readwith no secret actorFromnames. It fails with the executor check removedthread-scope.integration.ts, plus theapp/api/webhooks/agentmailandlib/mothership/inboxunit suites, passcheck:comment-hygiene,check:test-patterns,check:boundaries. Full type-check and audits run in CIChecklist
test-auditauthoring gate)