Hub Teams

A team lets several Hub accounts share the same servers. The Owner adds people by the email of an existing account — nothing is emailed — and sets each person's permissions one by one from the server's own list. Roles are presets and ceilings, and the server's permissions still apply on top: the Hub can only narrow them.

the server

Its own permission tree in Settings → Hub. It never hears about teams.

narrows
the hub

Role, permissions, app scope and per-app limits — decided per request.

What a team is

  • A personal server belongs to one account. It is listed only for the account that added it, and that account is its Owner with everything allowed as far as the Hub is concerned. This is what every server is until you move it.
  • A team server belongs to the team. Access comes from your membership: your role, the permissions the Owner ticked for you, and the servers and apps you were given. Exactly one person is the team's Owner, and every server in the team belongs to that account (Server.userId). The account that added a server keeps no special rights once it is in a team.
  • Adding a person is immediate. The Owner types the email of an existing Hub account; the membership is created there and then. Nothing is emailed, there is no link and no acceptance step — the team appears in that person's switcher at once. An address with no account is refused.
  • Nothing moves into a team by itself. Creating a team moves no server. A server joins a team only when someone transfers it there, one server at a time.
  • The server-side agent never learns about teams. There is no new agent event, no protocol change and nothing to install or upgrade. The agent knows one Hub connection and its own permission tree, and it re-checks every command locally. Teams exist only inside the Hub.

Staff roles in the Hub's /management area are a different thing: they are Hub-wide and do not grant access to anyone's team or servers.

When the Owner adds you

You are a member the moment the Owner adds your email — there is nothing to accept. The Hub puts a notice at the top of the page, and it stays until you act on it:

Notice

<Owner> added you to <team> as <role>

Open team switches to it, Leave team removes your membership there and then, and Dismiss only hides the notice — you stay a member.

  • You can leave at any time yourself. Open the team and use Settings → Leave team; the same action as the notice's Leave team. Your access to its servers goes at once.
  • Only the Owner can add you again. There is no invitation to accept or re-send: if you leave, ask the Owner to add your email a second time.
  • The Owner cannot leave. A team always keeps exactly one Owner, so the Hub refuses with OWNER_CANNOT_BE_REMOVED. Transfer ownership first, then leave as an Admin.
Screenshot
The notice after being added, with Open team, Leave team and Dismiss.

The permission ceiling

One rule decides every action: the team role, the permissions the Owner ticked for that person, their server and app scope, and the server's own Hub permissions (Settings → Hub on the server) must all allow it. Anything the server has switched off stays off, whatever a team says.

LayerWhere it is setCan it widen the server?
Team roleMembers list, by the Owner.No — it is a preset and a ceiling for the permissions below.
Permissions and scopeThe member's Access area: the permission boxes, servers, apps, per-app action grants.No — they can only take away.
Server permissionsOn the server, in its own dashboard: Settings → Hub.It is the ceiling. The Hub cannot change it.
narrowing only

A team Owner cannot give anyone more than the server allows, and cannot read the server's secrets. The agent re-checks each command against its own tree and remains the authority. A Hub that asks for a permission the server has switched off gets nothing done.

Roles, presets and permissions

Four roles, lowest to highest: Viewer, Member, Admin, Owner. A role is a preset — it fills the permission boxes when you choose it — and a ceiling: you may narrow it person by person, but never add a permission above the role. Only the Owner holds everything implicitly. Admins, Members and Viewers hold exactly the permissions ticked for them, so an Admin's list is explicit too.

RolePreset (what a new person starts with)Widest the role can be
ViewerNone.The three read permissions only: deploy logs, nginx configuration view, nginx logs view.
MemberDeploy, roll back, read deployment logs, start, stop and restart processes.Every permission whose minimum is Member: apps (create, edit, domain link, deploy key), domains create/edit/toggle, nginx start/stop/restart/reload/test, configs and logs view, SSL issue/renew. Never environment variables, never a delete, never config editing.
AdminEvery admin-level permission.The same admin-level list — you may untick some of it, but there is nothing above it to add. Still no people management, no server removal and no secret rotation.
OwnerEverything.Everything, implicitly. The Owner has no permission list and cannot be narrowed.

