Skip to content

Who can reach your VM

Members of your organization reach its VMs according to their role. An organization key reaches only the projects and actions it names, and a grant or web address link reaches one thing until it expires.

The VM’s URL identifies the VM and grants no access. Each credential below reaches a different set of VMs.

Members sign in to the dashboard with GitHub, or with a work email and password. A new account needs approval before it can use the service, and an API key does not skip that step.

The organization has three roles. An owner or admin holds every action. A member runs the day-to-day work on VMs, snapshots, secrets, profiles, schedules and databases. A member cannot create or delete a project, read the audit log, or list keys. A member can create a key and delete only the keys that member created. A role change can take up to 30 seconds to reach every request.

Credential Use it for Reaches
Dashboard session Managing VMs and settings in a browser The signed-in user’s active organization
Device key The CLI on your laptop, from si login The user’s role and the device key’s own actions, for 30 days
Organization key Automation and CI Its action list and project scope, or the whole organization if it has none
Web address link Sharing one port of one VM That port, until the link expires or is rotated
Grant Sharing the VM’s API with someone who has no account The methods and paths it names, until it expires

Scroll horizontally to see all columns.

Check which organization a credential uses before you create or delete a VM.

Terminal window
si login
si auth whoami

A project is a namespace inside the organization. VMs, snapshots, secrets, profiles, schedules and databases share names only inside their own project. Every organization starts with a project named default, which a request uses when it names no project. See Projects.

An organization key can carry two limits: the projects it may use, and the actions it may take. A key with no permissions gets the member role’s actions across the whole organization.

A project scope narrows names, not VMs. A key that may write in a project can change every VM in that project. Use a separate organization when work needs a different trust boundary, or a key with fewer actions when it needs only part of the API.

Create keys on the API keys page with Create API key. Choose a life of 30, 90 or 365 days, with 90 as the default. The secret appears once, so store it in your application’s secret store, outside source control. A device key or an organization key cannot create another key, and the CLI has no command for it.

A key’s permissions are fixed when it is created. To change them, delete the key and create another. A key past its expiry gets 401 key_expired, so a client can tell a stale key from an unknown one.

Deleting a key stops it within 30 seconds. Deleting a key does not delete files or stop programs that already used it. If a key leaked, replace it in your applications, and rotate the other secrets that the VMs it reached could read.

See API keys for the create form, the permission catalog and revocation.

A grant is a signed link to the VM’s API. It admits only the methods, paths and arguments you name, and the person who opens it needs no account and no organization key. SlashInfra checks each request before it wakes the VM.

Make a read-only grant for a folder for a week:

Terminal window
si svm grant create --method GET --path '/home/user/out/**' --ttl 7d
Grant What it allows
GET on /home/user/out/** Reads and lists files in that folder. It cannot run a command or write a file.
POST on /bin/bash with --arg -c --arg 'make test' Runs that command. The pinned arguments narrow what it can run.
POST on /bin/bash Full control of the VM. It can read files, run programs and control the screen.
The desktop on port 6080 Full control of the VM, the same as /bin/bash.

Scroll horizontally to see all columns.

Share a full-control grant only with someone you would trust with an organization key. A grant for another program gives that program every input the grant allows, so pin --arg to narrow them.

A grant lasts one hour by default. Set --ttl to seconds, or to a number with s, m, h or d. The longest life is 30 days on both plans.

The token sits in the link’s query string, so it can leak through a chat, a screenshot, browser history or a log. Send it in the Authorization or X-Si-Authorization header when the client can, and keep the life short. SlashInfra removes the token before the request reaches the VM.

You cannot revoke a single grant. si svm grant rotate ends every grant of the VM at once, and every grant minted before it answers 401 unauthorized within 30 seconds. Web address links have their own generation and keep working.

Every port starts closed. Open it to let a link reach it, or to let anyone reach it.

Level Who reaches it Credential
closed (default) Members of the organization Session cookie or API key
authenticated Members, and anyone with a link you make Session cookie, API key or the link
public Anyone None

Scroll horizontally to see all columns.

A link names one VM and one port, and it lasts one hour by default. Use --ttl for a longer one, up to 30 days. A link for one port does not authenticate requests to another port. An authenticated browser tab does not make a port public.

Terminal window
si port open 3000 --auth
si port url 3000 --ttl 7d
si port rotate 3000

Rotating the link or closing the port invalidates every link of that port at once. Opening the port again does not bring an old link back. The token is in the query string, so make a shared link short and rotate it when the work is over.

A public port needs no credential, so treat its content as public. Some browser settings block cookies in embedded pages. If an embedded preview does not load, open the link in its own tab.

  • Web addresses: open ports, share links and embed a preview.
  • Secrets: use a key from inside the VM without holding it.
  • Limits: key lifetimes, link lifetimes and port limits.