Skip to content

Third-party repository updates

Some applications reach hosts from the vendor’s own APT or RPM repository rather than from the distribution. Praxis finds the updates those repositories offer, shows where each one comes from, and, once an administrator has trusted a repository or an application mapping names the package, lets its updates into a patch plan only when the host’s evidence is current. Updates nobody has named are ordinary distribution updates and are not affected.

Open Update > Repository Updates.

What is shown for each candidate

Discovery adds no new scan. It reads the host’s package inventory and the available-updates listing that Scan already takes, and records the repository each candidate comes from.

ColumnMeaning
Installed and offeredThe installed revision, the origin recorded for it (or not recorded), and the exact revision the host’s repositories offer. The offered epoch and architecture are the candidate’s own and are never copied from the installed package.
Offered fromThe repository the package manager would install the candidate from, with credentials removed, and for APT the suite and component. For RPM the repository id the host reports.
ObservedWhen the listing that produced the candidate ran, and its state: current (verified and within 72 hours), stale (older), unverified (cached, partial or failed), or missing (no observation was recorded). The host’s latest listing attempt decides: when it failed or could not be verified, the candidates kept from an earlier scan show as unverified, because they are last-known data the latest check could not confirm.
Holds and pinsHeld when the package is held on the host. Pinned when an APT pin priority of 1000 or more applies to the candidate. A hold blocks selection. A pin is shown for the operator’s information.
SelectionFor a repository-path candidate, whether it can be selected for a patch plan and every reason it cannot. An ordinary update is labelled as such, with what the policy would say if its repository were trusted.

A candidate is shown as an update only. Praxis claims that it fixes a CVE only from vendor-authored evidence: the shared advisory intake’s Debian, Ubuntu and Red Hat sources and, for an application mapping with its own assessor, the vendor’s own CVE records: for GitLab corroborated by official release notices retrieved from the vendor (see Self-managed GitLab), and for the Grafana server from records Praxis retrieved from the CVE List, which needs evidence of the installation’s origin that no host currently has (see Grafana server). Every other vendor repository candidate carries no fix claim.

When origin evidence is unavailable, for example because the host could not answer the repository query, the repository is shown as Not reported. A candidate on the repository path is then held back as unknown; an ordinary update is not affected. A scan that cannot collect the evidence still succeeds.

Repository trust

Trust is configured only by an administrator, under Trusted repositories. Nothing observed on a host and no application mapping creates or enables a trusted repository.

  • APT: the repository URL, matched as a prefix on a path boundary, so a trust for https://repo.example.com/app covers https://repo.example.com/app/ubuntu but not https://repo.example.com/app-other. Credentials, query strings and fragments are never stored. An entry can be limited to named suites.
  • RPM: the repository id exactly as the package manager reports it. The id is a label supplied by the host’s repository configuration, so treat an RPM trust as an assertion about that id.

An entry can be disabled without deleting it, which holds its candidates back immediately. Repositories seen on hosts lists what the fleet’s candidates actually come from, with how many hosts and packages use each. A mapping can suggest a repository there, and an administrator then chooses whether to trust it.

Changes to trusted repositories are audited (see the audit schema).

Which updates the repository policy governs

An update is on the repository path when an administrator’s trusted repository entry (enabled or not) names any repository that offers it, or an application mapping lists its package. Praxis keeps every repository and channel that offers the exact version, so which one APT happens to list first does not matter. Every other update is ordinary and behaves as it always did, so a distribution update from a repository nobody configured needs no opt-in and is never held back by the checks below. Trusting a repository is what opts its updates in.

A repository candidate is held back unless all of these hold:

  • It is a real upgrade under the package manager’s own ordering, epochs and packaging revisions included. A downgrade, the same revision and an unreadable version are refused, whether or not a mapping lists the package. An RPM epoch must be recorded, and an unrecorded epoch is never assumed to be zero.
  • The package is not held.
  • Its repository is known and covered by an enabled trusted repository, and the exact version is not offered by more than one repository or channel (APT).
  • It comes from a verified listing no more than 72 hours old, and the host’s latest listing did not fail.
  • The installed revision’s origin is acceptable (below).
  • If an application mapping lists the package, the mapping qualifies the candidate.

Evidence that could not be established in full

The scan keeps every distinct repository and channel instance that offers the exact version (one instance listed several times counts once), up to a cap, and records whether that is the whole set. When it is not, because more instances offer the version than are kept, a source line could not be read, the host’s answer was clipped, or the package fell beyond the lookup cap, the candidate is marked incomplete. An incomplete candidate is never an ordinary update and is never eligible, whether trust is configured before or after the scan: it stays on the repository path, held back as incomplete_origin_evidence until a new scan establishes the full set. A version that the host’s answer names but that has no readable source (an empty or unreadable list) is incomplete, with no origin recorded, and so is an answer that names the package without the offered version. A command that exits nonzero, a warning status included, never establishes completeness: when it printed anything, every package in that batch is incomplete until a clean rescan. What stays ordinary, because nothing invalid was observed, is an answer that simply has no entry for a package and a lookup that fails outright or prints nothing; those collect no origin, as before this feature.

A security finding that an operator imported by hand keeps its established rule, which selects the update when the host’s inventory records a candidate, for as long as it was originally and is currently not named by a trusted repository or mapping.

The approved path is never downgraded

