Documentation /

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.

FieldTypeRulesDescription
schema *stringalways "patchbrief.report/v1"

agent *

The version and run mode of the agent and of Trivy.

FieldTypeRulesDescription
agent *object
agent.mode *stringone of "docker", "binary", "ci"
agent.version *stringat most 40 characters
agent.trivy_versionstringat most 40 characters

server *

The random ID made at install time and the name you chose for the server.

FieldTypeRulesDescription
server *object
server.id *stringformat uuidRandom UUID made at install time, /etc/patchbrief/server-id
server.name *stringat least 1 character; at most 100 charactersName 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.

FieldTypeRulesDescription
collected_at *stringformat date-time

host *

Operating system, kernel, architecture, virtualization, uptime and package manager.

FieldTypeRulesDescription
host *object
host.arch *stringat most 20 characters
host.kernel *object
host.kernel.running *stringat most 120 characters
host.kernel.installed_lateststringat most 120 characters
host.kernel.reboot_reasonstringat most 300 characters
host.kernel.reboot_requiredboolean
host.os *object
host.os.id *stringat most 40 charactersID from os-release (debian, ubuntu, rocky, alpine, amzn, ...)
host.os.version_id *stringat most 40 characters
host.os.id_likestringat most 100 characters
host.os.pretty_namestringat most 200 characters
host.package_managerstringone of "apt", "dnf", "yum", "apk", "zypper", "other"
host.uptime_secondsintegerat least 0
host.virtualizationstringat 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.

FieldTypeRulesDescription
sboms *array of objectat most 100 items
sboms[].format *stringalways "cyclonedx-json"
sboms[].kind *stringone of "host", "image", "path"
sboms[].sbom *objectMinimised 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 *stringat most 500 charactershost, the image reference, or the path
sboms[].errorstringat most 1000 charactersSet 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[].imageobject
sboms[].image.containersarray of stringat most 200 items; items of at most 200 characters
sboms[].image.createdstringat most 40 characters
sboms[].image.idstringat most 100 characters
sboms[].image.refstringat most 500 characters
sboms[].image.repo_digestsarray of stringat 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.

FieldTypeRulesDescription
checks *array of objectat most 2,000 items
checks[].id *stringpattern ^[a-z0-9_]+\.[a-z0-9_]+$; at most 80 characters
checks[].status *stringone of "pass", "warn", "fail", "unknown", "skip"
checks[].detailsobject
checks[].evidencestringat most 500 charactersOne short line: the directive, the value or the reason. Never secrets or file contents beyond the matched line.
checks[].subjectstringat most 200 charactersWhat 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.

FieldTypeRulesDescription
listeningarray of objectat most 2,000 items
listening[].address *stringat most 60 characters0.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 *integer0 to 65535
listening[].proto *stringone of "tcp", "udp", "tcp6", "udp6"
listening[].processstringat most 100 charactersProcess 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).

FieldTypeRulesDescription
containersarray of objectat most 1,000 items
containers[].image *stringat most 500 characters
containers[].name *stringat most 200 characters
containers[].cap_addarray of stringat most 50 items; items of at most 40 characters
containers[].docker_socketboolean
containers[].host_networkboolean
containers[].host_pidboolean
containers[].image_idstringat most 100 characters
containers[].privilegedboolean
containers[].publishedarray of objectat most 200 items
containers[].published[].container_portinteger
containers[].published[].host_ipstringat most 60 characters0.0.0.0, ::, 127.0.0.1, ::1, or the kind of a specific address as in listening.address
containers[].published[].host_portinteger
containers[].published[].protostringat most 10 characters
containers[].userstringat most 100 characters

errors

Short messages about what the agent could not collect.

FieldTypeRulesDescription
errorsarray of stringat most 200 items; items of at most 1000 characters