Skip to content

feat(plugins): opt-in raw request body for native plugin routes - #1983

Closed
swissky wants to merge 1 commit into
emdash-cms:mainfrom
swissky:feat/plugin-route-raw-body
Closed

swissky wants to merge 1 commit into
emdash-cms:mainfrom
swissky:feat/plugin-route-raw-body

Conversation

@swissky

@swissky swissky commented Jul 12, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Adds an opt-in rawBody: true flag for native plugin routes. Routes that set it receive the unparsed request body as ctx.rawBody, alongside the parsed ctx.input.

Why: webhook providers (Stripe, GitHub, Svix, …) sign the exact raw bytes of the delivery. Since the dispatcher consumes the body stream to build ctx.input (and ctx.request.text() is guarded per #1293), plugins currently have no way to verify those signatures — an HMAC over a re-serialized ctx.input never matches. Non-JSON payloads (form-encoded webhook deliveries) are also silently lost today.

How: the dispatcher already buffers the body to parse it. It now reads text() once, parses ctx.input from the same buffer, and forwards the string only to routes that opted in. No extra I/O, no behavior change for existing routes. The #1293 guard message now points at rawBody: true as the escape hatch. Native format only; sandboxed plugins cross a serialization boundary and would need separate plumbing.

Discussion: #1982

Type of change

  • Bug fix
  • Feature (requires maintainer-approved Discussion)
  • Refactor (no behavior change)
  • Translation
  • Documentation
  • Performance improvement
  • Tests
  • Chore (dependencies, CI, tooling)

Checklist

AI-generated code disclosure

  • This PR includes AI-generated code — model/tool: Cursor + Claude. All changes reviewed and tested by me.

Screenshots / test output

tests/unit/plugins + plugin-api-route-auth: 625 passed (625)

New tests cover: raw body delivered on opted-in routes (byte-exact, alongside validated input), ctx.rawBody undefined without the flag, and non-JSON payloads reaching the handler with input undefined.

@changeset-bot

changeset-bot Bot commented Jul 12, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4b62ec5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
Name Type
emdash Minor
@emdash-cms/cloudflare Minor
@emdash-cms/sandbox-workerd Patch
@emdash-cms/fixture-perf-site Patch
@emdash-cms/perf-demo-site Patch
@emdash-cms/cache-demo-site Patch
@emdash-cms/do-demo-site Patch
@emdash-cms/do-solo-demo-site Patch
@emdash-cms/admin Minor
@emdash-cms/auth Minor
@emdash-cms/blocks Minor
create-emdash Minor
@emdash-cms/gutenberg-to-portable-text Minor
@emdash-cms/x402 Minor
@emdash-cms/auth-atproto Patch
@emdash-cms/release-service Patch
@emdash-cms/plugin-embeds Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jul 12, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@emdash-cms/admin

npm i https://pkg.pr.new/@emdash-cms/admin@1983

@emdash-cms/auth

npm i https://pkg.pr.new/@emdash-cms/auth@1983

@emdash-cms/auth-atproto

npm i https://pkg.pr.new/@emdash-cms/auth-atproto@1983

@emdash-cms/blocks

npm i https://pkg.pr.new/@emdash-cms/blocks@1983

@emdash-cms/cloudflare

npm i https://pkg.pr.new/@emdash-cms/cloudflare@1983

@emdash-cms/contentful-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/contentful-to-portable-text@1983

emdash

npm i https://pkg.pr.new/emdash@1983

create-emdash

npm i https://pkg.pr.new/create-emdash@1983

@emdash-cms/gutenberg-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/gutenberg-to-portable-text@1983

@emdash-cms/plugin-cli

npm i https://pkg.pr.new/@emdash-cms/plugin-cli@1983

@emdash-cms/plugin-types

npm i https://pkg.pr.new/@emdash-cms/plugin-types@1983

@emdash-cms/registry-client

npm i https://pkg.pr.new/@emdash-cms/registry-client@1983

@emdash-cms/registry-lexicons

npm i https://pkg.pr.new/@emdash-cms/registry-lexicons@1983

@emdash-cms/registry-moderation

npm i https://pkg.pr.new/@emdash-cms/registry-moderation@1983

@emdash-cms/registry-verification

npm i https://pkg.pr.new/@emdash-cms/registry-verification@1983

@emdash-cms/sandbox-workerd

npm i https://pkg.pr.new/@emdash-cms/sandbox-workerd@1983

@emdash-cms/x402

npm i https://pkg.pr.new/@emdash-cms/x402@1983

@emdash-cms/plugin-ai-moderation

npm i https://pkg.pr.new/@emdash-cms/plugin-ai-moderation@1983

@emdash-cms/plugin-atproto

npm i https://pkg.pr.new/@emdash-cms/plugin-atproto@1983

@emdash-cms/plugin-audit-log

npm i https://pkg.pr.new/@emdash-cms/plugin-audit-log@1983

@emdash-cms/plugin-color

npm i https://pkg.pr.new/@emdash-cms/plugin-color@1983

@emdash-cms/plugin-embeds

npm i https://pkg.pr.new/@emdash-cms/plugin-embeds@1983

@emdash-cms/plugin-field-kit

npm i https://pkg.pr.new/@emdash-cms/plugin-field-kit@1983

@emdash-cms/plugin-forms

npm i https://pkg.pr.new/@emdash-cms/plugin-forms@1983

@emdash-cms/plugin-webhook-notifier

npm i https://pkg.pr.new/@emdash-cms/plugin-webhook-notifier@1983

commit: 4b62ec5

@emdashbot emdashbot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a clean, additive feature that solves a real pain point: native plugin routes need the unparsed body to verify webhook signatures and to handle non-JSON deliveries. The approach is idiomatic (opt-in flag on the route, dispatcher reads text() once, handler conditionally exposes rawBody) and fits EmDash's existing route flow without changing behavior for existing routes.

I did not run the test suite, linter, or builds (no shell/runtime access), so I take the author's test/type-check claims as unverified. Code-wise the change is straightforward, but I spotted two gaps worth addressing before merge:

  1. The implementation in emdash-runtime.ts lacks an integration test. The new tests only exercise PluginRouteHandler.invoke and pass rawBody in manually; they don't verify that EmDashRuntime.handlePluginApiRoute actually reads request.text(), buffers the string, parses JSON when valid, and leaves ctx.input undefined for non-JSON payloads. The repo already has an integration test following this exact pattern (plugin-media-route.test.ts), so a matching plugin-raw-body-route.test.ts would close the gap.

  2. Docs/comments claim "exact raw bytes" while ctx.rawBody is a decoded string. Webhook signatures are HMACs over bytes, and request.text() / ctx.rawBody: string is a UTF-8 decoding step away from bytes. In practice Stripe/GitHub/Svix deliver UTF-8 JSON, so re-encoding with new TextEncoder() works, but the wording is technically incorrect and could mislead users handling binary or non-UTF8 payloads. Consider softening the claim or documenting the UTF-8 assumption.

Neither is a blocker, but both are worth a quick pass.

Comment thread packages/core/src/emdash-runtime.ts Outdated
Comment on lines +3344 to +3351

// Buffer the body as text so routes with `rawBody: true` can see the
// exact bytes (webhook signature verification); parse JSON from the
// same buffer for `ctx.input`.
let body: unknown = undefined;
let rawBody: string | undefined;
try {
body = await request.json();
rawBody = await request.text();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggestion] The new unit tests in routes.test.ts pass rawBody directly into PluginRouteHandler.invoke; they don't exercise this block, which is the real behavioral change of the PR. There is already an integration-test pattern for EmDashRuntime.handlePluginApiRoute (see packages/core/tests/integration/runtime/plugin-media-route.test.ts). Adding an integration test would verify that request.text() is read once, JSON is parsed into ctx.input, non-JSON payloads leave ctx.input undefined, and ctx.rawBody is only populated for opted-in routes.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done — added tests/integration/runtime/plugin-raw-body-route.test.ts exercising handlePluginApiRoute end to end: (1) JSON payload parsed into ctx.input while ctx.rawBody keeps the exact delivered text (whitespace/key order preserved), (2) non-JSON payload leaves ctx.input undefined with ctx.rawBody intact, (3) ctx.rawBody stays undefined for a route that did not opt in.

Comment thread packages/core/src/emdash-runtime.ts Outdated
Comment on lines +3344 to +3346

// Buffer the body as text so routes with `rawBody: true` can see the
// exact bytes (webhook signature verification); parse JSON from the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggestion] The comment says this buffers the body so routes can see the "exact bytes" for webhook signatures, but request.text() decodes the bytes to a UTF-8 string and ctx.rawBody is typed as string. For the common webhook case (UTF-8 JSON) this is fine — users can re-encode with new TextEncoder() — but for non-UTF8 or binary payloads it is not byte-exact. Consider softening the comment to "exact text" or documenting the UTF-8 assumption.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already addressed — the comment and both doc sections now describe ctx.rawBody as the body "as a UTF-8 decoded string" and explicitly note that binary/non-UTF8 bodies are not preserved byte-exactly (with the TextEncoder re-encode path for signature libraries).

- **Native route handlers take a single argument** — `(ctx: RouteContext)` where `ctx.input`, `ctx.request`, and `ctx.requestMeta` are merged with the regular `PluginContext` properties. This is the opposite of standard format's two-argument shape. See [API routes](/plugins/creating-plugins/api-routes/) for the full surface (everything else is identical).

## Raw request bodies (webhook signatures)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggestion] This says webhook providers sign the "exact raw bytes", but ctx.rawBody is a UTF-8 decoded string rather than bytes. In practice most webhook payloads are UTF-8 JSON and signature libraries accept a string, but the wording over-promises for binary or non-UTF8 deliveries. Consider changing to "exact raw text" or adding a note that ctx.rawBody is the UTF-8 decoded body.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already addressed — the comment and both doc sections now describe ctx.rawBody as the body "as a UTF-8 decoded string" and explicitly note that binary/non-UTF8 bodies are not preserved byte-exactly (with the TextEncoder re-encode path for signature libraries).

},
},
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggestion] Same wording issue as line 155: "exactly as received" implies the original byte stream, while ctx.rawBody is a decoded string. A small doc tweak would set the right expectation.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already addressed — the comment and both doc sections now describe ctx.rawBody as the body "as a UTF-8 decoded string" and explicitly note that binary/non-UTF8 bodies are not preserved byte-exactly (with the TextEncoder re-encode path for signature libraries).

