Each member has one role per workspace: admin, editor or viewer.
That role reaches the workspace and every computer and database in it.
The same user can hold different roles in different workspaces. A
principal that signs in with a private key is a member too, with editor or
viewer. It is never an admin and cannot create workspaces.
Someone can instead hold a role on one or more projects, with no workspace
role. A project editor or viewer reaches only the computers and databases in
that project.
For the procedures, see Add and manage workspace members, Give access to part of a workspace, Give a script or agent access and Create or select a workspace.
Workspace roles
| Action | Admin | Editor | Viewer |
|---|---|---|---|
| View the workspace and list its members | Yes | Yes | Yes |
| List and inspect computers, databases, computer checkpoints and operations | Yes | Yes | Yes |
| Read computer logs | Yes | Yes | Yes |
| List secrets and variables, and read variable values (never secret values) | Yes | Yes | Yes |
| Create, replace or delete secrets and variables | Yes | Yes | No |
| Create computers and databases | Yes | Yes | No |
| Change settings, branch, sleep or wake computers and databases | Yes | Yes | No |
| Run commands on computers | Yes | Yes | No |
| Retrieve database connection details, including passwords | Yes | Yes | No |
| Create, restore or delete computer checkpoints | Yes | Yes | No |
| Delete computers and databases | Yes | Yes | No |
| Reference variables in a computer's env | Yes | Yes | Yes |
| Reference secrets in a computer's env | Yes | Yes | No |
| Open an interactive session whose env references secrets | Yes | Yes | No |
| Open an interactive session whose env references only variables | Yes | Yes | Yes |
| Create, rename or delete projects, and grant access on them | Yes | No | No |
| Rename or delete the workspace | Yes | No | No |
| Add members, change roles or remove members | Yes | No | No |
Permissions do not bypass resource constraints such as deletion protection or checkpoints in use by another computer. See Computer lifecycle states and Sleep, wake and delete a database.
Project roles
A project role covers the computers and databases in that project, and nothing else in the workspace.
| Action, on the project's resources | Project editor | Project viewer |
|---|---|---|
| List and inspect computers and databases, and a computer's checkpoints and logs | Yes | Yes |
| Create computers and databases in the project | Yes | No |
| Change settings, branch, sleep, wake or delete them | Yes | No |
| Run commands and retrieve database connection details | Yes | No |
| Create, restore or delete computer checkpoints | Yes | No |
| Move a resource into another project they edit | Yes | No |
A project role alone never reaches the rest of the workspace:
- Workspace secrets and variables stay out of reach, so a computer's env can use only literal values.
- Moving a resource out of every project, or creating one in no project, needs
a workspace
editorrole. - Listing members needs a workspace role. Changing anyone's access and
managing projects need a workspace
admin.
A request that needs a workspace role answers 403 forbidden and names the
projects the caller can use. A resource outside those projects answers
404 not_found, the same as one that does not exist.
Creating a workspace
Any signed-in user can create a workspace and becomes its admin. Creation does not require an admin role in another workspace. An editor or viewer in one workspace can create and administer a separate workspace.
Choosing a workspace in the CLI changes the command's context. It does not grant membership or change a role.
Membership constraints
- The person you add must already exist in Nevia. Signing in registers them.
Use the email or principal ID shown by their
nevia whoami. - Adding someone who is already a member fails. Change their existing role instead.
- The API refuses to demote or remove the last admin. Make another member an admin first.
- Removing someone takes all their access to the workspace: the workspace role and every project grant in it. It does not remove their account or their other workspaces.
- Giving a project-scoped person a workspace role replaces their project grants. Narrowing a member to projects replaces their workspace role.
- A workspace must have no live computers or databases before an admin can delete it.
A session needs edit on the computer as well. Secret references anywhere in the
merged env, stored or from -e, require the workspace editor role, and
variable-only references need any workspace role.
For secrets and variables, see Give computers secrets and variables.
For command syntax, see the generated workspace CLI reference and project CLI reference.