Skip to Content
Admin GuidesLedgerAdvisory Collection

Advisory Collection

Ledger downloads security advisories from operating system vendors, stores a compact copy in its data directory, imports them into its errata tables, and matches them against the packages each host reports. The results appear in the Errata section and on each host's Errata tab. Collection is done by the Ledger scheduler service; this page describes how it runs and how to manage it from Admin > Advisories.

Where advisories come from

Ledger collects advisories from these vendors:

  • Rocky Linux (community)
  • CIQ (Rocky Linux from CIQ, RLC LTS, and CentOS Bridge)
  • Red Hat Enterprise Linux
  • SUSE (SLES, SLED, Leap, SDK, and Micro)
  • AlmaLinux
  • Oracle Linux
  • Ubuntu
  • Debian
  • Amazon Linux
  • openEuler
  • Microsoft Azure Linux and CBL-Mariner
  • VMware Photon OS

Collection is incremental wherever the vendor allows it. Red Hat, SUSE, and CIQ publish a CSAF changes.csv file that lists every advisory with its last change date, and openEuler publishes an index of advisory files. For these vendors, Ledger keeps a watermark (the newest advisory it has processed) and fetches only advisories that are newer or changed. If nothing has changed, nothing else is downloaded. Other vendors publish a small number of OVAL or updateinfo files, which are downloaded on each run.

CIQ publishes its advisories in the ctrliq/advisories repository as two feeds: CIQSA advisories for CIQ's own products, and CRLSA advisories for Rocky Linux from CIQ.

Collection schedule

The scheduler collects advisories every day:

TimeVendors
02:00Rocky Linux
02:30CIQ
03:00The other enabled vendors in scope

A vendor is in scope when at least one of this installation's hosts runs its operating system, or for every enabled vendor when Collect All Vendors is on (see Air-gapped installations). Disabled vendors are skipped. No collection runs while Air-Gapped Mode is on.

The Advisories page

Admin > Advisories shows everything about the advisory data this installation holds. It is available to administrators and has two tabs:

  • Details: the Advisory Vendors table.
  • Management: the Collection Jobs queue and, below it, the Air-Gapped Transfer section.

Advisory Vendors

Details tab with one row per advisory vendor

The Details tab lists every vendor on one line, with its collection status, thread count, file count, size on disk, last update time, watermark, last run, and traffic. A final row shows CVE data and the totals. Detail is in tooltips, so hover over or focus a cell:

  • Collection shows Enabled, Disabled, or Running. A vendor that owes a full collection shows a rotate icon.
  • Last Updated, Watermark, Last Run, and job times are shown in your browser's time zone. Each time's tooltip shows the UTC value, so you can match it with the scheduler log, which uses UTC.
  • The Last Run tooltip shows the duration and the number of advisories imported, or for a failed run the reason, for example download failed: 3 fetches failed; first: ...: 429 Too Many Requests.
  • Traffic shows the data received by the last collection against the size of the vendor's advisory files on disk. Its tooltip adds the totals for all runs.

Details tab with one vendor collecting, showing the Running badge and a failed run's tooltip

Each row has buttons to collect that vendor now (the download arrow), to enable or disable its collection, and to edit its settings (the pencil icon).

Vendor settings

Vendor edit page with Collection and Threads settings

The vendor edit page has two settings and shows the vendor's last collection and totals:

  • Collection: Enabled or Disabled. A disabled vendor is skipped by the daily collection and by downloads of every vendor. Its existing data is left as it is on disk and in the database. Re-enabling a vendor while Collect All Vendors is on makes its next collection a full one, because the one-time full collection skipped it while it was disabled; the table shows Next run: full until then.
  • Threads: the number of parallel fetch workers (1 to 16, or Default) for the feeds fetched one advisory at a time: Rocky Linux, CIQ, Red Hat, SUSE, and openEuler. The default is shown in the label. The setting does not apply to vendors published as a few bulk files.
Rate limiting

Every worker makes its own requests to the vendor's servers. Public advisory sites throttle clients that fetch too fast (HTTP 429 or 503). When that happens, the scheduler backs off and waits, so a high thread count can make a run slower, not faster, and repeated throttling can get an address blocked for a while. Start with the default, raise it gradually for a large first-time download, and keep it low on a connection shared by several Ledger installations.

Collection jobs

Management tab with a queued and a running collection job

Collections you start from the page become jobs in the Collection Jobs queue on the Management tab:

  • The download arrow on a vendor row (on the Details tab) queues a collection of that vendor.
  • Collect All Enabled Vendors queues a collection of every enabled vendor.
  • Load Data on Disk into the Database imports the advisory files already in the data directory. This is the job to use in an air-gapped installation, and the only one offered while Air-Gapped Mode is on.

The scheduler picks up queued jobs within a minute and runs them one at a time, under the same lock as the daily collection and air-gapped imports. An identical job that is already queued or running is not added again, and you can cancel a job while it is still queued. While a job is queued or running, the page refreshes every ten seconds. If the scheduler restarts during a job, the job is marked failed.

Queued and running jobs are listed first, followed by finished jobs, newest first, fifteen to a page. The trash can button opens Purge Job History, which removes finished, failed, and cancelled jobs that ended more than 1, 7, or 30 days ago, or all of them. Queued and running jobs are never removed, and vendor run statistics are not affected. The button is disabled while a job is queued or running.

Purge Job History dialog

The scheduler also removes finished jobs older than the Collection Jobs Retention under Settings > Maintenance (7 to 360 days; 7 by default).

