Access control
Two things decide what you can do: your role in the organization, and your access to each Computer. Shares give access to people who don't own a Computer, and grants adjust a role one command at a time.
On this page
Roles
#Every member of an organization has one role.
| Role | Command value | What it covers |
|---|---|---|
| Member | user | Uses the organization's pools and has Owner access to the Computers they own. |
| Admin | admin | Manages the organization, its pools and members, and has Owner access to all its Computers. |
| Billing owner | billing_owner | Everything an admin can do, plus billing ownership and closing the organization. |
Teams have their own admins. A team admin has Owner access to the team's Computers. Other team members get the team's Member access: Site and SSH (root) by default, or Site only (web) or No access (none). A team admin or organization admin sets it in People.
What each role can do
#| Action | Member | Admin | Billing owner |
|---|---|---|---|
| Create a Computer | In pools they can use | Yes | Yes |
| Create, resize or delete a pool | — | Yes | Yes |
| Start, stop, pause or resume a pool | With a pool share that names the command | Yes | Yes |
| Take, restore or share a pool snapshot | — | Yes | Yes |
| Manage members, teams and organization settings | — | Yes | Yes |
| Manage integrations and connect domains | Connect their own GitHub account | Yes | Yes |
| Copy the Member join link | Yes | Yes | Yes |
| Copy the Admin join link | — | If no commands are withheld from them | Yes |
| Read the audit log | Their own actions and their Computers | Everything | Everything |
| Billing, close the organization, hand over billing ownership | — | — | Yes |
A grant or withhold changes one command for one member. Some commands also need a particular kind of credential: publishing a public port, for example, needs a sign-in or a key without a command list.
Grants and withholds
#A grant lets one member run a command their role doesn't allow, across the organization. A withhold stops them running it, whatever their role and shares say, along with commands that depend on it: withholding delete also blocks reset. Admins and the billing owner set both when inviting a member or changing their role.
heaven organization member role sam@example.com --grant "pool stop" --withhold delete --organization acme
heaven organization member view --organization acmeSetting a member's commands replaces both lists, so include the ones to keep. An admin can't grant a command withheld from themselves. An API key can narrow its holder's access further.
Reference: List members, Change a member's permissions.
Access levels
#Access to a Computer comes in four levels. Each includes the ones before it.
| Level | Command value | What it allows |
|---|---|---|
| Site only | web | Open the Computer's website. |
| Site and SSH | root | Also SSH, the terminal, files, the desktop and development ports. This is root inside the Computer, so it can read every file and credential on it. |
| Admin | admin | Also power, rename, resize, reset, delete, snapshots and, for organization members, public ports. |
| Owner | owner | Also sharing, transfers, website settings, support access and exporting the disk. |
If you get access several ways, such as a direct share and a team's share, you get the highest level and every command any of them grants.
Computer shares
#The Computer's owner can share it with a person, a team or the whole organization. A share gives an access level, Site only by default, and can add single commands such as restart. Team and organization shares follow membership. Someone invited by email gets the share when they sign in with that address.
In the Computer's Sharing tab, choose Access and add people. The CLI can also give Admin access and add commands.
heaven share add my-site --user sam@example.com --role root
heaven access my-siteSharing again with a higher level raises it. To remove a share, choose Stop sharing in the person's menu. People keep any access they get another way. To show a website to someone without access, use a share link.
Reference: Share a Computer, Read Computer access, Stop sharing a Computer.
Pool shares
#A member can use every pool in the organization until someone shares a pool with them. From then on, they create, copy and move Computers only in the pools shared with them. A pool share can also let them start, stop, pause or resume the pool.
A pool can be shared outside the organization too. Recipients create Computers in it that the organization owns, and can start, stop, restart, pause, resume and delete the ones they made, with Site and SSH access unless the share sets another level. Removing the share ends that access, and the Computers stay with the organization.
heaven pool share add web --user sam@example.com --command "pool stop" --organization acmeAdmins, the billing owner and members granted the command can share a pool.
Reference: Share a pool, Stop sharing a pool.
External sharing
#The Sharing Computers setting controls who can share outside the organization: make a website public, create share links, publish public ports, grant support access or share with outsiders.
| Setting | Command value | Who can share outside |
|---|---|---|
| All members (default) | all-members | Anyone with permission for the action |
| Admins only | admins-only | Admins, the billing owner and members granted the command |
Under Admins only, owners can still share with members and teams inside the organization.
The Inviting outsiders setting controls who can invite someone outside the organization to a team: team admins and admins (team-admins, the default), or admins only (admins-only). See Settings.