Skip to main content

Onboarding

Onboarding is the bridge between a device leaving the factory and that device sending telemetry into a Beacon Tower platform. This page covers the conceptual model: how the two pipelines split responsibilities, what the four enrollment tiers look like, how EST and the certificate authority fit in, how credentials are cached and refreshed, and where the trust boundary sits between the platform and a protocol provider.

For step-by-step admin tasks, see the Device Onboarding guide. For wiring a specific device, see Device Connectivity.

The two-pipeline model​

Beacon Tower keeps two flows of data physically and logically separate:

                    ┌──────────────────────────┐
Operators ──────▶│ Admin pipeline │
│ (HTTP + NATS bus-API) │
│ Slow, durable, audited │
└────────────┬─────────────┘
│ provisions, configures
▼
┌──────────────────────────┐
Devices ──────▶ │ Telemetry pipeline │
│ (Provider transport → │
│ NATS JetStream) │
│ High-throughput, lossy │
│ during provider outage │
└──────────────────────────┘
PipelineCarriesBacked byLatency target
AdminProvisioning, enrollment groups, credentials, twin desired-state, ACL changesPostgres (state of record), NATS request-replySeconds
TelemetryDevice-generated messages (telemetry, twin reported, diagnostics)NATS JetStream (durable)Milliseconds

The two pipelines never share durable storage. A failure in the telemetry pipeline cannot lose admin state, and vice versa. The provider service connects to both — it owns the device's current credentials (admin pipeline) and forwards device messages (telemetry pipeline).

The four-tier enrollment journey​

Beacon Tower groups onboarding flows into four tiers by attestation strength. A device picks one tier at manufacturing time; it cannot be promoted at runtime.

Tier 0   ─────  No bootstrap. Operator pre-loads device + credentials.
Tier 1 ───── Shared bootstrap key. Device fetches credentials on first boot.
Tier 2 ───── EST OTP serverkeygen. Device exchanges a one-time password for a cert.
Tier 3 ───── EST simpleenroll. Device proves identity with a manufacturer birth-cert.
TierTrust rootDevice knows at bootFirst contact
Tier 0None — operator-managedFinal credentialsConnects directly to provider
Tier 1Shared secretDevice ID + bootstrap keyGET /get_settings (HTTP Basic)
Tier 2OTP issued at manufacturingDevice ID + OTPEST /serverkeygen
Tier 3Manufacturer Root CADevice ID + birth-cert + private keyEST /simpleenroll (mTLS)

Tier 0 — admin-managed​

The operator provisions the device through the admin API and pushes the resulting credentials to the device by other means (factory tooling, secure flash, manual configuration). The onboarding service is not involved on the device side.

Use Tier 0 when devices are deployed in a controlled environment and you can guarantee credential delivery out-of-band.

Tier 1 — shared bootstrap key​

The simplest self-onboarding flow. At manufacturing time the device is flashed with:

  1. Its device ID.
  2. A bootstrap key (either device-specific or per-batch).

On first boot the device calls GET /get_settings over HTTP Basic Auth. Onboarding validates the bootstrap key, fetches the device's transport credentials from the provider via the bus API, renders them through the enrollment group's response template, and returns them to the device. The device caches the result and connects to the broker.

Tier 1 is the recommended default for greenfield deployments where the manufacturer can flash a unique bootstrap key per device.

Tier 2 — EST one-time password​

Tier 2 upgrades trust from a long-lived shared secret to a one-time password (OTP) that produces a real X.509 certificate. The flow:

  1. Device boots with device_id + OTP.
  2. Device calls EST /serverkeygen over TLS, presenting the OTP.
  3. Onboarding's CA generates a key pair on the server side and returns the cert + private key.
  4. Device uses the cert + key for all future provider connections.

Tier 2 is useful when devices cannot generate strong key material themselves (for example, embedded targets without a hardware RNG) but you still need cert-based identity.

Tier 3 — EST simpleenroll with birth-cert​

The strongest self-onboarding tier. The manufacturer registers their Root CA with Beacon Tower as a trusted issuer ahead of time. Each device is flashed at manufacturing with a birth certificate signed by that Root CA, plus its private key.

