Skip to content

Manage users, roles and groups

What you'll learn:

  • How Repod decides who can do what: roles, permissions and groups
  • What each built-in role can do, permission by permission
  • How to create a user, a custom role, a group and an API token
  • How to give people the least access they need

Time: ~20 minutes
Prerequisites: You are signed in as admin. You have read Your first login for the account and password rules.


How access works

Three ideas are enough to understand the whole page.

  • A permission is one action: "upload packages", "take CVE decisions", "deploy to machines". There are 15 of them.
  • A role is a named set of permissions. Each user has exactly one role.
  • A group is a set of users. It is used to assign CVE decisions to a team, and can give its members a default role.

On top of the role, Repod can restrict the scope: which distributions, which machines, which container or application repositories a person can see. A role decides what a person can do, the scope decides where. This tutorial covers the role part. The scope rules are described in The RBAC model and set up in Restrict distribution and machine access.


Step 1 — Read the users page

Open Administration → Utilisateurs.

The users page: the list of roles, the user table and the API token form

Figure 1 — Users and API tokens.

  1. Rôles disponibles. A reminder of the five built-in roles and what each is for.
  2. A user. The account, its role, where it comes from (Compte local, or a directory), its status, its last sign-in and its creation date. A warning appears when the account has no e-mail address: it will not receive any notification (see Keep your data fresh, Step 8).
  3. The actions. From left to right: Modifier, Réinitialiser le mot de passe (disabled for accounts managed by LDAP) and Supprimer.
  4. Tokens d'API. Credentials for pipelines, covered in Step 5.
  5. Créer un token. Opens the form shown here.

Step 2 — Know the built-in roles

Open Administration → Rôles.

The roles page: the five system roles with their number of permissions, and the detail of the Maintainer role

Figure 2 — The roles.

  1. A system role. The five built-in roles carry a SYSTÈME badge.
  2. Permissions. How many permissions the role holds.
  3. Détails / Masquer. Shows or hides the list of permissions of the role.
  4. The list. Here, the 10 permissions of Mainteneur.
  5. Nouveau rôle. Creates a custom role (Step 3).
  6. Rôles personnalisés. Empty until you create one.

Here is what each role holds:

Permission Administrateur Mainteneur Packager / CI-CD Auditeur Lecteur
Voir les CVE yes yes yes yes
Prendre des décisions CVE yes yes
Déposer des paquets yes yes yes
Importer des paquets yes yes yes
Supprimer des paquets yes yes
Promouvoir des paquets yes yes
Lire les logs d'audit yes yes yes
Voir l'inventaire machines yes yes yes
Déclencher des scans inventaire yes yes
Déployer des paquets sur les machines yes yes
Gérer les utilisateurs yes
Gérer les groupes yes
Gérer les rôles yes
Administrer les paramètres yes
Gérer les sauvegardes yes

In practice:

  • Administrateur is for the few people who run the platform. Only this role manages users, roles, groups, settings and backups.
  • Mainteneur runs the package life cycle and the fleet, and takes CVE decisions. It cannot manage accounts or change settings.
  • Packager / CI-CD can upload and import, nothing else. It is the role for a build pipeline.
  • Auditeur reads everything that matters for compliance (CVE, audit log, inventory) and changes nothing.
  • Lecteur can only see the CVE. It is the role for a service account, such as a machine that only needs to read the repository.

Step 3 — Create a user

Back on Utilisateurs, click Créer un utilisateur.

The create user form: username, password, role, full name and e-mail

Figure 3 — Creating a user.

  1. Nom d'utilisateur. Required.
  2. Mot de passe. Required, at least 8 characters (the password rules of Your first login apply). Choose a strong password and pass it on securely. An administrator can reset it later with the key icon (Figure 1).
  3. Rôle. Lecteur by default, so a new account starts with the least access. The text under the list reminds you what the selected role can do.
  4. Nom complet and Email. Optional, but fill in the e-mail: without it the person receives no alert.

Start from the smallest role

Give the role that matches today's job, not the one that might be convenient. Raising a role later takes one click, while a role that was too high can have done damage before anyone notices.

If your organisation has a directory, connect it rather than creating accounts by hand (see LDAP and SSO).


Step 4 — Create a custom role

When none of the five roles fits, for example "someone who can take CVE decisions but cannot deploy", build your own. Click Nouveau rôle on the Rôles page.

The new role form: technical identifier, label, description, colour and permissions grouped by category

Figure 4 — Creating a role.

  1. Identifiant technique. Required, short and without spaces (for example analyste-secu).
  2. Label affiché. The readable name.
  3. Description. What the role is for and who has it.
  4. Couleur. The colour of its badge.
  5. Permissions. The 15 permissions grouped by category: Sécurité CVE, Paquets, Administration, Audit and Inventaire. Sélectionner tout ticks a whole category.
  6. Créer. The counter above the list ("0 sélectionnées") shows how many permissions you have chosen.

Be careful with the Administration category

Gérer les rôles and Gérer les utilisateurs let their holder give themselves, or anyone else, any other permission. Treat them, and Administrer les paramètres, as administrator rights.


Step 5 — Create a group

A group makes a team addressable. Open Administration → Groupes.

The groups page: the list of groups with their description, number of members and default role

Figure 5 — The groups.

  1. A group. Its name and colour, and its description.
  2. Membres. The number of members.
  3. Actions. Membres manages who belongs to it, Éditer and Supprimer.
  4. Nouveau groupe. Opens the form below.

The new group form: name, description, colour and default role

Figure 6 — Creating a group.

  1. Nom. Required.
  2. Description. The role or scope of the team.
  3. Couleur. Its colour.
  4. Rôle par défaut. Aucun (pas d'héritage) by default. If you choose a role, the members whose current role is lower automatically inherit it.

The main use is to hand a CVE decision to a team rather than to one person: in Conformité parc, Escalader and the decision workflow can target a group. See Fix a vulnerability on your machines. A group can also be used as the audience of a scope rule (see The RBAC model).


Step 6 — Create an API token for a pipeline

A token lets a CI/CD pipeline authenticate without a password. On Utilisateurs, click Créer un token (Figure 1).

  1. Nom du token. Name it after what uses it, for example gitlab-ci. You will recognise it in the list and in the audit log.
  2. Rôle. uploader by default: it can upload and import and nothing else. Keep it that way for a publishing pipeline.
  3. Expire dans (jours). Pre-filled with 365: the token expires after a year. If you clear the field, the token never expires, so keep a duration unless a pipeline truly cannot rotate its token.

Click Créer. The token is shown only once: copy it immediately into your pipeline's secret store. If you lose it, delete it and create another.

One token per use, with the smallest role

A token carries the permissions of its role. A pipeline that only publishes needs uploader, not admin. Use one token for each pipeline so you can revoke one without breaking the others. Expired tokens stay in the list until you remove them with the cross on the right.

Using a token in a pipeline is covered in Set up CI/CD publishing.


Checklist

  • Keep the Administrateur role for the few people who run the platform, and turn on two-factor authentication for them (see Keep your data fresh, Step 1).
  • Give everyone else the smallest role that lets them do their job.
  • Fill in e-mail addresses so alerts reach people.
  • Prefer a directory (LDAP or SSO) to hand-made accounts when you have one.
  • Review the user list and the API tokens regularly, and delete what is no longer used.

What's next