Skip to main content
A Humain Kiosk credential (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

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 EnvironmentFile directive.
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.

Provisioning flow

For factory provisioning of many devices: Use the admin API to issue credentials programmatically rather than copying them by hand:

Credential rotation

  1. Issue a new credential in the admin panel — the device continues using the old one.
  2. Push the new credential to the device via OTA or remote SSH.
  3. Restart the kiosk service on the device:
  4. Verify the device authenticates with the new credential by checking the admin panel’s Sessions view for the new credential label.
  5. 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.