The rule behind the ceiling: a permission belongs to the lowest role whose command needs it. A Viewer can hold only the three read permissions; a Member can hold anything whose minimum is Member (but never environment variables, config editing or a delete); an Admin can hold every admin-level permission. The Owner needs no list.

GroupPermissionsWhat they allow
Deploymentsdeploy.managedeploy.envdeploy.rundeploy.rollbackdeploy.logsEdit an app and its deploy key, view/change environment variables, deploy, roll back, read logs.
Hubdeploy.createCreate an app through the Hub (connect a repository and deploy it). The agent has no equivalent.
Nginxnginx.startnginx.stopnginx.restartnginx.reloadnginx.testnginx.config.viewnginx.config.editnginx.logs.viewControl nginx, read or edit its configuration files, read its logs.
Domainsdomains.createdomains.editdomains.toggledomains.deleteCreate, edit, enable/disable and delete domains.
SSLssl.issuessl.renewssl.renewAllssl.deleteIssue, renew and delete certificates.
Processesprocess.startprocess.stopprocess.restartStart, stop and restart a process by name.

This is the same list the server shows in its own Settings → Hub, plus deploy.create for "may create an app", which exists only in the Hub. Ticking a permission here never switches anything on at the server; it only decides which of the server's allowed actions this person may ask the Hub for.

CapabilityViewerMemberAdminOwner
See servers, apps, status✓✓✓✓
Deploy, roll back, start/stop—if granted✓✓
Read deployment logsif grantedif granted✓✓
Create / edit apps—if granted✓✓
Environment variables, deploy tokens——✓✓
Delete an app, a domain, a certificate——✓✓
Add and remove people, set their permissions———✓
Remove a server, rotate its secret———✓

Only the Owner adds and removes people, sets their permissions, transfers ownership and deletes the team. An Admin may read the audit log and run everything the server allows, but cannot change who is in the team.

A Viewer can be narrower than the table suggests: seeing the server is always allowed, but reading its configuration or logs needs the permission ticked. The next two tables are the exact rules the API applies.

What each command needs

Every command the Hub can send, with the minimum team role, the permission the person must hold, the scope, and the permission the server must have switched on. The Owner holds every permission implicitly; everyone else needs the grant from their own list. "Agent permission" is the server-side check that comes after this one.

CommandActionMin rolePermission requiredScopeAgent permission
hub:deployHook*Ownerdeploy.ciServer-widedeploy.ci
hub:getConfigs*Viewernginx.config.viewServer-widenginx.config.view
hub:getLogs*Viewernginx.logs.viewServer-widenginx.logs.view
hub:manageDeployaddKeyToGithubAdmindeploy.manageOne appdeploy.manage
createMemberdeploy.createServer-widedeploy.manage
deleteAdmindeploy.manageOne appdeploy.manage
deleteReleaseAdmindeploy.manageOne appdeploy.manage
deployMemberdeploy.runOne appdeploy.run
detailViewer—One appnone
getEnvAdmindeploy.envOne appdeploy.env
githubMemberdeploy.manageOne appnone
issueTokenAdmindeploy.manageOne appdeploy.manage
linkDomainMemberdeploy.manageOne appdeploy.manage + domains.create + domains.edit + nginx.reload (+ ssl.issue when a certificate is issued)
listViewer—App listnone
moveMemberdeploy.manageOne appdeploy.manage
regenerateKeyAdmindeploy.manageOne appdeploy.manage
rollbackMemberdeploy.rollbackOne appdeploy.rollback
runViewerdeploy.logsOne appdeploy.logs
setEnvAdmindeploy.envOne appdeploy.env
testKeyMemberdeploy.manageOne appdeploy.manage
unlinkDomainMemberdeploy.manageOne appdeploy.manage
updateMemberdeploy.manageOne appdeploy.manage
hub:manageDomaincreateMemberdomains.createServer-widedomains.create
deleteAdmindomains.deleteServer-widedomains.delete + nginx.reload (+ ssl.delete when the certificate goes too)
reloadMembernginx.reloadServer-widenginx.reload
toggleMemberdomains.toggleServer-widedomains.toggle + nginx.reload
updateMemberdomains.editServer-widedomains.edit
hub:manageProcessrestartMemberprocess.restartServer-wideprocess.restart
startMemberprocess.startServer-wideprocess.start
stopMemberprocess.stopServer-wideprocess.stop
hub:manageSSLdeleteAdminssl.deleteServer-widessl.delete
issueMemberssl.issueServer-widessl.issue
renewMemberssl.renewServer-widessl.renew
renewAllMemberssl.renewAllServer-widessl.renewAll
suggestViewernginx.config.viewServer-widenginx.config.view
hub:nginxActionreloadMembernginx.reloadServer-widenginx.reload
restartMembernginx.restartServer-widenginx.restart
startMembernginx.startServer-widenginx.start
stopMembernginx.stopServer-widenginx.stop
testMembernginx.testServer-widenginx.test
hub:reloadNginx*Membernginx.reloadServer-widenginx.reload
hub:saveConfig*Adminnginx.config.editServer-widenginx.config.edit
  • hub:deployHook is never sent by a person: only the CI endpoint uses it, with the app's own deploy token. It is listed so the table is complete, and a signed-in account cannot send it.
  • "App list" supplies no app id: the Hub returns only the apps you may see, with deployment output removed where you lack deploy.logs.
  • linkDomain also needs ssl.issue when the link issues a certificate; manageDomain delete also needs ssl.delete when it is asked to delete the certificate with the domain.
  • Creating an app is server-wide on purpose (the app does not exist yet), so an app-scoped person cannot create one. A Member who creates an app through the Hub is granted that app automatically.