When a plan is created, each selected package records which path selected it (repository, ordinary or operator_import) and the complete approved identities: every architecture with its installed and offered revision, epoch and origin. Dispatch reads the recorded path, not today’s trust:

  • A repository row is always checked strictly, so withdrawing or disabling trust, a hold, or a failed rescan after approval stops it. That includes a manual import that was approved while a trusted repository named its package.
  • Only a row that was a legacy manual import when approved, and still is, keeps that exception.
  • An ordinary or legacy row that a trusted repository or mapping names by the time it is dispatched is checked strictly against the identities that were approved.

Installed origin

Where the installed revision came from is kept apart from where the candidate is offered.

  • Known only when the package manager recorded it, for this exact identity. DNF keeps the repository an installed package came from, and Praxis stores that (dnf_from_repo) bound to the epoch, version, release and architecture DNF reported. The record is dropped when the package is upgraded, and a failed, partial or omitted lookup leaves the origin unknown rather than reusing an earlier answer. APT keeps no such record, so an APT package’s installed origin is always unknown here. Praxis never infers it from the installed version also appearing in a repository: a package rebuilt locally or downloaded by hand under a version string a repository lists looks exactly the same, so a repository listing is an availability hint, never evidence of where the installed package came from. The one other source of acquisition evidence is a governed installation by Praxis itself, judged only by the GitLab and Grafana assessors (see Verification); it never relaxes this gate. An application assessor can be stricter than the gate: for a Grafana server neither a recorded repository id nor Accept origin change is enough, and a server whose installed package is not positively identified is never planned as a package update. Identifying it does not answer this gate either.
  • Unknown or different needs review. A repository candidate whose installed origin is unknown, or recorded as a different repository from the one now offering the update, is held back until an administrator has reviewed the trusted repository and set Accept origin change on it. That setting is per trusted repository, off by default, and audited. A candidate whose installed origin is recorded as the same repository passes without it.
  • Checked again at dispatch. For RPM the host is asked for DNF’s current record, and the update stops if it differs from the one that was reviewed.

Application mappings

An application mapping describes one product so the same screens work for any of them. It names the editions and package identities, the repositories that publish it, how the upstream version is read from a package version, the supported upstream version range, the installation types it covers, upgrade constraints, fix sources and the evidence for the running version. The pilots are GitLab (Community and Enterprise editions) and Grafana (Enterprise and OSS).

Four capabilities are reported separately because a product can support some and not others:

CapabilityWhat it answers
DetectionIs the product installed, which edition, and at what upstream version.
Guided upgradeWhen a candidate cannot be applied in one step, which steps the operator must take.
Package updateMay this candidate be applied as a package update in a patch plan.
VerificationCan the result be confirmed afterwards, and from which evidence.

A capability is supported, partial or unsupported, and a partial or unsupported one states why. Verification is on request and read-only. A mapping with a product assessor confirms the exact installed package revision and what the running service reports (see Self-managed GitLab and Grafana server); for any other mapping it compares the installed package version after the update. Running-version evidence that the core does not collect, such as a version manifest or a binary’s reported version, is declared in the mapping for operators and is not read.

A candidate for a mapped package is qualified only when it passes two separate checks.

  1. Native ordering. The offered revision must be newer than the installed one under the package manager’s own version rules, epochs and packaging revisions included. A downgrade, the same revision, an invalid version and an RPM whose epoch is not recorded are refused here. A new packaging revision of the same upstream release (for example -ce.0 to -ce.1) is an update. A change of epoch is never applied as a package update.
  2. Upstream gates. These read only the upstream version: the range the mapping covers, the required upgrade stops with their minimum patch levels, whether leaving a release series is a guided upgrade, and major upgrades. A patch or packaging update inside one release series passes. A candidate that skips a stop, or that leaves a stop series while the installed release is below the stop’s required patch, names the stop to reach first.

The GitLab mapping follows the vendor’s published upgrade path: stops at 17.1 (patch 8, only needed for some instances, treated as required), 17.3 (patch 7), 17.5 (patch 5), 17.8 (patch 7), 17.11 (patch 7), and from 18 on at x.2, x.5, x.8 and x.11, where the vendor publishes no patch level and asks for the latest patch of the series. The vendor also requires background migrations to finish before the next step, and Praxis cannot observe them, so moving to another release series is a guided upgrade only. Package updates for GitLab are therefore qualified inside a release series. The Grafana mapping does the same: a patch release, security build or packaging revision of the installed series is qualified, and any other series is a guided upgrade.

Mapping rules live in the mapping files, not in the interface. To add or change one, follow the application mapping onboarding procedure in the contributor documentation of the Praxis repository.

Sources of fix and upgrade information

Mappings reference vendor documentation for operators. Praxis does not fetch, store or redistribute those pages. The one exception is the GitLab patch release feed, which Praxis reads only when an administrator or maintainer loads it, and keeps as structured facts (see Official release notices).

ProductReferencePublisherCadence
GitLabUpgrade paths and patch release announcementsGitLab Inc.Regular patch releases, with out-of-band releases for critical fixes
GrafanaSecurity advisories, the APT and RPM installation instructions and the upgrade guideGrafana LabsWhen a vulnerability is fixed, with no fixed schedule

Each reference is published by the vendor for public reading under the site’s own terms. Check those terms before copying any of the content elsewhere.

Self-managed GitLab

The GitLab mapping covers the official gitlab-ce and gitlab-ee Linux packages (APT and RPM). gitlab-runner is a separate component with its own releases, so it is listed but never produces a server finding. Container, Helm and source installations leave no package behind and are reported as not observed, never as absent.

