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.

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
  • Action: https://github.com/identitymachines/ironbook-a2a-extension/v1/action
  • Resource: https://github.com/identitymachines/ironbook-a2a-extension/v1/resource
  • 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.3.tar.gz (2.6 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.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ironbook_a2a_extension-0.0.3.tar.gz
  • Upload date:
  • Size: 2.6 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.3.tar.gz
Algorithm Hash digest
SHA256 98367b104719e05eecb6fc57a43565bd52a14924595951ec8e1306cfd668fd4f
MD5 29f8cc63e0c3700f5e801ad66d8506ab
BLAKE2b-256 de447690dd86f4b6c0f5349a90dcf4e7157dbbf4221740717fe5112a97060580

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ironbook_a2a_extension-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c7ae9accea686e63d666b7979d219e69d7d79fe5ab552e8bd22113cd4e6b5e01
MD5 9dd342317b01cdec5b2a91abf8586268
BLAKE2b-256 89dd82641b9f2e9dac097c5b2364f8ef35f0585ee444316d171a636ec8699cf9

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