People and roles

This page tells you what each person can do in Deployment Manager. It explains the roles, how a role is given, and how to get access to one installation. It also explains machine access tokens, which give another system read-only access to the catalogue.

What you do on the People and roles page

This section lists the tasks on this page.

  • Find out what your role lets you do, and what it does not.

  • As an administrator, give a person a new role on the Accounts screen.

  • Ask for access to one installation, or give that access to someone.

Two words are used a lot on this page:

  • An installation is one customer system: its servers, services and settings.

  • To deploy means to install the system on the customer’s servers.

Role and installation access: two different things

This section explains the two kinds of permission.

Deployment Manager asks two separate questions about every person:

  1. What is this person allowed to do in general? This is their role. Every person has exactly one role.

  2. Which installation may this person change? This is access to one installation.

A role is like a job title. Access is like a key to one room. A person with the role user can work on installations. But they can change only the installations they created, or the ones they were given access to.

You can ask for installation access yourself. You cannot ask for a role in the tool. An administrator gives roles.

The roles

This section describes each role: who gets it, what it can do, and what it cannot do.

There are five roles. From lowest to highest: no_access, viewer, user, support_admin, global_admin. Each role can do everything that the roles below it can do. On the Accounts screen they are shown as "No access", "Viewer", "User", "Support admin" and "Global admin".

global_admin is the top role, for the owners of the tool. It is not described on this page.

no_access

Who gets it: a person who left the company, or a person who must be locked out.

What they can do: nothing.

What they cannot do:

  • They cannot sign in. The sign-in is refused.

  • If they are already signed in, the next thing they do is refused. They see this message: "Your access to Deployment Manager has been removed. Ask an administrator to restore it."

The change works at once. The tool checks the role again on every click. So you do not have to wait until the person’s session ends.

viewer

Who gets it: every person who signs in for the first time. Anyone with a company email address can sign in without help. So the first role only lets you look.

What they can do:

  • Open the Installations tab and open every installation. An installation opens read-only, with its addresses and settings hidden. See An installation you cannot change.

  • Open the Topologies tab and read every topology. A topology is the plan of which services run on which server.

  • Take the course on the Training tab. For a viewer, the course has two modules: T1 and T2.

  • Read What’s new, the list of changes in the tool.

What they cannot do:

  • They cannot change anything. The installation cards show no buttons for a viewer. The list shows this note instead: "Your role does not allow changes. Ask an administrator for access to the tool."

  • They cannot create an installation or a topology.

  • They cannot open Health, Diagnostics or Test install.

  • They cannot deploy.

  • They cannot use the in-app assistant. It does not appear for a viewer.

  • They cannot ask for access to an installation. They need the role user first.

user

Who gets it: an operator who installs and repairs customer systems. An administrator gives this role on the Accounts screen.

This role can deploy to customers' production servers. That is why it is never given automatically.

What they can do on any installation:

  • Everything a viewer can do.

  • Open Health to see if the containers on each server are running.

  • Run Diagnostics. This collects a report file from every server of the installation.

  • Check the entry points, the addresses where the system answers from outside.

  • Ask the in-app assistant, and file a bug report from it.

  • See Your month, a summary of their own work.

  • Create and edit topologies.

  • Create a new installation.

  • Ask for access to an installation (see Requesting access to one installation).

What they can do only on their own installations, or ones they have access to:

  • Edit the installation and its variables.

  • Create the bundle, the files that install the system. Build an offline bundle and download it.

  • Save and remove SSH credentials. SSH is how the tool connects to a customer’s server.

  • Deploy.

  • Start, use and remove a Test install. A Test install is a practice run on throw-away servers.

  • Repair a server: restart a container, apply a preflight fix, edit the server’s .env file, roll the .env file back, or deploy one server again.

  • Mark the installation as installed.