Maintenance settings with Collection Jobs Retention

Air-gapped installations

An installation without internet access cannot collect advisories from the vendors. Instead, a connected Ledger installation collects them and exports a bundle, and the offline installation imports it. The Air-Gapped Transfer section is below the job list on the Management tab.

Management tab with the collection jobs and the Air-Gapped Transfer section below

Air-Gapped Transfer section with the Air-Gapped Mode and Collect All Vendors switches

ControlWhat it does
Air-Gapped ModeFor the offline installation. While it is on, the scheduler's daily collections are skipped without contacting the network.
Collect All VendorsFor the connected installation that builds bundles. While it is on, Ledger collects every enabled vendor and keeps advisories for every operating system, not only those its own hosts run, so the bundle covers hosts the connected installation has never seen. Turning it on triggers a one-time full collection, so that advisories earlier runs did not keep are fetched.
DownloadOn the connected installation. Builds a bundle of the advisory data and the collection watermarks and downloads it as ledger-airgap-<timestamp>.tar.gz.
ImportOn the offline installation. Uploads a bundle, validates it, and replaces the advisory data with its contents.

The two switches cannot both be on; turning one on turns the other off. Click Save under the switches to store them.

To move advisory data into an air-gapped installation:

  1. On a connected Ledger installation, turn on Collect All Vendors, click Save, and let a full collection complete (or queue Collect All Enabled Vendors).
  2. Click Download to build and download the bundle. Download is refused while another collection or import holds the data directory; try again when it finishes.
  3. Copy the bundle to a machine that can reach the offline installation.
  4. On the offline installation, turn on Air-Gapped Mode and click Save.
  5. Click Import and choose the bundle. A progress bar shows the upload and extraction.
  6. Wait for the import to finish. When the files are in place, the page shows Files published. The scheduler is loading the records into the database…. Within a minute, the scheduler loads the advisories and rechecks every host, and the page reports Import complete.

The bundle replaces the offline installation's advisory data with a complete copy of the connected installation's data: advisories that are no longer in the bundle are removed, and vendors the connected installation never collected are left alone. Only one import can be pending at a time. The bundle also carries the collection watermarks, so if the offline installation is ever connected, its next collection resumes from where the connected installation left off rather than downloading everything again.

Note

The Ledger web and scheduler services must share the same data volume for Download and Import to work.

Collecting from the command line

The ledger-manage command in the Ledger scheduler container runs the same collection as the scheduler and is useful for forcing a refresh:

CommandEffect
ledger-manage list-vendorsList the registered vendors.
ledger-manage downloadIncremental download of the vendors in scope, plus Rocky Linux.
ledger-manage download --vendor=ctrliqIncremental download of both CIQ feeds.
ledger-manage download --vendor=ctrliq --fullIgnore the CIQ watermarks and download everything.
ledger-manage download --vendor=ctrliq --purgeDelete the stored CIQ advisories, then download everything.
ledger-manage download --all-osKeep advisories for every operating system for this run (see Active OS filter).
ledger-manage reset-advisories --purgeRebuild the advisory data from scratch for every vendor. All watermarks are cleared, so the next run is a full download.
ledger-manage footprintPrint the size of the advisory data on disk.

Naming a disabled vendor explicitly with --vendor still collects it. A --threads option overrides the vendor's thread setting for that run. Commands that change advisory data are refused while an air-gapped import is waiting to be loaded.

Rocky Linux from CIQ and LTS

CIQ sells Rocky Linux from CIQ (RLC) in several editions. A host identifies its edition through its CPE fact (ansible_distribution_os_cpe_name), for example cpe:/o:ciq:rocky_linux_from_ciq_lts:9.6 for RLC LTS 9.6. Advisories name the repositories their packages ship from, and a repository map published with CIQ's advisories links each edition to the repositories it uses.

LTS matters for matching. An LTS host stays on its point release and receives CIQ's backports from the LTS repositories of that release. It never installs the 9.x stream that tracks community Rocky Linux, so comparing its packages with 9.x advisories would give wrong results. Ledger therefore matches LTS hosts against LTS advisories only:

HostOS shown in LedgerMatches
Community Rocky Linux 9.6Rocky 9.6Rocky Linux community advisories (RLSA)
RLC 9.6, Plus, Pro, and Pro HardenedRocky 9.6, Rocky 9.6 Pro Hardened, and so onThe CIQ 9.x stream (CRLSA) and CIQ 9.6 repositories
RLC LTS 9.6 and Pro Hardened LTS 9.6Rocky 9.6 LTS, Rocky 9.6 Pro Hardened LTSCIQ LTS 9.6 repositories only

Because the edition is part of the host's OS name, the hosts list, the OS filter, the dashboard charts, and the REST API all separate an LTS host from a 9.x one, and the host page shows the edition as a badge next to the OS. A host that reports a plain Rocky Linux or RLC CPE but has CIQ's LTS release package installed (for example ciq-lts96-rocky-release) is also recognized as LTS. A host picks up its edition on its next fact gathering run, and its errata counts are then rebuilt.

Active OS filter

By default, Ledger keeps only advisories for the operating systems marked as active in its OS catalog, and always keeps Rocky Linux. The catalog has one entry per CIQ edition and point release, so marking RLC LTS 9.6 active keeps the 9.6 LTS advisories even when plain RLC 9.6 is inactive. Collect All Vendors turns the filter off, as does the --all-os option for a single command line run.