Chapter 11. Security Considerations
In earlier chapters, we described how the agentic mesh enables structured interactions among agents and people—how messages flow, how context is maintained, and how reasoning chains extend across distributed participants. This chapter takes the next step: securing that dynamic system. While traditional software security focuses on static applications or APIs, an agentic mesh is a living network of semiautonomous components that read, reason, and act on data. That shift—from static code to autonomous behavior—multiplies both the opportunity and the risk. A single compromised agent can do far more than leak data; it can impersonate users, make unauthorized decisions, or spread malicious logic throughout the mesh.
This chapter begins with the foundations: encrypted communication and identity control. Agents must be able to trust that the messages they send and receive have not been intercepted or altered. Mutual Transport Layer Security (mTLS) ensures the integrity and confidentiality of all traffic between agents, while authentication and authorization mechanisms—often implemented through OAuth2 and enterprise identity providers—define who or what can act and under what conditions. These measures build the basic perimeter of trust on which all higher-order governance depends.
From there, we move deeper into the identity and credential layer. Human users authenticate through existing enterprise systems; agents require their own parallel system ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access