diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c3c1290..34f4f6e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go-version: ['1.26.9'] + go-version: ['1.26.11'] steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 @@ -39,7 +39,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: '1.26.9' + go-version: '1.26.11' - name: Install govulncheck run: go install golang.org/x/vuln/cmd/govulncheck@latest - name: Audit Go dependencies diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index fb983c2..10a320b 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -27,4 +27,4 @@ jobs: working-directory: python run: | pip install --upgrade pip pip-audit - pip-audit --progress-spinner off + pip-audit --progress-spinner off . diff --git a/AGENTPIN_TECHNICAL_SPECIFICATION.md b/AGENTPIN_TECHNICAL_SPECIFICATION.md index 802414f..eb34315 100644 --- a/AGENTPIN_TECHNICAL_SPECIFICATION.md +++ b/AGENTPIN_TECHNICAL_SPECIFICATION.md @@ -125,7 +125,8 @@ - [15. Privacy Considerations](#15-privacy-considerations) - [16. IANA Considerations](#16-iana-considerations) - [17. Conformance Requirements](#17-conformance-requirements) -- [18. Future Work](#18-future-work) +- [18. Web Bot Auth Binding (v0.4)](#18-web-bot-auth-binding-v04) +- [19. Future Work](#19-future-work) - [Appendix A: JSON Schema Definitions](#appendix-a-json-schema-definitions) - [Appendix B: Example Implementations](#appendix-b-example-implementations) - [Appendix C: Relationship to Existing Standards](#appendix-c-relationship-to-existing-standards) @@ -343,6 +344,7 @@ The discovery document is a JSON object with the following top-level structure: | `policy_url` | string | OPTIONAL | URL of a human-readable policy document describing the entity's agent governance. | | `schemapin_endpoint` | string | OPTIONAL | URL of the entity's SchemaPin discovery document, if any. Enables cross-protocol discovery. | | `a2a_endpoint` | string | OPTIONAL | (v0.3) URL of the entity's A2A AgentCard endpoint (typically `https://{domain}/.well-known/agent-card.json`). Enables cross-protocol discovery from AgentPin into A2A. See §4.9, §4.10. | +| `web_bot_auth` | object | OPTIONAL | (v0.4) `{"signature_agents": ["https://…"]}`: the Web Bot Auth key directories this entity vouches for. See §18. | | `max_delegation_depth` | integer | REQUIRED | Maximum delegation depth this entity permits. MUST be between 0 and 3 inclusive. | | `updated_at` | string | REQUIRED | ISO 8601 datetime of the last update to this document. | @@ -942,6 +944,7 @@ integer, `capabilities` an array of strings, and `agentpin_version` MUST equal | `constraints` | object | OPTIONAL | Operational constraints (see §5.5). | | `delegation_chain` | array | OPTIONAL | Delegation attestations (see §5.6). | | `nonce` | string | OPTIONAL | Challenge nonce for mutual verification (see §9). | +| `cnf` | object | OPTIONAL | (v0.4) Key confirmation binding the credential to a Web Bot Auth key: `{"jkt": ""}` (see §18). | ### 5.4 Capability Claims @@ -1942,6 +1945,8 @@ This specification would register the following if submitted as an RFC: - (v0.3) Perform DNS TXT cross-verification at `_agentpin.{domain}` (§4.8.3) as a second-channel trust signal. When implemented, the verifier MUST treat a mismatching record as a hard `DISCOVERY_INVALID` failure and an absent record as a no-op. - (v0.3) Accept A2A AgentCards (§4.10) as discovery input, provided they have been verified per §4.10.4 (extension-signature verification AND key thumbprint matched against the AgentPin discovery document, unless an out-of-band provenance check is documented). +- (v0.4) Accept Web Bot Auth signed requests and bind them to AgentPin credentials (§18). When implemented, all of §18.4 MUST be applied. + ### Verifiers SHOULD: - Enforce credential constraints (domain, rate limit, data classification). - Cache discovery documents per HTTP cache headers. @@ -1951,7 +1956,117 @@ This specification would register the following if submitted as an RFC: --- -## 18. Future Work +## 18. Web Bot Auth Binding (v0.4) + +Web Bot Auth (WBA, draft-ietf-webbotauth-httpsig-protocol) lets an automated +client sign HTTP requests with RFC 9421 HTTP Message Signatures so that +origins and edge providers can recognize it. A WBA signature identifies an +agent by the HTTPS URL of its key directory. AgentPin identifies an agent by +a domain-anchored credential. This section binds the two, so that a request +recognized at the edge by its WBA signature can also be attributed to a +specific AgentPin agent with its capabilities and constraints. + +WBA keys are Ed25519 or RSA and separate from the ES256 keys of §7. The ES256 +credential profile (§5) is unchanged, and an ES256 credential key MUST NOT +be used to sign HTTP messages. + +### 18.1 Signing Requests + +An agent signs requests per the WBA draft: + +- `alg="ed25519"` with an Ed25519 key, or `alg="rsa-pss-sha512"` with an + RSA key. Signers SHOULD use RSA keys of 2048 to 4096 bits, and verifiers + MUST accept 2048 to 8192 bits. Ed25519 is RECOMMENDED. When present, + `alg` MUST match the key type. +- `keyid` is the JWK SHA-256 thumbprint of the key, base64url without + padding: RFC 8037 Appendix A.3 for Ed25519, RFC 7638 for RSA. +- `tag="web-bot-auth"`; `created` and `expires` are REQUIRED, and + `expires - created` SHOULD NOT exceed 24 hours. +- The covered components MUST include `@authority` (or `@target-uri`) and + the `Signature-Agent` member naming the agent's key directory + (`"signature-agent";key="