On first boot:

  1. Device calls EST /simpleenroll over mTLS, presenting the birth-cert.
  2. Onboarding validates the birth-cert chain against the registered Root CA.
  3. Onboarding's CA issues an operational certificate scoped to the device ID.
  4. Device uses the operational cert for provider connections; the birth-cert is retired.

Tier 3 gives you cryptographic proof of manufacture without trusting an OTP delivery channel. It requires the manufacturer to operate a Root CA and a secure key-injection process.

Note: Tier 2 and Tier 3 EST flows are tracked in dedicated specifications (est, trust-anchors). Implementation status varies by deployment — check the relevant beads for the current state of EST endpoints.

EST and the platform CA​

EST (Enrollment over Secure Transport, RFC 7030) is the standard the platform uses for cert-based onboarding. The onboarding service hosts an EST server on top of an internal CA:

        Manufacturer Root CA   (Tier 3 only — registered as trust anchor)
│
▼ signs
Device birth-cert
│
▼ presents at /simpleenroll
Onboarding EST server
│
▼ delegates to
Platform Issuing CA
│
▼ signs
Operational device cert (used for provider mTLS)

The Platform Issuing CA is distinct from the manufacturer Root CA — devices end up with platform-scoped certs after enrollment, not manufacturer-scoped ones. The provider trusts only certs issued by the Platform Issuing CA at runtime.

EST endpoints exposed by onboarding (when configured):

EndpointPurposeAuth
/.well-known/est/cacertsFetch the CA chainNone
/.well-known/est/serverkeygenTier 2 — server generates key pairOTP (HTTP Basic)
/.well-known/est/simpleenrollTier 3 — device submits CSRmTLS (birth-cert)
/.well-known/est/simplereenrollRenew an operational certmTLS (current cert)

Cache-with-refresh credentials​

The onboarding service treats device credentials as derived state — the source of truth lives in the provider's database. Onboarding caches credentials in Redis between bus-API round-trips so that bursts of bootstrapping devices do not all hit the provider simultaneously.

Cache lifecycle:

  1. Device calls /get_settings.
  2. Onboarding checks Redis for a cached credential entry for {deviceId}.
  3. Miss — onboarding sends bt.provider.mqtt.query.get-credential.{deviceId} and stores the result with a short TTL.
  4. Hit — onboarding renders the cached credential into the response template.
  5. On each successful bootstrap, the cache TTL is refreshed (sliding expiration).

Credentials are NEVER persisted by onboarding — the cache is volatile. The provider remains the source of truth, and a credential rotation at the provider invalidates the cache through a bus-API event (not by polling).

This pattern lets onboarding scale bootstrap traffic horizontally without making the provider's database the bottleneck.

Attestation taxonomy​

Each tier produces a different attestation — the evidence the platform has that a connecting device is who it claims to be:

TierAttestationRotation costCompromise blast radius
0Operator vouchingManual re-flashSingle device
1Knowledge of bootstrap keyRe-issue new key, re-flashWhole batch (if shared key) or single device
2Possession of OTP at first bootRe-issue OTP, re-enrollSingle device
3Possession of birth-cert private keyRe-flash birth-certSingle device

After the first successful bootstrap, all four tiers converge on the same long-lived attestation: the provider-issued credential (shared key for Tier 0/1, operational cert for Tier 2/3). All subsequent provider interactions use that credential — the bootstrap evidence is never presented again.

The provider boundary​

Onboarding is intentionally transport-agnostic — it does not know about MQTT topics, AMQP exchanges, or HTTP polling endpoints. The provider service draws the boundary:

┌────────────────────┐        bus-API         ┌────────────────────┐
│ Onboarding │ ─────────────────▶ │ MQTT Provider │
│ (transport-free) │ bt.provider.mqtt. │ (transport-aware)│
│ │ query.get-credential │ │
└────────────────────┘ └────────┬───────────┘
│
▼
MQTT broker, ACL,
topic conventions

Anything transport-specific — broker hostnames, topic patterns, ACL rules, retained-message semantics — lives in the provider. Anything provisioning-specific — enrollment groups, bootstrap keys, EST, response templates — lives in onboarding. The two communicate only through the bus API.

This boundary is what lets you swap providers (MQTT → AMQP → HTTP polling) without touching the onboarding flow, and what lets you change the onboarding model (add Tier 4, switch to a new EST profile) without touching providers.