Roles and permissions
What root, a super admin, an admin and a user can do in OSH, action by action. Describes gateway 0.43.1 with OSH - Signer 1.0.16.
How roles work
1. How roles work
Super admin, admin and user are roles held inside one group. The same person can be an admin in one group and a user in another: what they may do depends on the group they act in. Root is the one role that belongs to no group. It owns the gateway and can do everything in every group.
"In the group" below means the group the action is about: the server's group, the rule's group, or the group of the person or computer.
A role never lets anyone connect to a server by itself. Everyone, root included, connects from a computer that a rule lets in.
Approving connections is not a role either. A super admin of the group, or root, names the approvers in each rule, and anyone named there can approve, a user included (gateway 0.43.0 and later). See Rules and Connections below.
Gateway-wide settings (root only)
2. Gateway-wide settings (root only)
| Action | Root | Super admin | Admin | User |
|---|---|---|---|---|
| Create or delete a group | Yes | No | No | No |
| Move a server to another group | Yes | No | No | No |
| Freeze or unfreeze the gateway | Yes | No | No | No |
| Appoint a second root | The first root only | No | No | No |
| Slack, webhook and Telegram channels | Yes | No | No | No |
| Turn the push relay on or off | Yes | No | No | No |
| Set the minimum client version | Yes | View only | View only | No |
| Open the firewall to an IP address | Yes | No | No | No |
| Read the notification archive | Yes | No | No | No |
| See gateway information and updates | Yes | Yes | No | No |
Servers
3. Servers
| Action | Root | Super admin | Admin | User |
|---|---|---|---|---|
| Add, edit or delete a server | Yes | In the group | No | No |
| Approve, reject or revoke host keys | Yes | In the group | No | No |
| See the servers of the group | Yes | Yes | Yes | Yes |
| Open a server's details | Yes | Yes | Yes | No |
Rules
4. Rules
| Action | Root | Super admin | Admin | User |
|---|---|---|---|---|
| Create or edit a rule | Yes | In the group that owns the rule | No | No |
| Delete a rule | Yes | In the server's group or the group that owns the rule | No | No |
| See the rules of the group | Yes | Yes | Yes | No |
| See the rules that name them as an approver | Yes | Yes | Yes | Yes |
| Be picked as an approver | Yes | In the group that owns the rule | In the group that owns the rule | In the group that owns the rule |
Before gateway 0.43.0 a user could not be picked as an approver. Someone outside the group that owns the rule still cannot.
A user who is an approver sees only the rules that name them, read-only, and gets no other power: no Admin tab, no people or computers to manage.
A rule covers one server, a list of up to 200 servers, or every server of its group (gateway 0.43.0 and later).
People
6. People
| Action | Root | Super admin | Admin | User |
|---|---|---|---|---|
| Invite someone to the group | Any role | As admin or user | As user | No |
| Approve or reject a request to join | Any role | Admin or user requests | User requests | No |
| Make someone super admin of a group | Yes | No | No | No |
| Change a member's role | Yes | Between admin and user | No | No |
| Remove a member from the group | Yes | Admins and users | Users | No |
| Remove a person from the gateway | Anyone but root | Admins and users | Users | No |
| Rename someone | Yes | Admins and users | Users, in their first 7 days | Themselves only |
| Update someone's certificate | To admin or super admin | To admin | No | No |
Removing or renaming a person needs a role above theirs in every group they are in. Nobody can change their own role, remove themselves or update their own certificate.
Updating a certificate also covers an approver whose certificate is below Admin, a user included. A certificate is never lowered.
Computers
7. Computers
| Action | Root | Super admin | Admin | User |
|---|---|---|---|---|
| Create an invite code for a computer | Yes | In the group | In the group | No |
| Approve or reject a new computer | Yes | In the owner's group | In the owner's group | No |
| Remove a computer from the group | Yes | In the group | In the group | No |
| Revoke, rename or recheck a computer | Yes | In every group it is in | In every group it is in | No |
| Delete a computer for good | Yes | In every group it is in | No | No |
| See computers | All | Of the people they see | Of the people they see | Their own |
A computer takes the groups of its owner, so an approval that names an owner needs an admin of each of the owner's groups. Otherwise root finishes it.
Connections
8. Connections
| Action | Root | Super admin | Admin | User |
|---|---|---|---|---|
| Ask to connect from their own computer | Yes | Yes | Yes | Yes |
| Approve or deny a connection | When named in the rule | When named in the rule | When named in the rule | When named in the rule |
| Approve a connection from their own computer | When named in the rule | When named in the rule | When named in the rule | When named in the rule |
| Read the logs, approval logs and analytics | Yes | Yes | Yes | No |
Only the person named at the current step of the rule can answer a request. A rule with two steps needs two different people.
An approver can approve a request from a computer they own. The approval log marks it as a self-approval, and the web console can show only those. There is no switch to turn this off: if a second person must check, write a rule with two steps.
An approver who leaves the group that owns the rule can no longer answer, see or be alerted about its requests. On gateway 0.43.1 and later a request on that rule is refused at once with a message telling the person to ask a super admin to fix the rule.