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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-runtime-apis-rpc-visibility-and-security-model-workflow-guide.md | Documentation 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.text | A 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.text | A 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
- 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/runtime-apis/rpc/visibility
