A machine-readable index of this documentation for AI agents is available at https://kubevela.io/llms.txt. Markdown versions of documentation pages are available by appending .md to their URLs.
Skip to main content
Version: v1.11

VelaUX RBAC

The RBAC feature enabled restriction of access to VelaUX resources. The UI and API could strict permission verification. We designed platform-scope roles and project-scope roles, Each role can be bound to a set of permission policies, and users can obtain corresponding permissions when they are bound to the role.

Built-in permissions​

A permission allows or denies a set of actions on a set of resources. VelaUX ships these.

Platform scope:

PermissionResourcesAllows
Admin*Everything.
Cluster Managementcluster:*/*Add, change and remove clusters.
Project Managementproject:*Create, change and delete any project.
Project Listproject:*List every project (list only).
Addon Managementaddon:*, addonRegistry:*Enable and disable addons, and manage addon registries.
Target Managementtarget:*, cluster:*/namespace:*Manage delivery targets and their namespaces.
User Managementuser:*Manage users.
Platform Role Managementrole:*, permission:*Manage platform roles and permissions.
Config Managementconfig:*/*Manage platform configs.
Disable CloudShellcloudshellDenies CloudShell.

Project scope, where {projectName} is the project the role belongs to:

PermissionResourcesAllows
Project Viewthe project and its configs, providers, roles, members, permissions, environments, applications and pipelinesRead them (detail and list only).
App Managementproject:{projectName}/application:*/*Manage the project's applications.
Environment Managementproject:{projectName}/environment:*Manage the project's environments.
Role Managementproject:{projectName}/role:*, project:{projectName}/projectUser:*, project:{projectName}/permission:*Manage the project's roles, members and permissions.
Config Managementproject:{projectName}/config:*, project:{projectName}/provider:*Manage the project's configs and cloud providers.
Pipeline Managementproject:{projectName}/pipeline:*/*Manage the project's pipelines.

Built-in roles​

RoleScopePermissions
AdminplatformAdmin.
App DeveloperprojectProject View, App Management, Environment Management, Config Management, Pipeline Management.
Project AdminprojectEverything App Developer has, plus Role Management.
Project ViewerprojectProject View.

Every new project gets its own App Developer, Project Admin and Project Viewer roles, and its owner is a Project Admin.

Custom roles​

You can customize the list of roles for a platform or project based on your business or team needs.

platform scope role​

Go to Platform/Roles page,you can get all platform-scope roles。

role list

Click the New Role button, you can open the drawer page for creating a role, you should input some required info, such as the role's name, alias and permissions. Click the Create button then complete.

project scope role​

First you need to go to the project details page, If users with project list query permission can enter through the project list, If not, you can enter through the application detail page.

role list

Switch to the role management page on the project details page to add or modify role information under the project.

role list

User bound role​

  • Platform-scope roles need to be bound to users on the user management page. One user can be bound to multiple platform-scope roles.

  • Project-scope roles need to be set in the project member management page, and roles need to be bound when users are added to the project, or modify the existing users' roles.

Working with Kubernetes RBAC​

The VelaUX User will be projected into the underlying Kubernetes User when you configured the FeatureGates of the VelaUX apiserver through --feature-gates=EnableImpersonation=true. In this way, the application of VelaUX will use the idenity of the Project and the VelaUX User, which means it is possible for system operators to restrict the user's access through Kubernetes RBAC mechanism behind VelaUX.