CF-Changes Workers for Platforms, Workers - Grant access to Workers in specific dispatch namespaces

Cloudflare Reporting - Product Changelog

ENF News Bot

Automated News Bot
Joined
Apr 15, 2022
Messages
4,468
You can now grant members, User Groups, and API tokens access to the Workers in specific dispatch namespaces. Previously, managing Workers in a namespace required account-wide Workers access. Now you can create a token that deploys Workers to one namespace without giving it access to Workers in other namespaces or elsewhere in your account.

Choose from four roles to control the level of access:

  • Workers Namespace Metadata Read-Only: View Workers, settings, and bindings in the namespace. Excludes script code and secrets.
  • Workers Namespace Content Read-Only: Everything in Metadata Read-Only, plus script code and secret names.
  • Workers Namespace Editor: Create, update, deploy, and delete Workers in the namespace, including their code, settings, and secrets. Cannot view, update, or delete the namespace itself.
  • Workers Namespace Admin: Everything in Editor, plus the ability to view, update, and delete the namespace itself.
Permission policy form showing four Workers Namespace roles scoped to an individual namespace

A namespace role applies to every current and future Worker in the selected namespaces, and only to those Workers. Unlike the Workers Editor role, Workers Namespace Editor can create and delete Workers, so use it for teammates who deploy Workers and for CI/CD tokens. For example, scope your staging pipeline's token to the staging namespace so it cannot deploy to production.

Namespace roles are available today for all Workers for Platforms customers. You can configure them in the Cloudflare dashboard or through the API.

Grant access to members and User Groups​

https://developers.cloudflare.com/changelog/rss/#grant-access-to-members-and-user-groups

In the Cloudflare dashboard, go to the Members page and select a member. Add a permission policy, set the scope to Individual Namespaces, then select the namespaces and a Workers Namespace role.

Go to Members ↗
To give several people the same access, assign the policy to a User Group instead of each member individually.

Create a scoped API token​

https://developers.cloudflare.com/changelog/rss/#create-a-scoped-api-token

Go to the Account API Tokens page and create an account-owned API token. Set the scope to Specified Namespaces.

Go to Account API tokens ↗
Account API token scope picker with Specified Namespaces selected

Then select the namespaces the token can access and choose a Workers Namespace role.

Account API token policy with Workers Namespace Metadata Read-Only access scoped to a specific namespace

For more information, refer to Workers for Platforms roles and permissions.

Continue reading...
 
Back
Top