Promote a package from one distribution to another¶
What you'll learn:
- What a distribution is, and how to read the Distributions page
- How to promote a package, and what the security policy does to the request
- What happens when a promotion is put on hold, and where to follow it
- How content filters keep unwanted packages out of a distribution
Time: ~20 minutes
Prerequisites: At least one package published in a distribution (see Deposit your first package in the interface), the security policy of Set your security policy before the first package, and a maintainer or administrator account.
What a distribution is¶
A distribution is one target operating system release: jammy (Ubuntu 22.04), noble (Ubuntu 24.04), bookworm (Debian 12), almalinux9, and so on. Each one is a separate repository: a machine is configured for one distribution and only sees the packages published in it.
A typical use of several distributions is staging then production. You publish and test a package in one distribution, then promote it to another once you trust it. Promotion is a copy: the package stays in the source distribution and appears in the destination.
Step 1 — Read the Distributions page¶
Open Linux → Distributions.
Figure 1 — The distributions.
- Format tabs. Tout, DEB, RPM, APK filter the list.
- Init dists. Initialises the repository trees of the distributions. Run it after a fresh install or a restore, not as a routine action.
- Promouvoir un paquet. Opens the promotion dialog (Step 3).
- A distribution. Its name, its codename, its support status (LTS, ESM, Stable), its format and the number of packages published in it. Here
jammyholds 988 packages andnoble51. - A family. Distributions are grouped by family: Debian/Ubuntu, RHEL-compatible, and so on.
Click a distribution to open its detail panel. The Paquets tab lists what is published in it, with a search box.
Step 2 — Understand what a promotion checks¶
Promoting is not a blind copy. Before anything is copied, Repod looks at the CVE scan of the version that is currently published in the source distribution, and applies the policy you set in the security chapter:
| Result | What Repod does |
|---|---|
| Approved | The package is copied at once |
| En attente (review) | Nothing is copied. A request is created, to be approved by a security officer |
| Bloquée (blocked) | Nothing is copied, and nothing can force it |
The result depends on two things you configured in Paramètres: the action chosen for each severity (block, review, warn, allow), and the EPSS thresholds (by default, 50% needs a review and 90% blocks). A warn severity lets the promotion through with a warning noted in the request.
Two rules of the destination also apply: its content filters, and any access restriction set on the distribution (see Restrict distribution and machine access).
Only an administrator can force a review
Through the API, an administrator can force a promotion that is waiting for review, by giving a justification, which is recorded. A blocked promotion can never be forced.
Step 3 — Promote a package¶
Click Promouvoir un paquet.
Figure 2 — The promotion dialog.
- Distribution source. Where the package is published now.
- Paquet. Every package of the source, with the version that will be promoted. Here
runc (1.3.3-0ubuntu1~22.04.3). - Distribution destination. Only distributions of the same format are offered: you cannot promote a
.debto an RPM distribution. - The summary.
runc → noble. - Promouvoir. Sends the request.
We chose a package on purpose: runc carries 3 High vulnerabilities, and on this instance both Critical and High are set to review. After the click, a message appears:
runc : approbation RSSI requise avant la promotion vers noble
Nothing was copied: noble still holds its 51 packages. If the package had been clean, the message would have said it was promoted, and the count of the destination would have gone up by one. If a blocking rule had matched, the message would have said the promotion is blocked.
Step 4 — Follow the request on the Promotions page¶
Open Sécurité → Promotions. The sidebar entry shows a counter when a request is waiting.
Figure 3 — A promotion waiting for review.
- The policy banner. The policy actually in force, read from Paramètres: what happens for each severity (here Critical and High both need a review) and the EPSS thresholds.
- The filters. Toutes, Effectuées, Déjà présent, En attente, Refusées, Bloquées. The page is the history of every promotion, with its outcome.
- The request. The package and version, the source and destination, who asked and when, the CVE counters, and the status En attente. Below it, the older request for the same package that was rejected earlier.
- The decision. An administrator sees Approuver and Rejeter under a pending request. Other roles see the request but cannot decide it.
- The reason. "Attention : 3 CVE(s) high" is what held the request, "Avertissements" are what was only noted.
Approving or rejecting¶
A security officer then decides, as an administrator. Click Approuver or Rejeter under the request, write the justification (or the reason for rejection: both are required and recorded), and confirm. Approval evaluates the policy again at that moment: a CVE that became blocked since the request refuses it.
Figure 4 — The rejection form.
- The label. "Motif du rejet (obligatoire)". For an approval it reads "Justification de l'approbation".
- The text box. Write the reason: an empty box is refused.
- Confirmer le rejet. Records the decision. Annuler closes the form without doing anything.
The same actions exist in the API, for scripts:
# Approve (the policy is evaluated again at that moment: a CVE that became blocked refuses it)
curl -s -X POST https://repod.example.com/api/v1/artifacts/runc/promote/$PENDING_ID/approve \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"justification": "Correctif non concerne, risque accepte pour le projet X"}'
# Reject (a reason is required)
curl -s -X POST https://repod.example.com/api/v1/artifacts/runc/promote/$PENDING_ID/reject \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"reason": "En attente du correctif amont"}'
The request identifier is shown by GET /artifacts/admin/pending-promotions.
For this chapter we rejected the request, so that the test left nothing behind.
Figure 5 — A rejected request.
- Refusée. The request is closed. Nothing was copied, the package stays in
jammyonly. - The reason. Kept with the request, for the audit.
Every promotion, held, rejected or done, is also written to the audit log (see Produce a NIS2 report and use the audit log): filter it with action=PROMOTE.
Step 5 — Keep unwanted packages out with content filters¶
A content filter is a rule on a distribution that accepts or refuses packages by name, whatever their CVE. Open a distribution, then its Filtres tab.
Figure 6 — The content filters.
- The tabs. Paquets and Filtres.
- Règles (0). The rules in force. With none, the distribution accepts every package: that is the default.
- The form. The action, allow or deny, and the kind of match (exact name, glob such as
lib*-dev, or regular expression). - The pattern. For example
telnet. - Ajouter. Adds the rule (administrator).
- Tester un paquet. Type a package name to see what the rules would decide, without changing anything.
How the rules combine: if there are allow rules, a package must match at least one; then any deny rule that matches refuses it, always. The filter is applied when a package is uploaded, imported or promoted into the distribution. It is not retroactive: adding a rule does not remove what is already there. The full reference is in Content filters.
Checklist¶
- Promote through the interface or the API, never by copying files: that is what applies the policy.
- Read the reason of every held request, and decide it within your SLA.
- Read the policy banner of the Promotions page: it shows what is really in force.
- Use deny filters for software you never want on a given distribution.
- Remember that a promotion copies: the package stays in the source until you remove it.
What's next¶
- Set your security policy before the first package: the severities and EPSS thresholds that decide promotions
- Fix a vulnerability on your machines: the decisions that follow a held package
- Restrict distribution and machine access: limit who can see or promote into a distribution
- Content filters: the complete rules and the sweep of existing content