What a host shows

Each GitLab server reports its installed, offered and fixed versions, whether a vendor fix is offered, the route an update takes, the host checks that apply, and the result of the last verification. Open the application card under Update > Repository Updates, or read the same data from the API below.

Provenance is judged for the installed package and for the offer, and both must be the official package of the edition before a vendor result is confirmed.

  • The installed package is official when the origin is known for exactly this revision and is the edition’s official repository, and its release carries the edition marker (-ce.N or -ee.N). On RPM that is DNF’s own record. APT records none, so an APT package is official only through a governed installation (see Verification): the installed revision is the one a governed Praxis run installed from the official repository, confirmed live by an operator-run check. A missing record, or one made for another revision, is unknown; any other repository, or a missing marker, is unofficial. Either leaves the result insufficient evidence, even when nothing is offered. A package that was installed or replaced any other way, including a package built locally under the same version string, stays unknown and no fix is claimed for it however the notices read; its candidate is still shown as an update.
  • The offer is official when its release carries the same marker and every repository that offers it is that edition’s official repository. A repository trust entry is a separate gate and is not provenance.

Vendor fix evidence has two parts that must agree.

  1. The vendor’s own CVE records, already held by the advisory enrichment (see advisory feeds). The editions a record affects come from the vendor’s wording (“GitLab CE/EE”, “GitLab EE”); a record that does not say is never assumed to apply to an edition. The offered release must be outside every affected range of every record for the installed edition, including a later range in the same series.
  2. The official release notice (below). A fix is claimed only when a held notice announces the offered version for the edition and every in-scope record is matched by a notice entry that names the same editions and puts the installed and the offered release on the same side of its ranges.

The states are fix offered (claimed only with both parts and official provenance), repository lag (the vendor fixed the branch in a release the repository does not offer, or the offer is not newer than the installed release or is below the fix), no vendor finding, no fix for this branch, and insufficient evidence. A missing, unreadable or conflicting piece of evidence is always insufficient evidence, never a clean answer.

Official release notices

GitLab announces each patch release in a public feed. Praxis reads it into structured facts per notice: the versions and editions announced, and for each security fix the CVE, severity, the editions the vendor names and the affected ranges. It keeps the notice link, each fix’s heading and the one sentence that states what is affected, not the rest of the post.

  • Retrieved or imported. Only a notice that Praxis itself retrieved from the vendor’s official address counts as the publisher’s statement. An administrator or maintainer starts that retrieval once; it uses the guarded fetcher (validated address, no redirects, bounded size) and refuses in advisory offline mode. A document an operator uploads is unsigned and could say anything, so it is stored and counted as an unverified import, never used as evidence, and it can neither create nor replace a retrieved notice. A later retrieval of the same notice replaces an import. Nothing runs on a schedule, so the report shows how many retrieved notices are held, the newest publication date, when they were last loaded and how many unverified imports sit unused. With no retrieved notice, no fix is claimed.
  • Dates are required. An entry with a missing or invalid publication or revision date, or one dated more than a day in the future, is refused and reported. A stored notice is replaced only by a reading not dated before it, so a later load cannot roll it back.
  • Loads are serialized. Concurrent loads queue on a single writer, so racing loads of one notice store it once and the newest revision wins.
  • Read narrowly. The edition and ranges are prose, so a small grammar reads them (GitLab CE/EE, GitLab EE/CE, GitLab EE, GitLab CE; from X prior to Y, before). Anything it does not fully account for, such as a statement that names no edition, a range written another way (“up to 17.0.1”), or several CVEs in one section, is stored as ambiguous. An ambiguous statement neither confirms nor refutes a record. It does not hold results for a CVE whose vendor record puts neither the installed release, the offered release nor their series in an affected range and whose notice names no release in that series, since such a statement concerns other branches; it does when the record covers the host’s branch.
  • Checked at every boundary. A record and its notice must name the same editions and agree on whether each range boundary either states is affected: each fixed release, the release just below it, each range start, and the installed and offered releases. A record that fixes 17.4 in 17.4.2 against a notice that says 17.4.3 disagrees, even when both put 17.4.1 inside and 17.4.4 outside. A disagreement over a CVE that affects the host holds the result at insufficient evidence and the fixed version is withheld, since the two sources cannot both be right.
  • Notice-only CVEs. A CVE a retrieved notice names for the host’s edition with no imported record holds the result at insufficient evidence when its ranges include the installed or offered release. When its ranges cannot be read, it does so whenever its statement mentions, or its notice announces, a release in the installed or offered series. The 17.0.1 notice states CVE-2024-2874 as “all versions up to 16.10.6, versions 16.11 up to 16.11.3, and 17.0 up to 17.0.1”, so a host moving from 17.0.0 to 17.0.1 is not corroborated until a record for it is imported.

For example, the 17.4.2 notice states CVE-2024-9164 for GitLab EE only and CVE-2024-8970 for GitLab CE/EE. A Community Edition host moving from 17.4.1 to 17.4.2 is judged on CVE-2024-8970; an Enterprise Edition host on both. A notice that names a CVE for 17.4.1 with no edition stated, and no imported record, holds either host at insufficient evidence until the record is imported.