Actions on the server itself

These are not commands: they are the server's own endpoints. server.view is the one exception that lets an app-scoped person see that the server exists. Reading the server's action log follows team audit.view — Admin and Owner.

ActionMin roleScope
server.viewViewerApp-scoped viewers allowed
server.metricsViewerServer-wide
server.renameAdminServer-wide
server.deleteOwnerServer-wide
server.rotateSecretOwnerServer-wide
server.cliLinkOwnerServer-wide
server.transferOutOwnerServer-wide
server.transferInAdminServer-wide

Actions on the team

A team has no app subset, so these have no scope of their own.

ActionMin role
team.viewViewer
team.renameOwner
team.deleteOwner
members.manageOwner
ownership.transferOwner
audit.viewAdmin

What a limited person sees

A Member or Viewer has three narrowing layers, all optional in the sense that the default is everything visible in the team:

  1. All servers, or selected servers. With selected servers the person sees only those, and every other server in the team does not exist for them — the API answers 404, never 403.
  2. Per server: all apps, or selected apps. "All apps" is the default for a server you were given. With selected apps, the person sees the server but only those apps — the rest are not merely read-only, they are absent.
  3. Per app: may act, and an optional permission list. An app the person may see but not act on is see only: it is listed, and every action on it is refused. Ticking May act on this app grants actions there; Narrow this app's permissions then limits which of the person's permissions apply to that one app. Narrowing never adds anything.

Because apps are listed server by server, giving someone one app means choosing that server first: the access form works down from servers to apps.

What this changes in practice, for an app-scoped person:

They seeThey do not see
The server, its name and whether it is online; their own app list, filtered.Servers or apps outside their scope — not as an empty list, as a missing server.
Status and deployment progress for those apps; log lines only with deploy.logs on that app.Server-wide telemetry: nginx, domains, service, processes, channels, resources, metrics, nginx configs and nginx logs.
Their own command results, and the progress of a command they started.Another person's command result or progress — even on the same server and app.
  • Deployment output is stripped, not hidden by the interface: an app they can see without deploy.logs arrives without the last run's error, reason, warnings and log tail, and a progress frame arrives with no lines.
  • A new app belongs to its creator, the Admins and the Owner. A Member who creates an app through the Hub is granted it automatically. For every other Member it stays "see only" until the Owner grants it; Admins and the Owner are never narrowed. An app the Hub has not learned yet cannot be selected at all — save and you get UNKNOWN_APP. The list is learned whenever the server reports it, so open the server once after adding an app.
  • A change applies at once. Nothing is cached: the next request is authorised from the database, and a browser already watching the server is re-checked and told. A person whose access was removed loses the subscription and sees accessRevoked.

Admins and Owners are never narrowed by app: they always hold the whole server within their permission list. If someone needs one app only, Member or Viewer is the role to use.

Setting it up, step by step

Eight steps from an empty Hub to a team with a person limited to one app. Every one is reversible; the troubleshooting table at the end names the next step for each refusal.