What they cannot do:

  • They cannot change an installation that someone else created, unless they were given access. They see this message: "You do not have write access to this installation. Request access from a support admin."

  • They cannot delete an installation or a topology.

  • They cannot give access to anyone. This is true even for an installation they have access to.

  • They cannot open the Operations tab or the People tab.

  • They cannot give roles.

support_admin

Who gets it: a team lead or support engineer who looks after other operators.

What they can do:

  • Everything a user can do.

  • Change every installation without asking for access.

  • Delete an installation or a topology.

  • Open the Operations tab: the journal of everything done in the tool. See Operations journal.

  • Take the two exports of the journal: the internal one and the one for a customer.

  • Open Accounts (under the People tab). They see themselves, and everyone with a lower role. They can give a role that is lower than their own.

  • Open Access requests (under the People tab). They can Grant or Decline a request.

  • Give access to an installation, and take it back with Take back.

  • Name the owner of an installation that has no owner, with Set owner.

  • See the whole team’s progress through the training course.

  • See the practice installations of other people.

  • Share a saved draft of an installation with others.

What they cannot do:

  • They cannot change their own role.

  • They cannot change the role of another support_admin, or of a global_admin.

  • They cannot give the role support_admin or global_admin.

  • They cannot see other support_admins or global_admins on the Accounts screen.

  • They cannot open Settings, Security or the AI Assistant tab.

What each role can do

This section compares the three working roles in one table.

"Yes" means the role can do it on any installation. "Own" means only on an installation the person created, or was given access to. "No" means never. The module in brackets is the training module that unlocks the action (see Training unlocks actions).

Action viewer user support_admin

Read installations and topologies

Yes

Yes

Yes

Take the training course

Yes

Yes

Yes

Open Health, run Diagnostics, check entry points (T8, T10)

No

Yes

Yes

Ask the in-app assistant, file a bug from it

No

Yes

Yes

See Your month

No

Yes

Yes

Create or edit a topology (T4)

No

Yes

Yes

Create an installation (T5)

No

Yes

Yes

Ask for access to an installation

No

Yes

Not needed

Edit an installation and its variables, start a Test install (T5)

No

Own

Yes

Create the bundle (T6)

No

Own

Yes

Build the offline bundle (T7)

No

Own

Yes

Save or remove SSH credentials (T8)

No

Own

Yes

Deploy (T9)

No

Own

Yes

Repair a server: restart a container, preflight fix, edit or roll back .env, deploy one server again (T10)

No

Own

Yes

Mark as installed (T11)

No

Own

Yes

Set the owner of an installation with no owner (T11)

No

No

Yes

Grant, decline or take back installation access (T12)

No

No

Yes

Open the Operations tab and take its exports

No

No

Yes

Delete an installation or a topology (T14)

No

No

Yes

Open Accounts and Access requests, give lower roles

No

No

Yes

Nobody can change the shared demo installation, whatever their role. See Training unlocks actions.

Training unlocks actions

This section explains how the training course limits what you can do.

Your role says what you may do. But some actions stay muted until you finish the training module that teaches them. This is true for viewer, user and support_admin. Only global_admin does not have to take the course.

  • A viewer’s course has two modules: T1 and T2.

  • A user’s course has eleven modules: T1 to T11. A user also sees one optional module, T15, Take over a running site. Nobody must finish T15.

  • A support_admin’s course has all fourteen modules: T1 to T14.

When an action is muted, the tool tells you which module unlocks it. The message looks like this: "Finish training module T9 - Deploy - to use this."

Good to know:

  • Reading is never limited.

  • The module you are working on does not mute the button it teaches. So you can always press it during the lesson.

  • The shared demo installation cannot be changed by anyone. If you try, you see this message: "This is the training installation everybody learns on, so it cannot be changed. Build one of your own to practise on."

  • An administrator can let a person skip a module. The tool records this. See Exemptions and the sweep of unused practice installations.

For the full course, see Training.

Exemptions and the sweep of unused practice installations

This section gives the rules for letting a person past a training module and for removing practice installations nobody uses. Only a global_admin can do both. The Training tab has no button for either one. A global_admin does them through the tool’s API.

