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: VelaUX 1.9

VelaUX RBAC

VelaUX roles decide what each user can see and do in the UI and the API. A role is a set of permissions, and is either platform scope (applies everywhere) or project scope (applies inside one project).

caution

By default vela-core runs as cluster-admin, so anyone who can create an Application can create anything in any cluster KubeVela manages. Turn on authentication.enabled to apply each Application with its submitter's permissions.

caution

By default VelaUX reaches Kubernetes as its own service account, and VelaUX roles are the only check. Turn on impersonation to have Kubernetes RBAC apply to each user too.

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 add roles for the platform or for a project to fit your teams.

Platform scope roles​

Go to Admin Dashboard > Platform Roles to see all platform scope roles.

role list

Click New Role, fill in the role's name, alias and permissions, and click Create.

Project scope roles​

Open the project's details page, from the project list if you can list projects, or from one of its applications if not.

role list

Switch to the role management page to add or change the project's roles.

role list

Bind roles to users​

  • Platform scope roles are bound to users on the user management page. A user can have several.
  • Project scope roles are bound on the project's member page, when you add a user to the project or change an existing member's roles.

Working with Kubernetes RBAC​

To have Kubernetes check each user as well, turn on impersonation in the velaux addon:

vela addon enable velaux enableImpersonation=true

VelaUX then calls Kubernetes as the logged-in user, in the group of the project the request is for (kubevela:project:<project>), so you can restrict what each user and project can do in the cluster with Kubernetes RBAC.