Report format, version 1
What the agent sends once a day. Unknown fields are ignored by the server, so a newer agent can add fields; removing or changing a field needs report-v2. Limits: 20 MB gzip, 150 MB JSON, 100 sboms, 2000 checks.
This reference is generated from report-v1.schema.json. Fields marked * are required. [] marks the items of an array.
schema *
The version of the format.
| Field | Type | Rules | Description |
|---|---|---|---|
| schema * | string | always "patchbrief.report/v1" |
agent *
The version and run mode of the agent and of Trivy.
| Field | Type | Rules | Description |
|---|---|---|---|
| agent * | object | ||
| agent.mode * | string | one of "docker", "binary", "ci" | |
| agent.version * | string | at most 40 characters | |
| agent.trivy_version | string | at most 40 characters |
server *
The random ID made at install time and the name you chose for the server.
| Field | Type | Rules | Description |
|---|---|---|---|
| server * | object | ||
| server.id * | string | format uuid | Random UUID made at install time, /etc/patchbrief/server-id |
| server.name * | string | at least 1 character; at most 100 characters | Name the customer chose. Without one, install.sh sets server- and 6 random hex digits, and the agent the first 6 characters of the id; the host name is sent only when the customer chooses it |
collected_at *
When the agent collected the report.
| Field | Type | Rules | Description |
|---|---|---|---|
| collected_at * | string | format date-time |
host *
Operating system, kernel, architecture, virtualization, uptime and package manager.
| Field | Type | Rules | Description |
|---|---|---|---|
| host * | object | ||
| host.arch * | string | at most 20 characters | |
| host.kernel * | object | ||
| host.kernel.running * | string | at most 120 characters | |
| host.kernel.installed_latest | string | at most 120 characters | |
| host.kernel.reboot_reason | string | at most 300 characters | |
| host.kernel.reboot_required | boolean | ||
| host.os * | object | ||
| host.os.id * | string | at most 40 characters | ID from os-release (debian, ubuntu, rocky, alpine, amzn, ...) |
| host.os.version_id * | string | at most 40 characters | |
| host.os.id_like | string | at most 100 characters | |
| host.os.pretty_name | string | at most 200 characters | |
| host.package_manager | string | one of "apt", "dnf", "yum", "apk", "zypper", "other" | |
| host.uptime_seconds | integer | at least 0 | |
| host.virtualization | string | at most 40 characters |
sboms *
Package lists (CycloneDX SBOMs) of the host, of each running image and of the app directories you name: package type, name, version and package URL.
| Field | Type | Rules | Description |
|---|---|---|---|
| sboms * | array of object | at most 100 items | |
| sboms[].format * | string | always "cyclonedx-json" | |
| sboms[].kind * | string | one of "host", "image", "path" | |
| sboms[].sbom * | object | Minimised CycloneDX 1.5/1.6 document (components with type, name, version, purl and the aquasecurity:trivy:* properties). Application components (a lockfile, a binary, a Java archive) carry the file name only, not the path | |
| sboms[].target * | string | at most 500 characters | host, the image reference, or the path |
| sboms[].error | string | at most 1000 characters | Set when this place does not have a package list this time (Trivy missing, docker info or docker save failed, the image step did not finish); sbom is then empty. The place is still listed, so its earlier findings stay |
| sboms[].image | object | ||
| sboms[].image.containers | array of string | at most 200 items; items of at most 200 characters | |
| sboms[].image.created | string | at most 40 characters | |
| sboms[].image.id | string | at most 100 characters | |
| sboms[].image.ref | string | at most 500 characters | |
| sboms[].image.repo_digests | array of string | at most 20 items; items of at most 300 characters |
checks *
The result of each local check: pass, warn, fail, unknown or skip, with one short line of evidence.
| Field | Type | Rules | Description |
|---|---|---|---|
| checks * | array of object | at most 2,000 items | |
| checks[].id * | string | pattern ^[a-z0-9_]+\.[a-z0-9_]+$; at most 80 characters | |
| checks[].status * | string | one of "pass", "warn", "fail", "unknown", "skip" | |
| checks[].details | object | ||
| checks[].evidence | string | at most 500 characters | One short line: the directive, the value or the reason. Never secrets or file contents beyond the matched line. |
| checks[].subject | string | at most 200 characters | What the result is about when a check gives one result per thing (a container name, a file) |
listening
Sockets on addresses other than loopback: protocol, address, port and the process name.
| Field | Type | Rules | Description |
|---|---|---|---|
| listening | array of object | at most 2,000 items | |
| listening[].address * | string | at most 60 characters | 0.0.0.0 or :: for every address; a specific address is sent as its kind (ipv4-public, ipv4-private, ipv6-public, ipv6-private, ipv6-link-local, ...), never as the IP address |
| listening[].port * | integer | 0 to 65535 | |
| listening[].proto * | string | one of "tcp", "udp", "tcp6", "udp6" | |
| listening[].process | string | at most 100 characters | Process name only, never arguments |
containers
Running containers: name, image and the settings the checks look at (privileged, Docker socket, host network and PID, user, added capabilities, published ports).
| Field | Type | Rules | Description |
|---|---|---|---|
| containers | array of object | at most 1,000 items | |
| containers[].image * | string | at most 500 characters | |
| containers[].name * | string | at most 200 characters | |
| containers[].cap_add | array of string | at most 50 items; items of at most 40 characters | |
| containers[].docker_socket | boolean | ||
| containers[].host_network | boolean | ||
| containers[].host_pid | boolean | ||
| containers[].image_id | string | at most 100 characters | |
| containers[].privileged | boolean | ||
| containers[].published | array of object | at most 200 items | |
| containers[].published[].container_port | integer | ||
| containers[].published[].host_ip | string | at most 60 characters | 0.0.0.0, ::, 127.0.0.1, ::1, or the kind of a specific address as in listening.address |
| containers[].published[].host_port | integer | ||
| containers[].published[].proto | string | at most 10 characters | |
| containers[].user | string | at most 100 characters |
errors
Short messages about what the agent could not collect.
| Field | Type | Rules | Description |
|---|---|---|---|
| errors | array of string | at most 200 items; items of at most 1000 characters |