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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-examples-signing-requests-sign-workflow-guide.md | A 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-.text | A 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.text | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