1. Create a team

Open the team switcher at the top of the Hub and choose Create team, then type a name (60 characters at most). You become the team's only Owner; ownership moves later only through Transfer ownership. Creating teams is limited to 10 per account per hour; the limit answers 429 with a wait.

Screenshot
The team switcher, with Create team at the bottom of the list.

2. Add a person by email

In the team's Members area, open Add a person and type the email address of someone who already has a Hub account. Pick a role and the permission boxes fill from its preset. Choose Add person and the membership exists immediately.

  • There is no invitation. Nothing is emailed, no link is generated and there is no acceptance step. The team appears in that person's switcher on their next request, and their live sessions are re-checked.
  • The account must already exist. An address with no Hub account is refused with NO_ACCOUNT; ask the person to register with that exact address, then add them again.
  • Owner is not in the role list. A team has exactly one Owner, so ownership is never handed out here: choosing Owner or editing the Owner gets USE_TRANSFER. Use Transfer ownership instead.
  • They start visible but not acting. A new Member or Viewer sees all of the team's servers and apps, but can act on no app until you grant it in step 4. Their preset permissions only take effect on the apps you grant.
  • Adding people is limited to 30 per account and 100 per team per hour; only successful additions count.
Screenshot
The Add a person form: email, role, and the preset permissions the Owner may adjust.

3. Choose a role preset and adjust permissions one by one

Open Members, pick the person and open their Access area. The role still decides the ceiling; the boxes decide what this person actually holds within it:

  1. Changing the role applies its preset — Viewer none, Member deploy, rollback, deployment logs and process start/stop/restart, Admin every admin-level permission. The two tables in Roles, presets and permissions are the whole rule.
  2. Then tick or untick the permissions one by one. Only the keys the role can hold are offered; anything above it, and any key the Hub does not know, is dropped when you save.
  3. Promoting someone to Admin widens the server/app limits automatically (Admins always hold the whole team). Demoting also applies the new role's preset, so look over the boxes again afterwards.
  4. Choose Save.

A role never adds a permission the server has switched off. If the server has domains.delete disabled, an Admin's tick for it still gets nothing done — the agent refuses.

Screenshot
The Access editor: the permission groups, with only the keys the chosen role can hold.

4. Give a Member one app

In the same Access area, choose the server (see step 5 for selected servers), keep All apps or choose Selected apps, then grant the app for actions:

  1. Tick May act on this app. Without it the app is see only: it is listed and every action is refused with APP_NOT_GRANTED.
  2. Optionally tick Narrow this app's permissions and choose a subset — for example deploy and logs but not rollback. Widen nothing here: the subset is taken from the permissions the person already holds.
  3. Choose Save.

A new app is different. Only its creator, the Admins and the Owner can act on an app created later. A Member who creates it through the Hub is granted it automatically; for every other Member it stays see-only until you grant it here.

The Hub can only grant an app it has learned from the server. If the app is missing from the list, open the server once so its app list is stored, then come back; an unknown id answers UNKNOWN_APP.

Screenshot
One app granted for actions, with its optional narrowed permission list.

5. Limit what a person sees

The Access area works top-down: servers first, then apps.

  • Servers: All servers or Selected servers. With selected servers, the other servers of the team are a 404 for that person, not a 403 — they do not exist as far as their Hub is concerned.
  • On each chosen server: All apps or Selected apps. "All apps" shows every app the person may see, including new ones; "Selected apps" shows only the ticked apps, and the rest disappear.
  • On each chosen app: May act, then optionally a narrowed permission list. Leave May act off and the app is see-only.

Two things the form refuses: choosing all servers and a list of servers at the same time (SCOPE_CONFLICT), and an app the Hub has not learned from the server yet (UNKNOWN_APP). Choosing apps means choosing servers: the form cannot grant an app while leaving the person on all servers.

Saving takes effect on the next request and re-checks any browser already watching that server. The person keeps their role; only what it reaches has changed.

Screenshot
Selected servers, one server expanded, and Selected apps beneath it.

6. Move a server into the team — or hand one to a member

