Overview and activity
The Overview page tells you, at a glance, what Pratique cleared, held and refused. The Activity page holds every event behind those numbers, and lets you search and export them.
The Overview page
Overview is the first page you see after you sign in. It covers every listing and download that clients made through Pratique in the time range you choose.
Choose a time range
Use the control at the top of the page to choose 24 hours, 7 days or 30 days. Every card, the chart, the registries table and the recent refusals follow this choice. Where a card compares two periods, it compares the range you chose with the same length of time before it.
Admins also see a Report button. It opens Reports, which shows the policy in force and what it did, ready to print or export for an audit.
Status strip
A row of small indicators under the title shows the health of the parts Pratique depends on:
- npm, PyPI, Packagist and Go proxy: how long ago
Pratique last fetched a package listing from each registry, or
idleif it has fetched nothing yet. - OSV: how long ago Pratique last fetched threat data. It shows as a warning when the last fetch is more than 6 hours old, or when no threat data has been fetched yet.
- Audit chain:
signed, orunsignedas a warning ifPRATIQUE_AUDIT_KEYisn't set. - Storage: how much package data is stored, or
none keptin firewall mode. - The database in use.
Details at the end of the strip opens the server configuration section of Settings.
If an incident is open, a banner under the strip names the newest one and links to it with Review incident. If exception requests are waiting, or exceptions end this week, a line links to each.
The four cards
The cards count different things, so read their units carefully. File counts are downloads. Version counts are distinct versions, however many times they were asked for.
| Card | What it counts | What else it shows |
|---|---|---|
| Files requested | Downloads of package files that Pratique cleared, held or refused. Listings don't count. | The change against the period before, the count for that period, and how many clients made the requests. |
| Files cleared | Files delivered to clients. | The share of files requested that were cleared, and how many files were stored for the first time. In firewall mode it says the files were deleted after delivery. |
| Versions held | Distinct versions held in quarantine, in listings and downloads. | The change against the period before, how many packages they belong to, and when the next one clears. |
| Versions refused | Distinct versions refused, in listings and downloads. | A tag with the number of refusals for malware, and the number of open incidents. |
Most holds happen in listings. A client is shown an older version and never asks for the held file, which is why held and refused are counted as versions. Each card is a link to Activity. Files requested opens it for the same time range. The other three open the Cleared, Held and Refused tabs.
The decisions chart
The chart is titled Decisions per hour for 24 hours, Decisions per 6 hours for 7 days, and Decisions per day for 30 days. It counts events, not distinct versions, so its totals can differ from the cards.
It has two bands on one time axis. Cleared decisions are an area in the upper band. Held and refused decisions are stacked bars in the lower band. Each band has its own scale, so a handful of refusals stays visible next to thousands of cleared downloads. Don't compare the height of a bar with the height of the area.
Hover over a slot to see its counts, or open Show as table to read every slot as numbers, in UTC.
Registries
The Registries table has one row for each proxied registry: npm, Python, Composer and Go. It adds a row for each private registry that holds packages or had requests. Its columns are:
- Upstream: the registry Pratique fetches from, marked
proxy. A private registry is markedhostedand lists your reserved names. - Quarantine: the registry's current window. Private registries have none.
- Requests: file downloads in the time range.
- Decisions: a bar split into cleared, held and refused.
- Held: distinct versions held. Refused: refused file requests.
- Stored: the size of stored files, or
not keptin firewall mode.
Connect clients beside the table opens the setup instructions for each client.
Quarantine queue
The Quarantine queue lists up to five held versions that clear next. Stable releases come first, then the ones that clear soonest, so nightly and canary builds don't fill the list. Each row shows the time left and a bar for how much of the quarantine has passed. View all opens the held versions in Activity. See Quarantine for how the window is set.
Recent refusals
Recent refusals lists the five newest refusals in the time range. Each row names the package and version, a tag for the rule that stopped it, the client and when. Open in Activity shows all of them.
The Activity page
Activity lists every decision, download and change, newest first. Each event is signed into the audit log's hash chain. Each person or bot is identified by their access token.
Tabs
Tabs above the table narrow the list to one kind of event:
| Tab | What it shows |
|---|---|
| All | Every event. |
| Cleared | Files delivered to clients, with a Who table above them. |
| Held | Versions held in quarantine. |
| Flagged | Downloads delivered with warnings from a rule set to warn. |
| Refused | Refused listings and downloads. |
| Incidents | Incidents as they opened. |
| Exceptions | Exceptions set, renewed or removed, and exception requests. |
| AI | AI assessments, AI holds and AI lookups. |
| Admin | Setting changes, tokens, sign-ins, publishes, project and build reports, people, and refused reports. |
| CI held or refused | Held or refused events for bot tokens. |
| Malware hits | Events where the malware check decided. |
| Hash mismatches | Events where a file's hash didn't match, or a file changed upstream. |
Read a row
Each row shows the time in UTC, the decision, the package and version, the rule, the client and the source address. Viewers see only their own address, in the table, the CSV export and an event's details, and don't see an event's place in the audit log, because its hashes would give other addresses away. A few things make the table easier to read:
- One row per download. A download that a warn rule flagged is logged twice, once as flagged and once as cleared, so filters and counts see both. The table shows it as one row, labelled Cleared, with warnings.
- The Rule column is empty when no rule applied. A release that cleared because it was old enough and had no reports shows no rule.
- Listing events say what the client got. A held or refused version that was hidden from a listing says how many versions were hidden from the list that client received, and that the client didn't request a file.
Above the table, a chart shows cleared, held and refused events over time, with totals and the number of distinct clients. Show older activity at the bottom loads the next page.
Time ranges
Choose 1h, 24h, 7d, 30d or All beside the search box. The range applies to the tabs, the chart, the table and the CSV export.
Query syntax
Type a query in the search box and choose Search. The page documents the syntax under Query syntax:
| Field | Matches |
|---|---|
decision: | One of cleared, held, refused, flagged, incident, published. |
client: | A person or bot. Add * at the end to match every client that starts with the text before it. |
package: | A package name. |
version: | An exact version. |
registry: | One of npm, python, composer, go. |
rule: | The rule behind a decision, by its code, such as malware. |
Group values with (a OR b). A word on its own searches package names. For example:
decision:(held OR refused) client:bot:ci* package:lodash
If part of a query isn't understood, the page says so and ignores that part.
Event details
Select the time in a row to open the event's details beside the table. The panel shows the time, rule, registry,
package, version, file, detail, client and source address. It also shows the event's place in the audit log: its
sequence number, its chain hash, the previous hash and whether it is signed. Check the whole chain with
pratique verify-log.
The panel has three buttons:
- Open package opens the package page at that version.
- Same client lists every event from the same client.
- Copy JSON opens the event as JSON.
Know who downloaded what
Give each person and each bot their own token. The Cleared tab then shows who pulled which package and version, when, and from what address. A Who table above the events sums up each person or bot: their type, downloads, distinct packages and last download. Select a name to see only their downloads.
Only files that clients received count. Resolving a dependency or sending a HEAD request doesn't. A client on the
same machine that connected without a token shows as anonymous, with the type No token.
Set access.require_tokens: true to require a token everywhere. See Access tokens.
Export as CSV
Export CSV downloads the events that match the current tab, query and time range. The file has these columns:
time_utc,who,address,registry,package,version,file,action,rule,detail
The export holds at most the newest 200,000 events. When more match, its last row says the export stopped, so narrow the search to get the rest. Unlike the table, the export keeps the two events of a download with warnings as two rows. Values that a spreadsheet would read as a formula start with a quote mark.
Projects and Builds
Two pages under Inventory tell you who has a package, even when it was installed before Pratique saw it. CI fills both. See CI to set it up.
- Projects lists what each project's lockfiles say it uses. Search it with
Who uses this package?, by name or by
name@version. A project that hasn't reported for 30 days is marked out of date. - Builds links what each CI run made to what went into it. Search it by a build's name, a commit, a
file's hash, or a package such as
lodash@4.17.20.
When a package is reported as malware, the incident names the projects and builds that use it. See Incidents and threats.