Route, prerequisites and guided upgrades

  • A patch or packaging update inside the installed release series, on a host declared single-node, is a pinned package update. Anything else is a guided upgrade: the ordered path lists every required stop the installed release has not reached and ends at the release the repository offers (installed 17.5.1 to offered 17.11.7 is 17.5.5, 17.8.7, 17.11.7). A stop above the offer is named as not yet offered, never as a step.
  • The installation shape is declared with the host tags gitlab-single-node or gitlab-multi-node, because Praxis sees packages, not roles. Without the single-node tag, or with both, the update is guided.
  • Immediately before an install the host is asked, read-only, whether every role runs locally, services are running, free space is above the policy floor on each data path, the readiness endpoint answers 200, there are no unfinished batched background migrations, and recent nonempty backup and configuration archives exist in the vendor’s naming and default locations. Missing or ambiguous evidence refuses the install.

Verification

Check running version and health on a host asks it, read-only, to prove four things. The result is recorded and shown, and an earlier result is pending again once a newer deployment arrives. For every assessed application a result belongs to one installation: the host, the installed server package, its architecture and exact revision, and the inventory record of that package. Changing edition, even at the same version, or removing the package and installing it again makes the state pending until a new check, and a host listing several server packages of the application is pending until a scan shows one.

  1. The exact package revision. The package manager reports the installed revision, epoch included, and the package state must be installed (dpkg state installed, not removed or half-configured). It must equal the release the host should now run: a deployed 17.5.4-ce.1 is not confirmed by a host that still has 17.5.4-ce.0, and 1:17.5.4-ce.0 is not 17.5.4-ce.0. The epoch is preserved when it is not zero; an absent epoch and zero are the same.
  2. Or fresh, exact inventory. When the package manager does not answer, the inventory may stand in only if its audited revision equals the expected one exactly, the host’s packages were last observed (last_audited) strictly after the latest deployment finished, and that latest observation is not in the future and is no older than 24 hours. The 24 hours run from the most recent scan, not from the deployment or from an earlier verification, so a fresh scan extends it. The inventory never replaces the checks below.
  3. The running instance. The local web process reports its own version and code revision, and both must equal the installed package and its code revision.
  4. Health. Every server role is running, the services that must restart have started after the code arrived, and the local readiness endpoint answers 200.

Anything unknown leaves the result pending, a failed check makes it failed, and only all four make it verified. Verification is triggered by an operator; Praxis does not poll hosts for it.

Installed origin of an APT package. A verified result that rested on the package manager’s live answer also records where the installed package came from, but only when a governed run of Praxis put it there. The record binds to the host, package, architecture, edition and exact epoch:version, and requires all of this: the newest governed run of the package on the host succeeded; its plan approved that exact revision on the strict repository path, offered by exactly one fully known repository that is the edition’s official repository (the dispatch checked that against the host immediately before installing, pinned to the exact version); the installed epoch, version and architecture are exactly the approved ones; and the latest inventory observation is strictly after the run finished, not in the future and no older than 24 hours (the limit is on that latest observation, so every scan renews it; it is not a limit on the time since the installation or the verification). A result that rested only on the inventory records nothing. The record is a separate evidence kind (governed_install), not the package manager’s history.

Every assessment checks it again, and it stops holding when the newest run of the package did not succeed, when a package operation was recorded for it after the run, when the installed revision or architecture is no longer the approved one, or when the latest inventory observation is older than the limit. A scan that sees a different revision clears it, and a later verification that cannot establish it clears it too. A departure is also withdrawn for good. When a scan, taken after the run finished, lists the package’s architecture at another revision or does not list the package at all, Praxis records that against the run itself, not against the package row. The record survives the row being deleted and added again, and a later scan that finds the exact approved revision again, even with a passing live check, does not restore it: the verification reports that the run no longer vouches for what is installed. Only a newer successful governed installation of the package, which is a different run and is confirmed afresh by its own scan and live check, establishes the origin again. Absence counts only when the listing is complete: a scan whose package listing failed, exited nonzero, carried dpkg-query diagnostics, was clipped, did not run to its end or listed no packages at all is reported as a failed scan, keeps the stored inventory and withdraws nothing. A package dpkg lists as installed counts as installed whatever was selected for it (a hold, for example), and a held package is recorded as held. Only server packages of an application that keeps this record (GitLab and Grafana), installed by an eligible governed run, are ever withdrawn, so a governed update of an unrelated package is never affected. A scan taken before or at the moment the run finished never withdraws anything.

The check cannot see a package replaced out of band under the identical version string, which is why it needs a recent observation and a live confirmation, and why hosts upgraded another way stay unconfirmed until the next governed upgrade.

Endpoints and permissions

Paths are under /third-party-updates. Reading is limited to the caller’s fleet scope; changing needs the role shown.

RequestWhoWhat it does
GET /applications/{mapping_id}/hostsAny signed-in user, hosts in their fleet scopePer-host versions, assessment, verification state and can_verify, excluded components, coverage, and the release notice status
GET /systems/{id}/applicationsAccess to the hostThe same for one host
POST /systems/{id}/applications/{mapping_id}/verifyAdministrator or maintainer with access to the hostRuns the read-only verification and records it
GET /release-noticesAny signed-in userRetrieved notices held, newest publication, last loaded, unverified imports
POST /release-notices/gitlab/importAdministrator or maintainerStores a patch release feed (Atom) from the request body, up to 16 MiB, with no network access, as an unverified import that is never used as evidence
POST /release-notices/gitlab/fetchAdministrator or maintainerRetrieves the official feed and stores it as the publisher’s notices