On the server page, open Settings → Transfer server, choose where it should go and type the server's name to confirm. The name is required, deliberately: a server does not change hands on a single click.

  • A team. A personal server joins the team and its ownership passes to that team's Owner. Moving between teams works the same way. The destination team needs an Admin or Owner among your roles; moving a server out of a team needs that team's Owner.
  • A person. A personal server can be handed to another person: it stays personal, now owned by them. The recipient must be a member of a team you own, which keeps the hand-over inside people you already know.
  • My personal space. An Owner can take a team server out of the team; only the Owner keeps it, now outside the team. A team server cannot be handed straight to a person — the Hub answers TEAM_TRANSFER_OWNERSHIP.
  • Nothing about the connection changes. The agent stays connected, the secret is not rotated, no pairing string is reissued and the server's local permissions are untouched. Only teamId and the owning account move.
  • The old team's scope rows are cleared. Access rules that named that server are removed rather than following it, so nobody keeps a key to a server that left.
Screenshot
Transfer server: A team, A person, My personal space, and the typed server-name confirmation.

7. Transfer team ownership

A team has exactly one Owner. To hand it over, open Settings → Ownership, choose the new Owner and confirm. The chosen member becomes Owner; you become Admin with the admin preset.

  • Every server follows the Owner. The team's servers change their owning account in the same transaction, because a team server is owned by the team's Owner.
  • The new Owner holds everything immediately and their old per-server/app limits are dropped. You keep the admin-level permissions.
  • It is one transaction. If the team would end with two Owners or none, the whole transfer is rolled back and the Hub answers OWNERSHIP_CONFLICT; reload and try again.
  • The Owner cannot leave or be removed (OWNER_CANNOT_BE_REMOVED). Transfer ownership first.
Screenshot
Settings → Ownership: choose the member who becomes the only Owner.

8. Read the team audit log and a server's action log

The team has an Audit view for Admins and Owners: newest first, 50 entries at a time, up to 200 per request, with an older-page cursor.

  • Recorded: team create, rename and delete; a person added, updated, removed or leaving; ownership transfers; server transfers in and out; every command dispatched and every refusal; and the automatic grant of an app to its creator.
  • Commands are recorded by name — command, action, app id, request id, whether it was dispatched or refused, and the refusal code. Never the payload, never an environment value, never a secret or a token.
  • Fields whose name looks sensitive (secret, token, password, env, key, content, payload) are dropped before the entry is written, and a long value is cut at 200 characters.
  • Each entry carries who did it and the client address the Hub saw.
  • Entries belong to the team, so they survive the account leaving. Deleting the team detaches them rather than erasing what was done.

Each server also has its own Action log on its page — personal servers included. It shows the same kind of entries for that one server: commands, refusals and transfers, newest first, without a payload. The personal owner, a team Admin and the team Owner can read it; a Member or Viewer gets a role refusal.

Screenshot
The team audit list, and the server's own Action log with command, outcome and client address.

Leaving, removing and deleting

ActionWhoWhat happens
Leave the teamAny member except the OwnerYour membership goes and the team's servers leave your list at once. The Owner cannot leave: the Hub answers OWNER_CANNOT_BE_REMOVED.
Remove someoneOwnerTheir membership and scope rows are deleted and their open sockets are told. The Owner cannot be removed — transfer ownership first.
Transfer ownershipOwnerThe chosen member becomes the only Owner and you become Admin. Every team server follows the new Owner. The team still has exactly one Owner.
Delete the teamOwner, typing the team nameRefused while the team holds servers (TEAM_HAS_SERVERS). Move them out or delete them first. Deleting removes the memberships.
Delete your accountAny member, from account settingsRefused while you own personal servers (ACCOUNT_HAS_SERVERS) or an owned team still has servers (OWNS_TEAM_SERVERS, naming the teams). Servers are never deleted or handed on by a deletion; empty teams you own are dissolved, and teams you merely belong to just lose your membership.

What to do before deleting an account:

  • For each personal server: Settings → Transfer server → A person (a member of a team you own) or delete the server.
  • For each team you own with servers: Settings → Ownership → Transfer ownership, or move its servers out and delete them. Then delete the account.
  • As a plain member: nothing to move. Your membership is removed and no server is touched. The deleted account also needs the emailed confirmation code, so SMTP must be configured on the Hub.

A server that is deleted is removed from the team like any other server; its scope rows go with it. Moving the last server out of a team does not delete the team — do that yourself when you no longer need it.

Removing a team server as Hub staff