@swissky

swissky commented Jul 12, 2026

Copy link
Copy Markdown
Member Author

Both points addressed in 4d62748:

  1. Integration test: added tests/integration/runtime/plugin-raw-body-route.test.ts following the plugin-media-route.test.ts pattern — a real EmDashRuntime with a trusted plugin, invoked through handlePluginApiRoute. It verifies the raw string survives verbatim (whitespace/key order), ctx.input is parsed from the same buffer, non-JSON payloads arrive with input undefined, empty bodies stay empty, and routes without the flag never see rawBody.
  2. Wording: all "exact raw bytes" claims (JSDoc, runtime comment, docs, test comment) now say what's true — ctx.rawBody is the UTF-8 decoded body string, which is what webhook signature verification needs in practice; the docs explicitly note that binary payloads are not preserved byte-exactly and show the TextEncoder path.

@swissky swissky added the bot:review Trigger an emdashbot code review on this PR label Jul 12, 2026
@github-actions github-actions Bot added size/L review/needs-rereview New commits since the last review overlap and removed size/M review/needs-review No maintainer or bot review yet labels Jul 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Overlapping PRs

This PR modifies files that are also changed by other open PRs:

This may cause merge conflicts or duplicated work. A maintainer will coordinate.

@ascorbic ascorbic added bot:review Trigger an emdashbot code review on this PR and removed bot:review Trigger an emdashbot code review on this PR labels Jul 17, 2026

