Skip to content
Kitbay
Submit

gateway-workers

Apache-2.0Updated on Nov 10, 20263,337GitHub stars

This Cloudflare skill covers Workers that Cloudflare Gateway calls through the Forward action in an HTTP policy, part of Cloudflare One.

What the skill teaches

This Cloudflare skill covers Workers that Cloudflare Gateway calls through the Forward action in an HTTP policy, part of Cloudflare One. It tells the agent to start from the Forward guide and a Worker template, export a GatewayMiddleware entrypoint that handles the request, read identity and device posture from the Gateway context, and continue the original request at most once or return its own response. It also explains what Gateway inspects, known limits such as WebSockets bypassing the Worker, and how to test through a scoped Forward policy rather than by calling the Worker directly.

Capabilities

  • Write a GatewayMiddleware Worker for the Gateway Forward action
  • Read identity and device posture from Gateway context
  • Return synthetic responses or pass requests on to the origin
  • Test a Worker through a scoped Gateway Forward policy