can_verify is true only for a caller the verify request accepts, so the action is offered exactly to those who can use it. Verifications and notice loads are recorded in the audit trail (see the audit schema).

Limits of the GitLab support

  • An APT GitLab host is confirmed only after a governed Praxis upgrade and an operator-run verification; until then it is shown as unconfirmed and no fix is claimed for it. A package replaced out of band under the identical version string cannot be detected. RPM hosts are confirmed from DNF’s record.
  • The release feed is not signed, so only a retrieval from the official address is trusted; a deployment that can only import a file gets no fix claims. Notices are prose read by a narrow grammar and loaded by an operator, so they can be out of date or ambiguous, and then hold results at insufficient evidence rather than confirming a fix.
  • Verification needs the host’s local metrics and readiness endpoints, runs only when requested, and cannot see a multi-node installation’s other roles.
  • Backups outside the vendor’s default locations are not seen, and the free space floor is a Praxis policy value, not a vendor figure.
  • The disposable installation test covers one release pair of the Community Edition on Debian, not the RPM packages or Enterprise Edition.

Grafana server

The Grafana mapping covers the server packages grafana (OSS) and grafana-enterprise from the vendor’s stable repositories: APT https://apt.grafana.com, suite stable, component main, and the RPM repository with id grafana pointing at https://rpm.grafana.com. The two editions are judged separately. Alloy (alloy) and the Grafana Agent (grafana-agent, grafana-agent-flow) are released apart from the server, so they are listed and never produce a server finding. Plugins are not the server either: they are checked for compatibility before an update and are never findings. Container, tarball and Helm installations leave no package behind and are reported as not observed.

Hosts, prerequisites and results appear in the same places and through the same endpoints and permissions as for GitLab.

Preparing a host

  1. Trust the repository under Trusted repositories. APT records no installed origin, so for APT also review the repository and set Accept origin change on it (see Installed origin). Pre-release, preview and beta builds, and anything offered from a channel other than the stable one, are never selected as a package update, whatever is trusted.

  2. Hold the repository to the installed series. The vendor repositories carry every series, so without a restriction the host offers the newest release, which is a guided upgrade, and never the security build of the series it runs.

    On APT, create /etc/apt/preferences.d/grafana-series:

    Package: grafana grafana-enterprise
    Pin: version 11.6.*
    Pin-Priority: 900

    On RPM, add this line to the [grafana] section of the repository file. It hides every other package of that repository, so list any other you use from it, such as alloy:

    includepkgs=grafana-11.6.* grafana-enterprise-11.6.*

    Replace 11.6 with the installed series, and move the restriction deliberately when you move series. Scan the host afterwards.

    The vendor’s RPM repository signs its metadata (repo_gpgcheck=1). When the host credential is not root, DNF keeps a separate cache for that user and asks it to accept the signing key before it reads the repository. A scan does not answer that question and shows no update from the repository, so accept the key once as the credential’s user, after comparing the fingerprint with the one below:

    Terminal window
    sudo -u <credential user> dnf makecache --repo grafana
  3. Declare the installation shape with the host tag grafana-single-instance or grafana-clustered. Praxis sees packages, not how many instances share a database. Without the single-instance tag, or with both tags, every update is a guided upgrade.

  4. Take backups of the installed release before the update window, as root on the host. They need the sqlite3 command and must be less than 24 hours old when the host is checked and again when the update is dispatched. The server must really use /var/lib/grafana/grafana.db: if a [database] path setting or GF_DATABASE_PATH names another file, a copy of this one backs up nothing, and the update is guided.

    Terminal window
    ts=$(date +%s); v=$(cat /usr/share/grafana/VERSION)
    install -d -m 700 /var/backups/grafana
    sqlite3 /var/lib/grafana/grafana.db ".backup /var/backups/grafana/grafana_db_${ts}_${v}.db"
    tar -czf "/var/backups/grafana/grafana_config_${ts}.tar.gz" -C /etc grafana

    Both files hold secrets. Keep a copy off the host, together with the service environment file (/etc/default/grafana-server or /etc/sysconfig/grafana-server) if you changed it, and test that you can restore them. Praxis checks that the files exist, are recent, carry the installed release in the database copy’s name and look like what they claim to be; it does not restore them or prove that a restore works.

  5. Let the backend reach the vendor. The host check and the dispatch fetch the vendor’s repository metadata and package from https://apt.grafana.com or https://rpm.grafana.com (see Identifying the installed package). Without that access every update stays a guided upgrade.

  6. Load vendor records. Enable the CVE record source under Update > Patch Advisories > Sources (see CVE records). Only records the vendor published as its own CVE numbering authority are read.

  7. Check the host before planning. On the application list, Check this host before planning runs the read-only checks and records the result. A passing check of the offer is required for a plan.

Identifying the installed package

