Capabilities

What a device reports to Hop, when it hosts workloads, and how to override detected values.

After enrollment, Hoplet reports a capabilities document for the device, in the Margo format. See Margo's device capabilities specification for the format. The first report makes the device active.

What is reported⁠

Every report holds the identity of the device and its labels:

FieldSource
Device IDdevice.id, otherwise the hostname
Vendor, modelDMI (most x86 and servers), otherwise the device tree (ARM boards)
Serial numberSee Serial number
Labelsdevice.labels

To show the report for this device without sending it, run:

hoplet capabilities show

Hoplet ignores firmware placeholders such as "To Be Filled By O.E.M.".

Hosting and non-hosting devices⁠

A device hosts workloads only when both conditions are true:

  • A runtime plugin is available.
  • observability.otlp_endpoint is set.

A hosting device also reports its CPU (online cores and architecture), memory, root filesystem size, physical network interfaces, the OpenTelemetry collector, and its supported runtimes and deployment types. Hoplet does not report virtual interfaces such as loopback, bridges, Docker and VPN tunnels.

A non-hosting device reports only its identity and labels. Hop shows the device, but does not place workloads on it. hoplet capabilities show and hoplet status show the reason.

This Hoplet release has no runtime plugin, so every device is non-hosting.

When it reports⁠

Hoplet checks for changes to the device's capabilities:

  • When the service starts.
  • After a configuration reload with sudo systemctl reload hoplet.
  • At the interval set by capabilities.refresh_interval, every hour by default.

It sends a report only when the collected values have changed.

Override detected values⁠

Override automatic detection when you need a consistent Device ID, vendor and model details that the hardware does not expose, or labels for deployment rules. Update the existing device section in /etc/hop/hoplet/config.yaml:

/etc/hop/hoplet/config.yaml
device:
  id: line-3-press-7
  vendor: Acme
  model_number: PX-7
  labels:
    example.com/site: plant-1

Then sudo systemctl reload hoplet. If you change device.id, Hop moves the device's capabilities to the new ID and removes the old one.

Device ID format

Margo defines Device IDs as paths whose segments contain only letters, digits, -, ., _ and ~. A / separates hierarchy levels, and each segment must contain at least one character. Spaces and percent-encoded characters are not accepted. See Margo's route parameters for the standard's requirements.

Label values are strings, numbers, booleans, or lists of strings or of numbers.

Serial number⁠

The serial number helps you match a device in Hop to its physical hardware. By default, Hoplet uses the first available value from these sources:

  1. device.serial_number from configuration.
  2. The firmware serial (DMI), the device tree serial, the CPU serial, then /etc/machine-id.

To report the serial your CA wrote into the bootstrap certificate instead, update the existing device section:

/etc/hop/hoplet/config.yaml
device:
  serial_number_from: certificate

Hoplet then reads the serialNumber attribute of the certificate subject. This is separate from the certificate's own serial number, which the CA assigns. If the subject has no serialNumber, Hoplet stops and asks you to correct the certificate or configuration rather than reporting a different value.

Why use the certificate?

The device cannot change a serial that is signed into its certificate. What Hop shows is what your CA vouched for.