@emdashbot emdashbot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a clean, additive re-review. The feature — opt-in rawBody: true for native plugin routes — is the right answer to the webhook-signature problem and is implemented in the existing route flow without changing behavior for existing routes.

Both gaps from the previous review are now closed:

  1. Integration test added. plugin-raw-body-route.test.ts exercises the full runtime path: EmDashRuntime.handlePluginApiRoute reads request.text() once, parses JSON into ctx.input from the same buffer, passes the raw string only to opted-in routes, and leaves non-JSON payloads available as ctx.rawBody with ctx.input undefined.

  2. "Exact raw bytes" wording corrected. The docs, code comment, and JSDoc now describe ctx.rawBody as a UTF-8 decoded string and explicitly note that binary bodies are not preserved byte-exactly. That matches what request.text() actually delivers.

What I checked: the runtime dispatcher change in packages/core/src/emdash-runtime.ts, the conditional rawBody exposure in packages/core/src/plugins/routes.ts, the RouteContext/PluginRoute type additions, the new unit and integration tests, the changeset, and the doc page. I also confirmed that sandboxed plugins are intentionally untouched (they still go through handleSandboxedRoute with the original request), and that no AGENTS.md conventions are violated — no admin UI strings, no SQL, no new API envelopes, no content-table queries, and the changeset is user-facing.

I did not run the test suite, linter, or builds (no shell access), so I take the author's test/type-check claims as unverified. Statically, the code looks correct and the prior review feedback is fully addressed.