Rules for an exemption:

  • An exemption covers one module, or all modules.

  • An exemption needs a reason. Without one, the tool refuses with "Say why this person is being let past."

  • An exemption lasts from 1 to 14 days. A longer or shorter time is refused with "A bypass lasts between 1 and 14 days."

  • You cannot give an exemption to yourself. The tool refuses with "You cannot excuse yourself - ask another administrator." Ask another global_admin.

  • A global_admin can end an exemption before it expires.

Rules for the sweep:

  • The sweep removes the practice installations of trainees who did not come back for a number of idle days. It also removes their progress rows. It never removes the shared demo installation.

  • Idle time is counted from the person’s last training progress. If the person has no progress, it is counted from the day the practice installation was created.

  • If a practice installation has a Test install, the sweep removes that first. If the Test install cannot be removed, nothing is deleted for that person. The sweep goes on with the next person.

  • The number of idle days is 30 by default. You can choose from 1 to 3650. Another number is refused with "Idle days must be between 1 and 3650."

  • Nothing runs the sweep by itself. A global_admin starts it.

  • The tool records one journal row for each person whose objects were removed.

The team report on the Training tab

A support_admin or a global_admin sees a section named Where the team is on the Training tab. It is closed at first. Open it to load the report. The report shows how far each person has come in the course. Press Refresh to read it again. If the read fails, press Try again.

Each person has one status: Finished, In progress, Not started, Exempt or Nothing to do. Exempt means the role does not need the course. A count named "waiting on our lab" shows people who could not finish because the test servers were down. That is not the person’s fault. If an administrator let a person skip a module, the row shows "Let past the gate for:" and the module names.

The role ladder

This section explains how roles are ordered and which role a new person gets.

The five roles form a ladder: no_access, viewer, user, support_admin, global_admin. Each role includes everything the roles below it can do.

A first sign-in gets viewer, on purpose. Anyone inside the company’s own email domain can sign in without help. But the working role (user and above) can deploy to every customer’s production servers. So the tool never gives the working role automatically. A person gives it later, on the Accounts screen (under the People tab).

no_access is how you remove an account that has left or must be locked out. It is a role, not a separate switch. So it works at once. The tool reads the role again on every request. A signed-in session otherwise stays valid for days, and it cannot be taken back.

A viewer can still read every installation. So changing someone to viewer does not lock them out. Use no_access for that.

Granting a role

This section explains how to change a person’s role, and the rules for it.

To change a role:

  1. Open the People tab.

  2. Open Accounts.

  3. Find the person in the list.

  4. Press Change role.

  5. Choose the new role. The dialog Change a role names the person and shows the change, for example "from User to Support admin".

  6. Press Change to and the new role, for example Change to Support admin. Press Cancel to stop.

The list on the Accounts screen has these columns: Who, Role, First signed in, Last signed in and Change. It is in alphabetical order. Times are UTC. Use the page buttons and Rows per page below the list to move through it. If the tool refuses a change for one person, the Change column shows the reason instead of the Change role button.

To learn what each role means, press What the roles mean on the same screen.

The rules for a support_admin:

  • You must be higher than the person’s current role. The same role is not enough.

  • You must also be higher than the role you give.

  • A support_admin may not change their own role.

  • A support_admin may not change the role of an equal, or of someone higher. This rule keeps the ladder safe. Without it, one administrator could use a colleague of the same role to promote a third person to the top role. They could also quietly demote the person who checks their work.

  • Only a global_admin may give global_admin. A support_admin is not higher than global_admin, so a support_admin can never give it.

  • A global_admin has no limits on anyone, on purpose. So there is always someone who can fix a mistake in roles. This leaves one gap: the last global_admin can lower their own role. This risk is accepted. It is rare. You can fix it the same way the very first administrator was created. See bootstrapping the admin list.

