Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Sign requests

Implements a Cloudflare Worker that generates signed URLs using HMAC and SHA-256 and verifies incoming requests to ensure authenticity.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Sign requests

Implements a Cloudflare Worker that generates signed URLs using HMAC and SHA-256 and verifies incoming requests to ensure authenticity.

When To Use

Use when you need to implement a mechanism to generate secure, time-stamped URLs and verify their signatures within a Cloudflare Worker environment.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-examples-signing-requests-sign-workflow-guide.mdA guide and implementation example for verifying signed requests using HMAC and SHA-256 algorithms within Cloudflare Workers.Questions about a guide and implementation example for verifying signed requests using HMAC and SHA-256 algorithms within Cloudflare...
examples/workers-examples-signing-requests-sign-cloudflare-workers-sign-requests-.textA JavaScript example demonstrating how to sign HTTP requests using HMAC within a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to sign HTTP requests using HMAC within a Cloudflare Worker.
examples/workers-examples-signing-requests-sign-cloudflare-workers-hmac-request-s.textA JavaScript implementation demonstrating how to sign HTTP requests using HMAC and a secret key within a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to sign HTTP requests using HMAC and a secret key within a Cloudflare W...
examples/workers-examples-signing-requests-sign-cloudflare-workers-hmac-request-s-2.textA TypeScript code example demonstrating how to use HMAC with a secret key to sign requests within a Cloudflare Worker environment.Exact payloads, commands, or snippets shown in A TypeScript code example demonstrating how to use HMAC with a secret key to sign requests within a Cloudflare Worker...
examples/workers-examples-signing-requests-sign-cloudflare-workers-python-sign-re.textA Python implementation using WorkerEntrypoint to sign outgoing requests with HMAC.Exact payloads, commands, or snippets shown in A Python implementation using WorkerEntrypoint to sign outgoing requests with HMAC.

What This Skill Covers

  • Verify a signed request using the HMAC and SHA-256 algorithms or return a 403.
  • Main sections: Tags, Validate signed requests using the WAF.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/examples/signing-requests