Skip to content

Permissions and roles

UbiOps features an extensive permission system that allows for fine-grained access control to UbiOps features and customer data.

The UbiOps permission system is based on permissions and roles. A permission allows the user to perform a specific action. For example, the deployments.list permission allows a user to list the deployments in a project.

Roles are collections of permissions, that can be assigned to users. A role can either apply to an entire project, allowing the user to perform the permissions included in the role anywhere in the project, or only to a specific object, such as a deployment.

There are many default roles in UbiOps that can be assigned to users immediately, but you could also create custom roles. This gives you control over the exact permissions of each user.

Default roles

There is a set of default roles which the users can use directly. These roles are mostly centered around our core concepts Deployments and Pipelines. These default roles have three levels: Admin, Editor and Viewer.

Overall, the Viewer level is most restrictive, granting the user only rights to .list and .get objects. For example, the role of deployment-viewer assigned on project level means that a user can see all deployments in that project, but does not have permission to alter them.

The Editor level grants permissions to .list, .get, .create and .update objects. This allows users to not only see objects, but also create and update them.

The Admin level is the most permissive level and gives the user .list, .get, .create, .update and .delete permissions.

Permissions Admin Editor Viewer
.list permissions ✔️ ✔️ ✔️
.get permissions ✔️ ✔️ ✔️
.create permissions ✔️ ✔️
.update permissions ✔️ ✔️
.delete permissions ✔️

The Viewer, Editor and Admin-levels are defined for the following objects in UbiOps:

  • Deployments

    • Environment variables on deployment level
    • Audit events on deployment level
    • Metrics on deployment level
    • Deployment versions - deployment files, requests and environment variables on deployment version level
  • Pipelines

    • Pipeline objects and attachments
    • Requests
    • Audit events on pipeline level
    • Metrics on pipeline level
  • Service users

  • Blobs

  • Projects

    • Environment variables on project level
    • Logs
    • Metrics on project level
    • Audit events on project level
    • Roles and role assignments

For an overview of what permissions are defined under a role, click on the role in the Roles tab to see role details.

Custom roles

You can create custom roles by pressing the New role button in on the roles page. This way you can create roles that suit your needs. A custom role can be deleted, however, the role will then also be deleted from every user that it is assigned to. This means that the users will lose the permissions that were linked to the role.

Assigning roles

To be able to assign roles to a user, one must have the permissions to do so. The permissions to assign roles to other users may be assigned to non-admin users, but not to service users. The permissions to assign roles to users are part of the default Project-Admin role, but may also be part of a custom role. Assigning this custom role to a user, grants the user permissions to assign roles to other users.

Lastly, both custom and default roles may be un-assigned from users, which makes the user lose the permissions associated with the role.