Roles and access#
In earlier versions an account was an administrator or it was not, with a few half-measures in between. In CrushMFT 27, administration is cut into pieces. An account holds roles; a role is a set of permissions; each permission can be limited to a scope: these users, those jobs, that storage. Somebody can so reset the passwords of one department and do nothing else.
This page explains the ideas. The settings are on Access Roles and Giving a user roles.
The four ideas#
| Idea | What it is | Example |
|---|---|---|
| permission | one thing that can be done | users.user.password.reset |
| scope | where it may be done | the users of the group Sales |
| role | a named set of permissions, each with a kind of scope | User Security Manager |
| grant | a role given to an account, with the account's own scopes filled in | Dana holds User Security Manager for the group Sales |
Roles are made once for the server. The scopes are set on the account: one role "User Manager" serves every team lead, each with their own group.
Scopes#
| Kind | Says which | Written as |
|---|---|---|
| users | users an account may manage | all, a connection group, a group of users, one user |
| jobs | jobs it may see, run or change | all, a folder of jobs, one job |
| storage | where it may point users and jobs at | all, a folder of the server, a user's file system, a connection profile, a host |
A permission marked "managed" in a role holds for the scope of whoever holds the role.
Tiers: how dangerous a permission is#
Not all administration is equal. Some of it cannot be fenced in by any setting, because whoever has it can run their own code on the server or sign in as anybody.
| Tier | Means | Examples |
|---|---|---|
| 0, equal to full control | cannot be contained by anything inside the application | tasks that run a program or script; plugin settings; the command lines of previews; the sign-in providers, because whoever sets the identity provider can log in as anyone; where the users are stored; replication and DMZ peers; editing roles; editing the default user |
| 1, sensitive | reaches secrets or other people's identity | passwords, second factors, SSH keys, mail address and phone (a reset mail or a code goes there), reading logs, exporting private keys, mail server settings, custom JavaScript |
| 2, normal | the rest |
Tier 0 is held by the role Administrator alone. It cannot be put into any other role, and a token never carries it. The pages mark such permissions as "equal to full control of the server".
A role lists its permissions by name, with no wildcards: a permission that a later version adds is never added to a role of your own by itself.
The rules that keep it honest#
The server holds to a few rules, whatever the roles say:
| Rule | Why |
|---|---|
| Give no more than you may hand on. Giving a role, adding somebody to a group that carries rights, saving a job that runs with authority: what is given must be inside what the giver may give. | nobody makes themselves, or a friend, more than they are |
| Touch nobody above you. Editing, resetting or deleting an account needs rights that cover everything that account holds. | a help desk cannot reset an administrator's password and log in as them |
| A job runs with an authority of its own, set when it is saved, from what the person who saved it may do. Not with that of whoever starts it. | a job is not a way around your own limits, and running one does not lend you its maker's rights |
| Changes bite at once. A changed role or account changes what its open sessions and tokens may do. | no waiting for a logout |
| Everything of consequence is written down, in an audit log only full administrators can read. | traces cannot be covered |
One engine decides, for every way in: the admin pages, the API, FTP commands, jobs and events.
What ships#
The server comes with 21 roles for the usual divisions of work, among them Administrator, User Manager, User Security Manager, Job Operator, Job Editor, Key Manager, Log Reader and Auditor: see The built-in roles. Start from these; make your own when they do not fit: Making and changing roles.
Seeing what somebody may do#
On the Admin tab of an account:
- Effective access lists every permission the account ends up with, and from which role.
- Test access asks one question, "may this account do X to Y?", and answers with the reason.
Scripts ask the same through the API: whoami and explain.
Files are a separate matter#
Roles are about administration. What a user may do with files, download, upload, delete, is still set on their folders: Permissions. An administrator's roles do not give them anybody's files, and a user's folder permissions make them no administrator.
Related#
| Subject | Page |
|---|---|
| tokens for scripts and AI tools | Access tokens with a time limit |
| administrators from an earlier version | Roles after upgrading from 11 |
| a team lead for one group | Limited admins |