hk_live_…) is equivalent to a long-lived API password. It must
be stored securely on the device, retrieved at runtime, and rotatable without re-flashing
firmware.
Issue one credential per physical device. If a device is compromised, only that device’s
credential is revoked — shared credentials across devices require revoking access for all of
them simultaneously.
Storage options
- Environment file (Linux)
- dm-crypt (encrypted disk)
- ATECC608 (secure element)
- TPM 2.0 (Linux)
The simplest option for embedded Linux and Raspberry Pi. Store the credential in a
root-readable file and pass it to the process via systemd’s Read in C:Security: The credential is stored in plaintext on disk. Anyone with root access can
read it. Appropriate for deployments where physical access to the device is controlled.
EnvironmentFile directive.Provisioning flow
For factory provisioning of many devices: Use the admin API to issue credentials programmatically rather than copying them by hand:Credential rotation
- Issue a new credential in the admin panel — the device continues using the old one.
- Push the new credential to the device via OTA or remote SSH.
- Restart the kiosk service on the device:
- Verify the device authenticates with the new credential by checking the admin panel’s Sessions view for the new credential label.
- Revoke the old credential in the admin panel.
Revoking a credential takes effect immediately. Any in-flight session using that credential
receives a
KIOSK_ERR_AUTH error on the next API call.