Implement Granola webhook signature verification and payload parsing - #2
Merged
TheGreatAxios merged 1 commit intoAug 2, 2026
Conversation
Replaces the skeleton placeholder with real Standard-Webhooks HMAC-SHA256 verification (multi-signature rotation support, timestamp tolerance, constant-time compare) and payload parsing/validation. Pure functions, no network or side effects. Adds arktype as a real dependency. Dispatch (the GranolaIngressOptions/GranolaWebhookHandler skeleton) is dropped for now — it belongs to the ingest-router slice, which needs its own lifecycle-hooks design and isn't part of this move.
TheGreatAxios
deleted the
cl-5089-move-granola-webhook-signature-verification-payload-parsing
branch
August 2, 2026 20:52
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.
Summary
verifyGranolaSignatureplaceholder with the real Standard-Webhooks HMAC-SHA256 implementation moved fromcorbitsdev/scout(hub/src/granola/webhook.ts) — signature verification, secret decoding, timestamp-freshness check, multi-signature rotation support, constant-time compareparseGranolaPayload,GranolaWebhookPayload) and the test-signing helper (signGranolaPayload)arktypeas a real dependency (the skeleton had none)GranolaIngressOptions/GranolaWebhookHandlerdispatch placeholder — dispatch belongs to the ingest-router slice, which needs its own lifecycle-hooks design (deferred, tracked separately) and isn't a lift-and-shift like this oneTest plan
bun run check-deps— cleanbun run typecheck— cleanbun run test:ingress— 20 passbun run test:tools— 2 pass (unaffected)bun run build— cleanCL-5089