Provision a fleet

Bake shared connection settings into a device image and give every device its own bootstrap certificate.

Hop can enroll many devices into the same Project without manual steps. Devices share the server address and the trust root pin, and each device has its own bootstrap certificate and private key.

Prepare the shared image⁠

Put these items in the shared device image:

Keep /var/lib/hop/hoplet out of the shared image. Hoplet writes the identity of each device there.

Map certificate issuers to Projects⁠

An active Enrollment Policy lets devices with bootstrap certificates from a Trusted Issuer join its Project automatically.

Different issuing CAs can route devices to different Projects, for example by site or customer. Each bootstrap certificate must match exactly one active policy.

Enrollment Policies need only the public CA certificate. The CA's private key stays separate from Hop and the devices.

Separate shared and device configuration⁠

Hoplet reads additional YAML files in /etc/hop/hoplet/config.d/. These files can hold shared connection settings or values specific to a device. See Hoplet configuration for the file reference and configuration order.

Site settings⁠

All devices that connect to the same Hop share the server address and the trust root pin:

/etc/hop/hoplet/config.d/10-site.yaml
server:
  url: https://devices-hop.unbrikd.com
trust:
  root_pin: your_trust_root_pin

See Get the trust root pin to get the pin.

Device settings⁠

Each device can have its own Device ID, vendor, model and labels in a separate file:

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

Deliver each device's bootstrap certificate⁠

Install a unique bootstrap certificate and its key at /etc/hop/hoplet/bootstrap.pem and /etc/hop/hoplet/bootstrap.key, for example on the production line. Restrict the key to mode 0600. Hoplet enrolls the device when the service starts for the first time.

For encrypted key delivery, see Protect the bootstrap key.