Skip to content

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.

Roles

#

Every member of an organization has one role.

RoleCommand valueWhat it covers
MemberuserUses the organization's pools and has Owner access to the Computers they own.
AdminadminManages the organization, its pools and members, and has Owner access to all its Computers.
Billing ownerbilling_ownerEverything 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

#
ActionMemberAdminBilling owner
Create a ComputerIn pools they can useYesYes
Create, resize or delete a pool—YesYes
Start, stop, pause or resume a poolWith a pool share that names the commandYesYes
Take, restore or share a pool snapshot—YesYes
Manage members, teams and organization settings—YesYes
Manage integrations and connect domainsConnect their own GitHub accountYesYes
Copy the Member join linkYesYesYes
Copy the Admin join link—If no commands are withheld from themYes
Read the audit logTheir own actions and their ComputersEverythingEverything
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 acme

Setting 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.

LevelCommand valueWhat it allows
Site onlywebOpen the Computer's website.
Site and SSHrootAlso 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.
AdminadminAlso power, rename, resize, reset, delete, snapshots and, for organization members, public ports.
OwnerownerAlso 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-site

Sharing 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 acme

Admins, 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.

SettingCommand valueWho can share outside
All members (default)all-membersAnyone with permission for the action
Admins onlyadmins-onlyAdmins, 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.