When the tool refuses a change, it always says why. It never only hides the button. These are the messages:

  • "Only an administrator can assign roles."

  • "You cannot change your own role - ask another administrator."

  • "A support_admin cannot change the role of a support_admin."

  • "A support_admin cannot grant the role global_admin."

Requesting access to one installation

This section explains how to ask for access to one installation, and how an administrator answers.

Every signed-in user and above can open any installation read-only. To change an installation that you did not create, you need access to that one installation. Change means: edit it and its variables, create its bundle, deploy it, run a Test install on it, or repair one of its servers.

You do not need access to ask for access. That is the purpose of the request.

Who may change an installation:

  • the person who created it,

  • a person who was given access to it,

  • every support_admin and global_admin.

Nobody else can change it. Being the last person who edited it is not enough.

An installation you cannot change

This section explains what you see of an installation when you are not on the list above. A viewer always sees installations this way.

The installation opens read-only:

  • Plan shows the release, the topology, the certificate, and each server with what it runs.

  • Server check and Settings show only the state of the stage.

  • No stage has a button. There is no Change.

  • The addresses of the servers, the VIP, the load balancers and the setting values are not shown. This is also true on the installation’s card in the list.

In their place, the screen says: "Addresses and settings are visible to the people with access to this installation."

To see them, you need access to this installation. Access and the role are two different things. See Role and installation access: two different things.

  • Request access asks for access to this one installation. A support_admin or a global_admin answers. Access never changes your role. See Steps to ask for access to one installation.

  • Only a person with the role user or higher can press Request access.

  • A viewer cannot ask for access. A viewer needs the role user first.

  • An administrator changes a role on the Accounts screen under the People tab. See Granting a role.

Steps to ask for access to one installation

  1. Open the Installations tab.

  2. Find the installation. Its card says Read-only.

  3. Press Request access.

  4. If you want, write a short reason in Why you need it (optional). The box shows the example "Covering for the owner this week". It is only an example. The reason can have 500 characters at most.

  5. Send the request.

You can have one open request per installation at a time. If you send another one, the tool shows the one that is already waiting. When an administrator answers, you get an email.

Steps to answer an access request (support_admin and above)

  1. Open the People tab.

  2. Open Access requests. It lists every request that is still waiting, oldest first.

  3. Press Grant or Decline.

The list Access requests has the columns Installation, Who asked, Waiting since, Why and Answer. Waiting since shows the time of the request in UTC. The list says "Oldest first, times UTC." If the person gave no reason, the column Why says "no reason given". If the installation is gone, the column Answer says "nothing to grant" and has no buttons. If no request waits, the list says "No one is waiting for access to an installation."

After you press Grant, the tool says that the person can now make changes to the installation. After you press Decline, the tool says that the person was told no. If another administrator answered first, the tool shows "Somebody has already answered" and the person’s name. Nothing is changed by your press in that case.

You can also give access without a request. Open the dialog Who can change installation from the installation card. The card button is Access, or Who can change this in the card menu.

  1. Read Access granted to. It lists who has access.

  2. Type the person’s email in Give write access to.

  3. Press Give access. Press Close to stop.

The same dialog shows Take back for each person. A person who asks sees Why you need it (optional) and the button Request access. If the installation has no owner, a support_admin also sees Make this installation belong to and the button Set owner.

Good to know:

  • A grant records who gave it and when. The tool sends an email to the person who asked.

  • You can take access back at any time with Take back. The record is not deleted. It is marked as taken back. So you can still see who removed the access, and when.

  • Access cannot be passed on. A person with access to one installation cannot give it to anyone else. Only an administrator gives access.

  • Every installation has an owner: the person who saved it first. You must be signed in to save, so the tool always knows who that is. An installation has no owner only when it got into the database some other way, not through the tool. You cannot make such an installation from the screens. If you meet one, it shows this message: "This installation has no owner on record, so no one can change it until a support admin grants access." A support_admin names its owner with Set owner. Set owner works only on an installation with no owner. It does not move an installation from one person to another.

Machine access tokens