@emdashbot emdashbot Bot removed the bot:review Trigger an emdashbot code review on this PR label Jul 17, 2026
@github-actions github-actions Bot added review/approved Approved; no new commits since and removed review/needs-rereview New commits since the last review labels Jul 17, 2026
@swissky

swissky commented Jul 19, 2026

Copy link
Copy Markdown
Member Author

The Publish Preview failure is transient — pkg.pr.new returned a Cloudflare 1101 error (500) during the publish step, after the build itself succeeded. Not a code issue; a re-run should clear it. (I don't have admin rights to re-trigger.)

@github-actions github-actions Bot added review/needs-rereview New commits since the last review and removed review/approved Approved; no new commits since labels Jul 19, 2026
@ascorbic ascorbic added the bot:review Trigger an emdashbot code review on this PR label Jul 20, 2026
@emdashbot emdashbot Bot removed the bot:review Trigger an emdashbot code review on this PR label Jul 20, 2026
@ascorbic ascorbic added the bot:review Trigger an emdashbot code review on this PR label Jul 20, 2026
@emdashbot emdashbot Bot removed the bot:review Trigger an emdashbot code review on this PR label Jul 20, 2026
@github-actions github-actions Bot added stale and removed stale labels Aug 6, 2026
@github-actions github-actions Bot added stale and removed stale labels Aug 20, 2026
@github-actions github-actions Bot added stale and removed stale labels Sep 4, 2026
@swissky
swissky force-pushed the feat/plugin-route-raw-body branch from 4f6dbfe to 227ff77 Compare September 10, 2026 09:55
@swissky

swissky commented Sep 10, 2026

Copy link
Copy Markdown
Member Author

Rebased onto current main (squashed to one commit, feature unchanged). The interesting part of the rebase: #2163 landed meanwhile, so route input parsing is now centralized in parseRouteInput (body methods parse JSON, GET/HEAD/DELETE parse the query string). Rather than reverting to inline body handling in the dispatcher, this adds parseRouteInputWithRaw — body methods read text() once and parse ctx.input from the same buffer, returning both; parseRouteInput is now a thin wrapper over it, so the sandboxed dispatch path and the existing #2146 query-string tests are untouched. ctx.user (#1947) and cacheControl (#1985) compose cleanly alongside rawBody.

Full suite: 6444 passed. @marcusbellamyshaw-cell the conflict is cleared — happy to hear how it behaves against your downstream plugin.

@swissky swissky added the bot:review Trigger an emdashbot code review on this PR label Sep 10, 2026

@emdashbot emdashbot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the right change for the webhook-signature problem: an opt-in rawBody: true flag that surfaces a UTF-8 decoded request body to native plugin routes, without affecting existing routes or sandboxed plugins. I read the dispatcher change in packages/core/src/emdash-runtime.ts, the conditional exposure in packages/core/src/plugins/routes.ts, the RouteContext/PluginRoute type additions, the new unit and integration tests, the changeset, and the doc update.

Statically the implementation looks correct: one request.text() read, JSON parsed from the same buffer, rawBody forwarded only to routes that opt in, and bodyless methods keep rawBody undefined. Tests cover the full runtime dispatcher path, non-JSON payloads, and the opt-out case. The changeset is user-facing and the AGENTS.md conventions (no admin UI strings, no SQL, no new logged-out queries, no API envelope change) are respected.

The only unresolved issue is a misleading claim in the public docs. The doc page still says webhook providers sign the payload “exactly as delivered,” which contradicts the later note that ctx.rawBody is a UTF-8 decoded string and binary bodies are not preserved byte-exactly. The prior review stated this wording was corrected, but the current doc paragraph still contains the contradiction and could lead users to attempt binary signature verification through ctx.rawBody.


## Raw request bodies (webhook signatures)

The dispatcher parses the request body before your handler runs and exposes it as `ctx.input`; the body stream is consumed, so `ctx.request.text()` is unavailable. That's fine for normal routes — but webhook providers (Stripe, GitHub, Svix, …) sign the payload _exactly as delivered_, and an HMAC computed over a re-serialized `ctx.input` will never match (whitespace and key order don't survive a parse/stringify round-trip).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[needs fixing] The paragraph says webhook providers sign the payload “exactly as delivered,” but the same section later states that ctx.rawBody is a UTF-8 decoded string and that binary bodies are not preserved byte-exactly. Those two claims are contradictory: “exactly as delivered” implies byte fidelity, which request.text() does not provide. A reader might rely on this and attempt binary HMAC verification through ctx.rawBody.