APT records nothing about where an installed package came from. DNF records the id of a repository, but not where that id pointed when the package was installed. Neither the same version appearing in the vendor repository today nor a repository pointing at the vendor today says what is on the host. Praxis therefore compares the installed files with the vendor’s own package.

  1. The artifact is authenticated. For the installed package name (so for the exact edition), native revision and architecture, the backend reads the vendor’s signed metadata: on APT the signed InRelease file of suite stable, the package index it pins by digest and the .deb that index pins; on RPM repomd.xml with its detached signature, the primary package list and the .rpm. Signatures must be good signatures of the vendor key shipped with the mapping, primary fingerprint B53A E77B ADB6 30A6 8304 6005 963F A277 1045 8545; an expired or revoked key is refused. Every link is checked by digest before it is read, and the downloaded package must itself declare the expected identity. Downloads use HTTPS to a validated public address without redirects.
  2. The host lists its files. A read-only command, run with the host’s own find and sha256sum, lists everything under /usr/share/grafana, then digests every regular file there, and the other files the vendor’s package ships.
  3. They are compared. The list and the digests must name exactly the same regular files. Every file the artifact ships must be present with the same content or link target, and /usr/share/grafana must hold nothing the artifact does not put there. Files the vendor’s package declares as configuration (the environment file under /etc/default or /etc/sysconfig, the service unit and, on APT, the init script) are reported when they differ and do not decide. Documentation the host chose not to install may be absent. Data, plugins under /var/lib/grafana and /etc/grafana are not part of this comparison; the other checks cover the database, plugins and the running service.

A match establishes the artifact identity: the installed program is the vendor’s release of this edition, revision and architecture. It does not say how, when or from where the files arrived, and Praxis reports that acquisition history separately, as a governed installation by Praxis, a repository id only, or not recorded. It also relies on the host’s tools answering truthfully, so it is not attestation against a host whose root account is hostile.

Any other outcome leaves the installed package unconfirmed and the update a guided upgrade: a missing, changed or added file; a revision or architecture the vendor does not publish; metadata naming different files as that revision; a signature, digest or package that does not check out; the vendor not reachable; or a listing that is cut off, whose commands failed, or whose list and digests do not name the same regular files, as when something changes the directory while it is read. Such an inconsistent listing is neither a match nor a difference: it cannot plan or dispatch an update, and a fresh check is needed. The result says which. A revision recorded from another repository is unofficial and blocked even when its files match. To repair a modified installation, review what changed, reinstall the same revision from the vendor repository and run the check again.

The first check of a revision downloads the whole package, about 175 MB, into temporary space on the backend and verifies it, which can take a minute or more on a slow link. The package is then removed. Only the list of its files is kept, in memory, for 24 hours, so a restarted backend fetches it again.

What a host shows

Provenance is judged for the installed package and for the offer. Both must be a stable release identifier of the vendor’s packages (APT 11.6.14 or the security build 11.6.14-04; RPM 11.6.14-1 or 11.6.14^security_04-1) from the vendor’s stable repository. A pre-release, an installation from a local file or another repository is unofficial and is blocked.

  • Installed package. It is official when its files match the vendor’s artifact, as the host check records (see Identifying the installed package), or, on APT, when Praxis holds the record of a governed installation of exactly this revision. Otherwise it is unknown: findings are listed, the result stays insufficient evidence, and the update is a guided upgrade. Accept origin change on the repository does not change this. Files found to differ leave it unknown whatever else is recorded. A revision recorded from another repository, or whose RPM repository resolves it elsewhere today, is unofficial.
  • Offer. The host check must show the package manager confirming exactly the pinned offer. An answer that names several repositories, is cut off, names no repository for a row, has a row for that architecture and version whose epoch cannot be read, or does not arrive leaves the offer unconfirmed, whatever else the host shows. For RPM the check must also show that the grafana repository resolves both the exact installed revision and the exact offered one to https://rpm.grafana.com/. A scan does not collect these answers, so evidence recorded without a check never counts.

Vendor evidence comes from the structured CVE records, read per edition and per series, security builds included.

  • A record that names only Enterprise never produces an OSS finding, and the reverse. A record that names the product as plain “Grafana” is read as the open source edition; for Enterprise it is unsettled.
  • The vendor’s records are not uniform. Where overlapping ranges, an unreadable change marker, a range that starts at a security build, a single named version or a missing default status leave a release undecided, Praxis reports it as unsettled and claims nothing for that host.
  • A common fixed release is shown only when every stored record that applies to the edition affirmatively finds it clear. When one record cannot settle it, no common fixed release is shown; the fix each other record names stays listed with that record.
  • Fix offered is claimed only when the offered release is in the installed series, at or above that common fix, outside every affected range of every stored record for the edition, nothing is unsettled, every finding rests on a record retrieved from the CVE List, and the installed package and the offer are both confirmed as above. Another requirement of the host check that fails, a stale backup for example, does not change where the packages come from and so does not withdraw a claim. A record uploaded with Import from file still produces findings but never supports a claim.
  • Repository lag means the vendor fixed the series in a release the host is not offered, which includes no offer at all. While the installed package is not confirmed the state stays insufficient evidence and the lag is given in the reason.
  • No vendor finding means no stored record places the release in an affected range. It is only as complete as the records held. An online refresh covers roughly the last month of changes, so older records arrive only by upload, and a record that was never loaded cannot be seen.

Unlike GitLab, no second vendor publication corroborates the records.

Route and checks before an install

A pinned package update through an ordinary patch plan, with the usual approval and windows, needs all of: a patch release, security build or packaging revision of the installed series, a declared single instance, a confirmed installed package, an official offer and a passing host check of exactly that offer. An unofficial offer or installation, or too little free space, blocks the update. Everything else, including any check that fails or cannot be established, is a guided upgrade, shown with its reasons, the steps to follow and the vendor’s upgrade guide.