This section explains how a global_admin gives another system read-only access to the catalogue. It also lists what the token can and cannot do.

A machine access token lets another system, for example the QA console, read the catalogue without a person signing in. Deployment Manager creates the token itself. No installation creates it.

The Machine access card is on the Accounts screen, below the list of people. Open Accounts under the People tab. Only a global_admin sees the card. Every other role does not see it.

What a machine access token can do

A token gives read-only access. The other system sends the token as a Bearer header. Deployment Manager accepts it only on GET and HEAD requests under /api/machine/compose.

  • The token can read topologies, installations and the service catalogue.

  • The token cannot change anything. A write request under /api/machine/ is refused with status 405.

  • A write request that carries a session cookie and no CSRF header is refused with status 403.

  • The token does not work anywhere else. The administration API rejects a dmt_ token with status 401.

  • The installation list does not show the training installations of trainees, as for a viewer. The detail of such an installation answers with status 404.

  • The service catalogue does not contain the values of secret variables. Deployment Manager removes the default, value and example fields of every secret variable.

  • The installation list and the installation detail do not contain stored secrets. Deployment Manager removes the stored values of secret variables, the host overrides of secret variables, secret entries in the globals, and the defaults of secret variables in the snapshot of the last render.

  • The installation detail shows image_pins for each service as tag, digest and at (the time of the pin). Deployment Manager removes the by field, which names the person who pinned. A person without write access to the installation sees the same three fields.

  • If Deployment Manager cannot read an installation safely, it refuses the request with an error. It does not show the installation.

A variable is secret in one of these cases:

  • It has the secret flag in the catalogue.

  • It is secret under a condition.

  • Its name looks like a credential, for example DB_PASSWORD.

  • It is an alias of a secret variable, also in another service.

Deployment Manager keeps account names, for example *_USER and *_EMAIL, and ports. It also removes a few names that look like credentials but are not secret, for example SNMP_COMMUNITY, JWT_EXPIRATION, and a port with PSK in its name.

Deployment Manager stores only a hash of the token. It cannot show the token again.

A token cannot pin versions. The call POST /api/compose/environments/<name>/image-pins is in the administration API. It needs the role user or higher and a signed-in person. See Pin from a script.

Steps to create a machine access token

  1. Open the People tab.

  2. Open Accounts.

  3. Find the Machine access card.

  4. Press Create token.

  5. Enter a name. Use the name of the system that will use the token, for example "QA console".

  6. Press Create token in the dialog.

  7. Press Copy token.

  8. Store the token in the secret store of the other system.

  9. Press I have stored it.

The name has 1 to 80 characters. It cannot contain control characters, such as a line break. The dialog shows this rule: "Use 1 to 80 characters, no line breaks or control characters."

Deployment Manager shows the token once, in the Token created dialog. The dialog hides the close cross. The Esc key and a click outside the dialog do not close it. The dialog closes only when you press I have stored it.

If you lose the token, revoke it and create another one.

Columns of the machine access token list

The card shows one row for each token. A token never appears in the list. The list shows only the start of the token.

Column Meaning

Name

The name that you entered when you created the token.

Starts with

dmt_ and the first four characters after it, for example dmt_AbCd…. Use them to tell tokens apart.

Created

The time when the token was created.

Last used

The time of the last accepted request. The value is Never if no request used the token. The time is updated at most once a minute.

State

Active or Revoked.

Steps to revoke a machine access token

  1. Find the token in the list.

  2. Press Revoke.

  3. Read the confirmation, then press Revoke token.

Deployment Manager refuses the other system from its next request. You cannot undo a revoke. To restore access, create a new token.

A repeated revoke is safe. The token keeps the time of the first revoke, and the journal gets no second row.

Journal entries for machine access tokens

Deployment Manager writes one journal row for each change. See Operations journal.

Action When

service_token_created

You create a token.

service_token_revoked

You revoke a token for the first time.

Each row records the id, the name and the start of the token. A row never contains the token.