Members and roles
A workspace can have more people than the administrator who installed Orbit. Each person has a role in each workspace they belong to, and Orbit checks it on every request.
Roles
| Role | Can |
|---|---|
| Owner | Everything in the workspace, including its members and other owners |
| Admin | Everything except managing owners: creating and deleting projects, environments and databases, domains, integrations, notification channels, backup storages, restores, credentials and members |
| Developer | Deploy, roll back, change build settings, variables and resources, run jobs, back up, browse a database's data, open a terminal in an application's instances and read repositories from the connected Git providers |
| Viewer | See everything except secret values, credentials and a database's data |
- What stays with admins and owners: restoring a backup, deleting anything, revealing or rotating a database's credentials, opening a database shell, upgrading or migrating a database, failing over and importing data.
- Orbit's administrator is the person who installed Orbit. Servers, Orbit updates and new workspaces stay with them, and they own every workspace. This is separate from the workspace roles, and Orbit has one administrator for now.
- In the console, what your role cannot do is disabled and says which role it needs. The workspace switcher shows your role.
Inviting someone
- In Settings → Members, type the email and pick the role. Admins invite admins, developers and viewers; only owners invite owners.
- When email is set up, Orbit emails the link to that person. Otherwise, or if the email server refuses it, send the link the way you usually talk to them. Either way the link is shown once, works once, for seven days, and Orbit keeps only a hash of it.
- The person opens the link, creates an account with a name and a password of at least 12 characters, and lands in the workspace. Someone who already has an account in this Orbit signs in with it instead and gets the new workspace beside the ones they had. With GitHub or Google sign-in set up, the person can also join with a provider that has verified the invited email.
- Pending invitations are listed below the members and can be revoked. Inviting the same address again replaces the earlier link.
- Failed attempts at accepting are rate limited like signing in.
Changing roles and removing
- Roles change from the member's row. Admins change developers and viewers; owners change anyone.
- The last owner keeps the role and cannot leave, so a workspace always has someone who can manage it.
- Removing someone signs them out everywhere at once, and their open console stops receiving updates. Their account stays, so they can be invited back.
- Leaving: anyone can leave a workspace from their own row and stays signed in for the other workspaces they belong to.
What each person sees
- Lists, the activity and the live updates only carry the workspaces a person belongs to. A link to a project in another workspace answers as if it did not exist.
- Servers are shared, so everyone sees them, but only the administrator changes them.
- Scripts and CI use API tokens, which act with a role of their own instead of a person's account.
- The API checks the role on every operation. The contract names the role each operation needs in
x-orbit-role, and a role that is too low gets403 roleRequiredwith the role it needs.