技能 gateway-workers
📦

gateway-workers

內容修訂 r1 安全 ⚙️ 外部命令🌐 網路存取📁 檔案系統存取

Build and Review Cloudflare Gateway Workers

Gateway Forward integrations require entrypoints, context handling, and continuation rules that differ from ordinary Workers. This skill guides implementation and validation using current Cloudflare references.

支援: Claude Codex Code(CC)
Maintain this Skill? Claim it 🥉 77 銅級

使用我的智慧代理安裝

將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。

智能體請求
Review the Skillstore skill "gateway-workers" from https://skillstore.io/skills/cloudflare-gateway-workers.md and its manifest at https://skillstore.io/api/skills/cloudflare-gateway-workers/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.

你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。

測試它

正在使用「gateway-workers」。 Review a Worker that only implements a default fetch handler.

預期結果:

  • The default handler does not implement the Gateway Forward contract.
  • Export GatewayMiddleware extending WorkerEntrypoint and implement its handle method.
  • Validate the named RPC entrypoint and a permitted request through a scoped Forward policy.

正在使用「gateway-workers」。 Review a Worker that changes the destination and calls next() twice.

預期結果:

  • Call next() at most once; it always targets the original destination.
  • Destination URL and host changes do not redirect continuation.
  • A separate fetch() subrequest does not inherit the user Gateway policies or egress configuration.

正在使用「gateway-workers」。 Review a Worker that trusts identity headers and buffers all response bodies.

預期結果:

  • Use Gateway-provided identity instead of client-supplied identity headers.
  • Handle rejected identity lookups separately from anonymous identity values.
  • Stream response bodies and omit bodies for HEAD requests and statuses 204, 205, and 304.

安全審計

安全
v1 • 2026/10/25 開啟版本化報告

All 20 static findings are false positives involving Markdown formatting, documentation links, API terminology, or related-skill references. The skill explains independent subrequest risks and recommends trusted identity, scoped validation, and streaming. No evidence found of prompt injection, credential extraction, malicious execution, or unauthorized data transfer.

1
已掃描檔案
39
分析行數
0
複核項目
0
已忽略的誤報
最近一次完成的靜態與語意稽核未偵測到已確認的安全發現。這並不能證明該 Skill 沒有副作用。
審計單位: codex
分享與引用此報告

分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。

開啟版本化報告
安全評估

複製報告連結

https://skillstore.io/skills/cloudflare-gateway-workers/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown 徽章

[![Skillstore security assessment](https://skillstore.io/badges/skills/cloudflare-gateway-workers/security.svg)](https://skillstore.io/skills/cloudflare-gateway-workers?utm_source=security_passport_badge)

HTML 徽章

<a href="https://skillstore.io/skills/cloudflare-gateway-workers?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cloudflare-gateway-workers/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

嵌入卡片

<iframe src="https://skillstore.io/embed/skills/cloudflare-gateway-workers.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
學術引用 (APA · BibTeX · CFF)

APA 引用

cloudflare. (2026). gateway-workers security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cloudflare-gateway-workers/audits/1

BibTeX 引用

@techreport{cloudflare-cloudflare-gateway-workers-2026, author = {cloudflare}, title = {gateway-workers security audit report (audit version 1)}, institution = {Skillstore}, year = {2026}, number = {1}, url = {https://skillstore.io/skills/cloudflare-gateway-workers/audits/1}, note = {Author version unspecified} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "gateway-workers security audit report (audit version 1)" version: "unspecified" type: report authors: - name: "cloudflare" date-released: "2026-10-25" url: "https://skillstore.io/skills/cloudflare-gateway-workers/audits/1" identifiers: - type: other value: "skillstore:cloudflare-gateway-workers:audit:1" description: "Skillstore immutable audit report identifier"

Skillstore 評分

評分依據 證據置信度: 中
55
架構
85
可維護性
87
內容
65
社群
83
規範符合度

你可以打造什麼

Implement Gateway middleware

Adapt an existing Worker to the named RPC entrypoint and correct continuation contract.

Review identity-dependent behavior

Check identity trust, posture lookups, missing values, and lookup failures before introducing identity-dependent decisions.

Validate a scoped rollout

Plan Gateway integration checks covering policy matching, supported traffic, response handling, and streaming.

試試這些提示

Understand the entrypoint
Explain how GatewayMiddleware differs from a default fetch handler, using the current Forward guide.
Review continuation
Review my Worker for zero-or-one next() calls, synthetic responses, and independent fetch() subrequests. Explain any policy inheritance implications.
Check identity handling
Review my Gateway identity and posture handling. Distinguish anonymous users, absent posture values, and rejected lookups. Recommend explicit failure behavior.
Plan integration validation
Create a scoped Gateway test plan for this Worker. Cover RPC entrypoints, continuation, inspection order, streaming, response restrictions, and traffic limitations.

最佳實務

  • Consult current Forward documentation and type-check against installed Gateway types before implementation.
  • Use Gateway identity and explicitly handle missing context values and rejected lookups.
  • Test the named RPC entrypoint and a scoped Gateway path, including continuation and streaming behavior.

避免

  • Treating a successful direct fetch-handler request as proof that Gateway integration works.
  • Using next() to redirect, retry, fan out, or continue more than once.
  • Assuming independent fetch() subrequests inherit Gateway policies or egress configuration.

常見問題

Does a default fetch handler implement Gateway Forward?
No. Gateway invokes the named GatewayMiddleware handle method through RPC.
Can next() redirect a request to another destination?
No. It targets the original destination and ignores destination URL or host changes.
Do independent fetch() subrequests inherit Gateway policies?
No. They do not inherit the user Gateway policies or egress configuration.
How should identity lookup failures be handled?
Catch lookup failures separately from anonymous identity values and define explicit behavior when the Worker depends on identity.
Which traffic limitations should I check?
HTTPS requires decryption, WebSockets bypass the Worker, and matching Workers VPC traffic is dropped. Consult current documentation for additional limitations.
Does this skill deploy or test a Worker automatically?
No. It provides implementation and validation guidance and references related skills for project setup and deployment.

開發者詳細資訊

作者

cloudflare

授權

MIT

Skillstore 修訂

r1

版本提示

作者未聲明版本。

引用

0596e7dcb24514e7373fb1c8c2a058e2990a6e83

維護新鮮度

2026/10/25

使用量

0 次下載 · 0 次瀏覽

檔案結構

📄 SKILL.md

cloudflare 的更多技能

查看全部
查看全部