Check this host before planning asks the host, read-only, to confirm the following, and shows each result. The record belongs to the host, the installed package and its inventory record, edition, architecture, revision and recorded origin, and the offered revision, architecture and repository, and the newest one decides. It stops applying when any of those changes. A passing check also stops counting after a deployment or after 24 hours (a Praxis policy value).

The same checks, the file comparison included, run again on the host immediately before the install, where a failure installs nothing. Such a refusal at dispatch is recorded as a host check of its own, in a separate transaction, with every requirement’s result. Reports and plan validation use it, and a check that was already running when the refusal happened does not replace it. A check that did not pass, from either source, stands until a fresh check passes; after 24 hours or a deployment what it had found in order no longer counts as evidence. Refusals found from stored inventory alone, before the host is asked, are not recorded this way, since reports already show them.

CheckWhat must hold
Installed filesThey are the files of the authenticated official artifact (see above).
Package offerThe package manager reports the reviewed installed revision and offers exactly the pinned one from the reviewed, trusted repository.
Servicegrafana-server is active, runs the packaged binary and alone listens on port 3000.
Healthhttp://127.0.0.1:3000/api/health answers 200 with a healthy database and reports the installed release. The host needs curl.
Database and layoutEmbedded SQLite, the packaged configuration file and the packaged data and plugin directories, according to the configuration file, the running process’s environment and its command line. The configured database file, from [database] path or GF_DATABASE_PATH, must be /var/lib/grafana/grafana.db, and the running process must hold that file, and no other SQLite file, open. Another file, an external database, a connection string, an override or high availability alerting settings fail. No setting’s secret value is printed.
PluginsEvery plugin directory in /var/lib/grafana/plugins has a readable descriptor whose grafanaDependency covers the offered release. A plugin that does not, or that declares nothing readable, fails. A -0 suffix is read as the lowest pre-release, so <=11.6.14-0 does not cover 11.6.14; other pre-release forms are unreadable. Plugins shipped inside the package are not checked.
BackupsThe database copy and configuration archive above.
Free spaceAt least 2 GiB on /usr/share/grafana and on /var/lib/grafana. This floor is a Praxis policy value.
Repository location (RPM)The grafana repository resolves the exact installed revision and the exact offered one to https://rpm.grafana.com/, and the lookup itself succeeds. An address printed by a failed lookup does not count in favour.

A server on another port, behind TLS only, with the version hidden from the health answer, with moved directories or database, or with more than 200 plugin directories does not pass these checks.

RequestWhoWhat it does
POST /third-party-updates/systems/{id}/applications/grafana/host-checkAdministrator or maintainer with access to the hostRuns the checks above and records the result. Answers 409 when nothing is offered or the host lists no single server package. An optional operation_id makes the request one whose outcome can be read afterwards
GET /third-party-updates/systems/{id}/applications/grafana/host-check/operationAdministrator or maintainer with access to the hostWhether the host check named by operation_id, or without one any named check of this host and application, is running, and how it ended
GET /patch/update-executions/{id}/dispatch-next/operationAdministrator or maintainer with scope over the executionThe same for a dispatch of the execution’s next batch

Checks and dispatches that outlast the page’s request

A host check or a dispatch can run longer than the 30 seconds the web interface’s proxy waits for one request: the first check of a revision downloads the vendor’s package, and hosts can be slow. The work carries on in the backend. The pages send such a request once, under an operation id of their own, and when it does not come back successfully they ask the backend what became of that id:

  • Running. The page says so, holds the button and asks again every few seconds. An execution can still be paused or canceled meanwhile.
  • Finished. The page shows the recorded answer, success or refusal. A host refused at dispatch shows the reason in the execution’s host list.
  • Unknown, after a refusal. There is no record, and the refusal the page received is shown.
  • Unknown, after a lost answer. The request ended in a proxy’s server error or no answer at all, and the backend has no record of it. It may never have arrived, or the backend may have restarted after starting the work. The page says that the outcome could not be confirmed, names what it saw, reads the host’s check record or the execution again, and does not send the request again.

A page opened or reloaded while such a request runs follows it too. A record that disappears while it is followed, or a backend that cannot be read for about a minute, also ends as an outcome that could not be confirmed. After any unconfirmed outcome, read the host’s check record, the execution and the audit trail before running anything again.

API clients can do the same by adding operation_id (16 to 64 letters, digits or hyphens) to either request, and this applies to every execution dispatch, not only to application updates. Only one named request runs at a time for a host check (one host and application) or for an execution: a second one, or a reused id, is refused with 409 before it does anything. Requests without an id behave as before and cannot be followed. The records live in the memory of the backend process for up to an hour after they finish (at most 500), hold a status and a short result without host output, and do not replace the check, execution and audit records.

Verifying the result

Check running version and health reports verified only when the package manager holds the exact expected revision, the installed version file names that release, the packaged binary runs as the service and owns the listener, it started after the new files arrived, and the health endpoint reports that release with a healthy database. A package that is installed while the service is stopped is failed, not verified. A check that cannot be made leaves the result pending. If the package did not restart the service, restart it and run the check again. It works after a guided upgrade too: scan the host, then run it. Verifying a hand upgrade establishes no origin.

On APT, a verified result of a governed installation is recorded, under the same conditions and with the same withdrawal rules as described for GitLab, once a scan taken after the run shows the approved revision. That record confirms the installed package until it is withdrawn. RPM verification records no origin evidence: after an upgrade the new revision is confirmed by the file comparison of the next host check, which runs when an update is pending, and until then it is shown as unconfirmed.

