Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Visibility and Security Model

Explains the capability-based security model for Workers RPC, detailing how visibility rules restrict access to class methods and properties versus plain objects and function properties.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Visibility and Security Model

Explains the capability-based security model for Workers RPC, detailing how visibility rules restrict access to class methods and properties versus plain objects and function properties.

When To Use

Use when you need to determine how to expose class properties to a remote Worker via RPC or when debugging why certain object properties are not accessible across the RPC boundary.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-runtime-apis-rpc-visibility-and-security-model-workflow-guide.mdDocumentation explaining the security model and visibility constraints for methods and properties within the Cloudflare Workers RPC system.Questions about documentation explaining the security model and visibility constraints for methods and properties within the Cloudfla...
examples/workers-runtime-apis-rpc-visibility-and-security-model-cloudflare-worker.textA text example demonstrating which class properties and methods are accessible or restricted when using the Cloudflare Workers RPC model.Exact payloads, commands, or snippets shown in A text example demonstrating which class properties and methods are accessible or restricted when using the Cloudflar...
examples/workers-runtime-apis-rpc-visibility-and-security-model-cloudflare-worker-2.textA text example demonstrating how property visibility and object exposure work within the Cloudflare Workers RPC model.Exact payloads, commands, or snippets shown in A text example demonstrating how property visibility and object exposure work within the Cloudflare Workers RPC model.

What This Skill Covers

  • The Workers RPC system is intended to allow safe communications between Workers that do not trust each other. The system does not allow either side of an RPC...
  • Main sections: Security Model, Visibility of Methods and Properties, Private properties, Class instance properties, "Own" properties of functions.

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/runtime-apis/rpc/visibility