A server that belongs to a team is not removed from the staff /management page by a single click. The confirmation needs the explicit "remove it from the team anyway" choice; without it nothing is removed and the page says why. The same rule is behind 409 TEAM_SERVER in the API, which answers it unless the request body carries teamOverride: true.

The removal is recorded twice: once in the team's audit log, with who did it and the client address the Hub saw, and once in the staff action log. It is never a silent side effect of tidying the management list.

Troubleshooting by error code

The Hub answers a refusal with the code below in the response body. A server you cannot see is answered 404, not one of these — that is deliberate, so a server id cannot be probed.

CodeStatusWhat it meansWhat to do
ROLE_TOO_LOW403Your team role cannot do this action.The message names the role you need (Member, Admin or Owner). Ask the Owner to raise your role, or ask an Admin or Owner to run it.
NOT_GRANTED403Your role is high enough, but this permission is not in your list — or the app's narrowed permissions removed it for that one app.Ask the Owner to tick that permission for you (Members → your role's permissions), or to widen that app's permission list.
APP_NOT_GRANTED403You can see this app but the Owner has not granted it to you for actions.Ask the Owner to tick “May act on this app” for you, or create the app yourself through the Hub — the Hub then grants it to its creator automatically.
SERVER_WIDE_REFUSED403You may use selected apps on this server, and the action affects the whole server (nginx, domains, SSL, processes, creating an app).Use an app-scoped action, or ask the Owner to give you the whole server instead of selected apps.
OUT_OF_SCOPE403The app id in the command is not in your access list.Reload the server so the app list reflects your scope. If the app should be yours, ask the Owner to add it under Access → Selected apps.
UNKNOWN_APP400The Hub has not learned that app id from the server yet, so it cannot be granted.Open the server once in the Hub (or wait for its next report) so the app list is stored, then pick the app again.
SCOPE_CONFLICT400A member update asked for all servers and a list of servers at the same time.Choose one: all servers, or selected servers. Saving a server list on its own already means "only these servers".
NO_ACCOUNT404No Hub account uses that email address.The person must register first, with that exact address. Nothing is emailed and no invitation is created; add them again once the account exists.
ALREADY_MEMBER409That account is already in this team.Nothing to do — find them in Members and edit their role or permissions instead.
USE_TRANSFER400Owner was chosen as a role in the add or edit form. Ownership is never assigned like a role.Team settings → Ownership → Transfer ownership. The chosen member becomes the only Owner and you become Admin.
OWNER_CANNOT_BE_REMOVED409The Owner tried to leave, or someone tried to remove the Owner. A team always keeps exactly one Owner.Transfer ownership to another member first, then leave or remove.
OWNERSHIP_CONFLICT409Ownership changed while it was being transferred — the team did not end with exactly one Owner, so the transfer was rolled back.Reload the team, check who is Owner now and repeat the transfer.
TEAM_TRANSFER_OWNERSHIP400A team server was offered to a person. A team server belongs to the team's Owner, so it cannot be handed to an individual.Move it to your personal space first (Settings → Transfer server → My personal space), then hand it to the person. Or transfer team ownership.
TEAM_HAS_SERVERS409The team still holds servers, so it cannot be deleted.Move each server out (Settings → Transfer server) or delete it, then delete the team.
TRANSFER_CONFLICT409The server changed while it was being moved — someone else transferred it, or it was deleted.Reload the Hub and check where the server is now, then repeat the move.
ACCOUNT_HAS_SERVERS409You still own personal servers, so the account cannot be deleted.Hand each one to an existing member (Settings → Transfer server → A person) or delete it, then delete the account.
OWNS_TEAM_SERVERS409You own one or more teams that still have servers. Every team server belongs to its Owner, and deleting your account would leave them without one.Transfer ownership of each named team, or move its servers out or delete them, then delete the account.
AGENT_PERMISSION_OFF403The server itself has that permission switched off. This refusal carries no code: the message is "This server has '<permission>' disabled. Enable it in the server's own dashboard: Settings → Hub."The Hub cannot override it. Someone with access to the server turns the permission on in Settings → Hub, or the command stays unavailable.

Teams are a Hub feature only. Nothing on the server changes, nothing is installed, and an unpaired server is unaffected. See Easy DevOps Hub for pairing, the connection string and the server's own permission tree.