Suggested change
The dispatcher parses the request body before your handler runs and exposes it as `ctx.input`; the body stream is consumed, so `ctx.request.text()` is unavailable. That's fine for normal routes — but webhook providers (Stripe, GitHub, Svix, …) sign the payload _exactly as delivered_, and an HMAC computed over a re-serialized `ctx.input` will never match (whitespace and key order don't survive a parse/stringify round-trip).
The dispatcher parses the request body before your handler runs and exposes it as `ctx.input`; the body stream is consumed, so `ctx.request.text()` is unavailable. That's fine for normal routes — but webhook providers (Stripe, GitHub, Svix, …) sign the payload they send as UTF-8 text, and an HMAC computed over a re-serialized `ctx.input` will never match (whitespace and key order don't survive a parse/stringify round-trip).

Comment thread packages/core/src/plugins/routes.ts Outdated
/**
* Like {@link parseRouteInput}, but for body methods also returns the body
* text the input was parsed from, so routes with `rawBody: true` can see the
* payload as delivered (webhook signature verification). One `text()` read,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggestion] The JSDoc says routes can see the “payload as delivered,” which is vaguer than the RouteContext JSDoc that explicitly calls it a UTF-8 decoded string and notes the binary-body caveat. Aligning the wording here makes the implementation comment consistent with the public type docs and avoids future maintainers assuming byte-exact preservation.

Suggested change
* payload as delivered (webhook signature verification). One `text()` read,
* UTF-8 decoded payload (e.g. for webhook signature verification). One `text()` read,

@emdashbot emdashbot Bot removed the bot:review Trigger an emdashbot code review on this PR label Sep 10, 2026
@swissky swissky added the bot:review Trigger an emdashbot code review on this PR label Sep 10, 2026

@emdashbot emdashbot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the right change for the webhook-signature problem: an opt-in rawBody: true flag that surfaces the UTF-8 decoded request body to native plugin routes without affecting existing routes. The approach is additive, scoped to native/trusted routes only, and leaves sandboxed plugins unchanged as documented.

I re-read the dispatcher change in packages/core/src/emdash-runtime.ts, the conditional exposure in packages/core/src/plugins/routes.ts, the RouteContext/PluginRoute type additions, the new unit and integration tests, the changeset, and the docs update.

Implementation checks out: one request.text() read per body-method request on native routes, JSON parsed from the same buffer, rawBody forwarded only to routes that set rawBody: true, and bodyless methods keep rawBody undefined. parseRouteInput is preserved as a thin wrapper, so existing sandboxed-route and helper callers see unchanged behavior. Tests cover the full dispatcher path, byte-exact text forwarding, non-JSON payloads, and the opt-out case. No new queries, no SQL, no API envelope change, no admin strings, and no logged-out hot-path cost.

The prior review raised one unresolved documentation concern: the docs said webhook providers signed the payload “exactly as delivered,” which conflicted with the note that ctx.rawBody is UTF-8 decoded and binary bodies are not byte-exact. The checked-out docs now read “webhook providers … sign the payload they send as UTF-8 text” and explicitly state “binary bodies are not preserved byte-exactly,” so that contradiction is resolved.

No blockers remain.

@emdashbot emdashbot Bot removed the bot:review Trigger an emdashbot code review on this PR label Sep 10, 2026
@github-actions github-actions Bot added review/approved Approved; no new commits since and removed review/needs-rereview New commits since the last review labels Sep 10, 2026
Adds a rawBody route option that preserves the delivered body as a
UTF-8 string on ctx.rawBody so webhook handlers can verify payload
signatures; ctx.input keeps working from the same buffer.
@swissky
swissky force-pushed the feat/plugin-route-raw-body branch from 22b725c to 4b62ec5 Compare September 11, 2026 05:31
@swissky

swissky commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

Rebased onto current main to clear the conflict — the native-plugin tutorial was restructured upstream, so the raw-body docs section now lives under "Native route handlers" as a subsection. No code changes.

@github-actions github-actions Bot added review/needs-rereview New commits since the last review and removed review/approved Approved; no new commits since labels Sep 11, 2026
@ascorbic ascorbic mentioned this pull request Sep 17, 2026
11 of 19 tasks
@github-actions github-actions Bot mentioned this pull request Sep 18, 2026
11 of 19 tasks
@swissky

swissky commented Sep 24, 2026

Copy link
Copy Markdown
Member Author

Superseded by #3190, which covers the webhook-signature use case with declared request body modes (request.body: "text" / "bytes") instead of a rawBody flag. Closing.

@swissky swissky closed this Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants