Skip to content
Adaptive AgroTech NetworkUniversity of Southern Denmark · SDU Drone Center
Book2026
← Raspberry Pi Robotics LaboratoryChapter 24

Give an MQTT device a verifiable identity

InstructorDr. Redmond R. Shamshiri
AffiliationAssistant Professor of Robotics · University of Southern Denmark (SDU)
Study time35 minutes
Study companion. These editable notes, worked examples and exercises supplement the source material. They are not a verbatim video transcript or a reproduction of the book.

Study Give an MQTT device a verifiable identity. Use the accompanying model, numerical example and practical task to connect the topic to a measurable engineering result. Notes are original supplemental material, not a transcript.

Learning Objectives

  • Explain the role of trust boundaries and bounded authority in the engineering system.
  • Calculate the worked quantity with consistent units.
  • Design a measurement that can reveal an implementation failure.

Study guide

Original companion notes. These notes support the topic of this lesson. They are not a transcript or a claim about the exact contents, hardware settings or examples in the video.

Lesson focus: Give an MQTT device a verifiable identity

Define the input, measured output, units and pass/fail condition before running the experiment.

Trust boundaries and bounded authority

Connected devices need explicit identities, least-privilege access and a clear separation between viewing telemetry and commanding actuators. A secure transport protects a channel but does not ensure the connected process interprets commands correctly.

Model, units and assumptions

\[Allowed=Authenticated\land Authorized\land Fresh\land PermittedState\]

This Boolean policy model combines identity, permission, command age and process permissives. It is not a cryptographic protocol or a safety certification. Log rejected requests without exposing secrets.

Worked engineering example

A read-only dashboard user may be authenticated yet must still fail an actuator-write authorization check. A valid signed-in session also should not bypass a run-state interlock or accept an expired command.

Practical task and evidence

Apply the following procedure to the topic of this lesson: Give an MQTT device a verifiable identity.

  • List identities, data stores and command endpoints with their permissions.
  • Test unauthorized writes, expired commands and service restart behavior.
  • Keep credentials outside public files and define a rotation/recovery procedure.

Submit: a diagram or interface table, a short timestamped dataset, the calculation with units, and a paragraph explaining the largest observed limitation.

Check your understanding

Question. An authenticated viewer submits a motor-enable command without write permission. Should it be accepted?

Show worked answer

No. Authentication establishes identity; authorization and process permissives remain separate requirements.

Extension. Change one assumption in the model and explain which measurement would reveal that it no longer holds.

Summary

Trust boundaries and bounded authority: keep units, assumptions and timing explicit. Check the numerical model against an independent observation before using it in a larger system.

Suggested Reading & Resources

  • Reading
    Book source: Raspberry Pi Robotics Laboratory

    Primary documentation or original technical reference; check the version used in your lab.

    Open ↗
  • Reading
    Raspberry Pi official documentation

    Primary documentation or original technical reference; check the version used in your lab.

    Open ↗
  • Reading
    ROS 2 concepts and tutorials

    Primary documentation or original technical reference; check the version used in your lab.

    Open ↗