Skip to main content

Python A2A extension for Iron Book by Identity Machines

Project description

Iron Book Extension (ironbook-a2a-extension)

Overview

This extension defines how to enable Iron Book's zero trust policy-based access control for agents.

Drop-In Implementation Sample with 2 Agents

https://github.com/identitymachines/a2a_ironbook

Extension URI

The URI of this extension is https://github.com/identitymachines/ironbook-a2a-extension/v1.

This is the only URI accepted for this extension.

Messages Metadata Fields

Messages from the client agent MUST include the following metadata fields:

  • Agent DID: https://github.com/identitymachines/ironbook-a2a-extension/v1/agent-did
  • Auth token: https://github.com/identitymachines/ironbook-a2a-extension/v1/auth-token
  • Context: https://github.com/identitymachines/ironbook-a2a-extension/v1/context

Process

If a client agent wishes to send a message to a server agent that enforces Iron Book policies, the client agent MUST:

  1. Activate the IronBook A2A extension.
  2. Use the Iron Book SDK or portal to register the agent.
  3. Use the Iron Book SDK to get an auth token.
  4. Include the Message metadata fields.

The server agent MUST:

  1. Validate that the Message metadata fields are provided.
    1. If fields are missing, it MUST return an error.
  2. Use the Iron Book SDK to submit a policy decision request.
    1. If allowed, the Message will be processed.
    2. If denied, it MUST return an error.

Extension Activation

Clients indicate their desire to receive traceability on response by specifying the Extension URI via the transport-defined extension activation mechanism. For JSON-RPC and HTTP transports, this is indicated via the X-A2A-Extensions HTTP header. For gRPC, this is indicated via the X-A2A-Extensions metadata value.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ironbook_a2a_extension-0.0.4.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ironbook_a2a_extension-0.0.4-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file ironbook_a2a_extension-0.0.4.tar.gz.

File metadata

  • Download URL: ironbook_a2a_extension-0.0.4.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for ironbook_a2a_extension-0.0.4.tar.gz
Algorithm Hash digest
SHA256 9df71e1749a9fea682ef9047d148fadb89c2db959444a9351b6e6d0ed4f67cb5
MD5 6bea020b05a6c3733f22c10101bbdd4d
BLAKE2b-256 849a9e5e4b7d5fc99967a8551f13281349f4347ce4a9ddab82194e7f58997954

See more details on using hashes here.

File details

Details for the file ironbook_a2a_extension-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for ironbook_a2a_extension-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 98f06cebf58455280d677282024b123c04b7566380059b6834acf8edb53f89e5
MD5 b437f4cef30c9633d8a071a6e05b85c6
BLAKE2b-256 5d20a1624a9ae4d2cc552ffc7433e3fe62920e02ae5c1d11eecd2701fd5b7a02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page