How would you test IoT device identity and provisioning?
Answer
Verify that each device receives a unique, traceable identity and protected credentials through an authorized manufacturing or onboarding flow. Test duplicate identity, replay, partial provisioning, credential rotation, ownership transfer, factory reset and decommissioning. Secrets must not appear in logs or unsecured interfaces, and backend state must agree with the physical device.
Strong answer includes
- covers the full identity lifecycle
- tests duplicate, replay and interrupted provisioning
- reconciles device and backend ownership state
Practical example
A manufacturing line provisions unique device certificates for each unit, but a test lab discovers that if the provisioning process is interrupted right after certificate generation but before the backend registration call completes, the device ends up with valid credentials that the backend has never heard of. Such a device can authenticate to services but appears to no owner, becoming an orphaned identity that nobody can decommission remotely.