Limits of the Grafana support

  • The file comparison identifies what is installed. It cannot show how the package arrived, does not cover data, plugins or /etc/grafana, does not judge the vendor’s declared configuration files (the service unit among them, whose effect the service check observes instead), and trusts the host’s own tools.
  • Claims and planned updates need the backend to reach the vendor’s repositories. A deployment without that access gets findings, guided steps and verification.
  • The vendor’s signing key ships with the Grafana mapping and its current signing subkey expires in August 2027. A rotated or expired key needs a Praxis release with the new key; until then checks answer unconfirmed.
  • Following a long check or dispatch depends on the one backend process that runs it: after a restart the outcome is reported as unconfirmed. Rollback dispatch, the running version check and inventory scans are not followed this way.
  • An RPM server upgraded by Praxis is unconfirmed again until a further update is pending and checked.
  • The disposable installation tests cover one update on each package family for both editions, 11.6.13 and 11.6.14 to the fourth security build of 11.6.14, on Debian 12 and AlmaLinux 9, single instance with SQLite and default paths, with a modified file, another database file and an external database setting refused. Other series, architectures, distributions, the agent transport and clustered installations were not exercised.
  • A database copy is recognised by its name, age and file header. Praxis cannot tell from the copy which database it was taken from, which is why only the packaged database file qualifies.
  • Fix claims depend on records retrieved from the CVE List. A deployment that can only upload records gets findings but no fix claims.
  • Some vendor records as published cannot be settled for current releases. CVE-2026-21720, for example, lists overlapping ranges that leave 11.6.14 and its security builds undecided, so while that record is stored no common fixed release or fix claim is shown for such a host, although each other record’s finding, an offer still affected and the update itself are still shown.
  • Plugin compatibility is what each plugin declares about itself, not a test of the plugin.
  • A package replaced under the identical version string between two scans cannot be detected on APT.

Selecting a candidate for a patch plan

Plans choose candidates through the existing policy, approval and window paths. When a plan is created, each selected package records the exact offered version and the evidence above. A candidate that is held, a downgrade, from an unknown or untrusted repository, from a stale or unverified listing, of an unreviewed installed origin, or not qualified by its mapping is held back as unresolvable with the reasons, and the rest of the plan is unaffected.

Select the explicit candidate with the policy’s allowlist scope and check it first with the validate request, which applies the same rules without changing anything.

Validation before dispatch

Immediately before a host’s packages are installed, Praxis checks each selected candidate again against the host’s current inventory and against the host itself:

  1. The recorded path decides what applies (above). The rest of this list is what a repository row must pass.
  2. The inventory must hold exactly the identities that were approved, each architecture with the same installed and offered revision. An architecture that has appeared or gone, or a revision that changed, is refused, and dispatch never creates an approval of its own. The candidate must still pass the repository policy: hold, native ordering, trust, freshness, a single source and the installed origin, and its mapping when one applies. Disabling or removing a trusted repository, holding the package, or a failed rescan after the plan was approved therefore stops the update.
  3. The host is asked, with read-only commands, about exactly this package identity.
    • APT (apt-cache policy name:arch): the installed revision, APT’s own Candidate field, the selected channel, every repository that offers the exact version, and the priority of the version. The check fails if the Candidate is not the selected version, the installed revision changed, the priority changed (a new or removed pin), the exact version is offered by more than one repository or channel whatever their priorities are (the scan also records this, so discovery and selection show it), any offering repository is not trusted, or the repository or channel APT would use is not the reviewed one. Priorities say which source APT prefers today, and Praxis cannot bind an install to one source, so a version carried by two sources is ambiguous; this applies to repository rows only, so ordinary distribution updates are unaffected.
    • RPM (rpm -q and two dnf repoquery queries): the installed epoch, version and release, DNF’s record of the installed origin, and the offered epoch, version, release, architecture and repository id. An epoch must be a recorded number, so an unknown epoch is never taken as zero. The check fails if the exact identity is not offered, more than one repository offers it, or the one that does is not the reviewed trusted one.
    • A host that cannot answer fails the check.
  4. Every repository candidate is installed by its verified identity, name:arch=version for APT and name-epoch:version-release.arch for RPM, not by name alone. A package installed for several architectures is checked once per architecture with its own evidence, and every architecture must qualify; each is installed as name:arch=version. A plan row carries one version, so a repository package whose architectures are offered different revisions is refused at selection, before approval, with the revisions named.

A plan made before approved identities were recorded has none to compare with, so a row of it that a trusted repository or mapping now names is refused until it is planned again; all other rows of such a plan are unaffected.

If any check fails, nothing is installed on that host, its packages are recorded as failed with code candidate_revalidation_failed, and the reasons are kept in the host’s result and audit event. Other hosts are not affected.

Limits

  • Origin evidence for APT comes from apt-cache policy name:arch for up to 2,000 upgradable packages per scan, and flat repositories (suite ./) are understood. Up to 20 distinct repository and channel instances are kept per candidate. Evidence beyond these bounds is recorded as incomplete, never as absent (see below).
  • Only the APT and RPM families are covered, and only packages installed from a package manager. Containers, tarballs and source installs are not detected.
  • The listing a candidate comes from is the host’s own cached metadata. Refresh and verify it with a scan before selecting.
  • Release stops after GitLab 17 carry no minimum patch level because the vendor publishes none. The mapping data comes from the vendor’s pages and is reviewed with each release.