Cloudflare adds namespace-scoped roles for Workers
Brief
Cloudflare has introduced four roles that restrict Workers access to selected dispatch namespaces. This lets teams grant deployment access to one namespace without granting account-wide Workers access.
Four namespace roles
- Metadata Read-Only covers Workers, settings, and bindings, but not script code or secrets.
- Content Read-Only adds script code and secret names; Editor can create, update, deploy, and delete Workers; Admin also manages the namespace itself.
Scope access to people and tokens
- Roles apply to every current and future Worker in selected namespaces, and only those Workers.
- Configure access for members or User Groups in the dashboard, or create an account-owned API token scoped to specified namespaces.
- All Workers for Platforms customers can use the roles today through the dashboard or API. A staging pipeline token can be restricted to staging so it cannot deploy to production.
Generated by AI from the original article. Check the source for full details.