Updated on 2024-03-15 GMT+08:00

Roles

You can log in to the engine console and create, edit, delete, and view roles of a Nacos engine based on service requirements. Permission control by namespace or finer granularity is supported.

If the Nacos engine is upgraded from an earlier version to 2.1.0.1, the system has the built-in role ROLE_ADMIN by default. The role cannot be deleted.

Creating a Role

  1. Log in to CSE.
  2. In the left navigation pane, choose Registry/Configuration Center.
  3. Click the target Nacos engine.
  4. Choose Permission Control.
  5. On the Roles tab page, click Create Role.
  6. Enter a role name.

    The role name cannot be changed once the role is created.

  7. Set Associated user. Select the user created in Creating an Account from the drop-down list.
  8. Add permission configurations.

    Click Add Permission Configuration and select a namespace and action (Read only, Write only, or Read/write). You can add multiple permission configurations at a time or click Delete in the Operation column of a permission configuration to delete it.

    The role also has the permissions configured here.

  9. Click Create.

Editing a Role

  1. Log in to CSE.
  2. In the left navigation pane, choose Registry/Configuration Center.
  3. Click the target Nacos engine with security authentication enabled.
  4. Choose Permission Control.
  5. On the Roles tab page, click Edit in the Operation column of the role to be edited.
  6. Modify Namespace and Action based on service requirements.
  7. Click Edit.

Deleting a Role

  1. Log in to CSE.
  2. In the left navigation pane, choose Registry/Configuration Center.
  3. Click the target Nacos engine.
  4. Choose Permission Control.
  5. On the Roles tab, click Delete in the Operation column of the role to be deleted. In the displayed dialog box, enter DELETE and click OK.

    Deleted roles cannot be restored. Exercise caution when performing this operation.