Skip to main content

Hardened single-node registry service for Agent Auth identities

Project description

Agent Auth Registry

verifiable-agent-auth-registry 是 Agent Auth 的中心身份 Registry,提供 developer namespace、Agent metadata 发布、公钥解析、密钥生命周期、原子 nonce 防重放和审计。

当前版本:0.2.0b1。Registry v1 只支持单节点、单 worker SQLite,并且必须放在 HTTPS 反向代理之后。

安装

python -m venv .venv
source .venv/bin/activate
pip install "verifiable-agent-auth-registry==0.2.0b1"

本地测试:

export AGENT_REGISTRY_DB_PATH="$PWD/runtime/registry.sqlite3"
export AGENT_REGISTRY_PATH="$PWD/runtime/.well-known/agent.json"
export AGENT_REGISTRY_STRICT_IDENTITIES=0
agent-auth-registry --host 127.0.0.1 --port 8008 --workers 1

STRICT_IDENTITIES=0 允许 IP/localhost identity,只能用于本机测试。

管理员初始化

agent-auth-registry-admin create-developer --client-id developer-a
agent-auth-registry-admin grant-namespace \
  --client-id developer-a \
  --domain agents.example.com \
  --path-prefix /team-a
agent-auth-registry-admin list-namespaces --client-id developer-a

API key 只在创建和轮换时显示一次。admin CLI 必须读取与服务相同的 AGENT_REGISTRY_DB_PATH

HTTP 端点

  • GET /healthz
  • GET /.well-known/agent.json
  • GET /v1/agents/resolve?agent_id=...
  • POST /v1/agents/publish
  • POST /v1/agents/rotate-key
  • POST /v1/agents/add-key
  • POST /v1/agents/revoke-key
  • POST /v1/agents/revoke

应用应使用 SDK RegistryClient 调用签名写端点,不应自行拼装 canonical 请求。

完整文档

License

MIT

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

verifiable_agent_auth_registry-0.2.0b1.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file verifiable_agent_auth_registry-0.2.0b1.tar.gz.

File metadata

File hashes

Hashes for verifiable_agent_auth_registry-0.2.0b1.tar.gz
Algorithm Hash digest
SHA256 d8696a6c8b9a3d2b88c163903fc68fd7ffccbaab044da69a39132634a9e101fb
MD5 bfce281c1a79f48fce6b6e70b0f9f090
BLAKE2b-256 2d5cc1e606e798b77a22bd7b989aba9397ef92776286d9c3af9ede85a30a8106

See more details on using hashes here.

Provenance

The following attestation bundles were made for verifiable_agent_auth_registry-0.2.0b1.tar.gz:

Publisher: publish.yml on YiheHuang/agent_auth_sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file verifiable_agent_auth_registry-0.2.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for verifiable_agent_auth_registry-0.2.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 a08ac63fd2b865aa22bd763185fa57a0ebc175dc2c9c7c3de75fa26729e9b097
MD5 c95d1d54e78f1340cd17e92d04c4c192
BLAKE2b-256 263fcd0d7c1f4cf1be7c19c61329cebad3e8c8e32aaafa2097e0062c91fc34e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for verifiable_agent_auth_registry-0.2.0b1-py3-none-any.whl:

Publisher: publish.yml on YiheHuang/agent_auth_sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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