Skip to content

Metadata should declare which signing algorithms a server accepts, not just what it signs with #58

Closed

Description

@dickhardt

AAuth has no metadata field declaring which signing algorithms a server will accept from clients. This is a different question from what it signs with, and only the latter is currently answerable.

  • What a server signs with is declared by jwks_uri. Each JWK carries kty/crv/alg, so fetching the JWKS answers it. AAuth correctly has no separate list for this; it would be redundant.
  • What a server accepts on incoming agent-signed requests and tokens is declared nowhere.

The only *_supported fields in AAuth today are scopes_supported and claims_supported, both PS-only, and neither is about algorithms.

Why this matters for AAuth specifically

Today an agent learns a server's accepted algorithms only reactively: sign, get rejected, read the list, retry. HTTP Signature Keys defines that path and requires the feedback member, so it does work:

HTTP/1.1 401 Unauthorized
Signature-Error: error=unsupported_algorithm,
    supported_algorithms=("Ed25519" "ES256")

But it costs a round trip and a failure on first contact, which cuts against AAuth's premise that an agent can act with no pre-registration. An agent that holds several keys, or that can generate one on demand, has no way to pick a conformant one before its first request. It has to guess, fail, and retry.

The reactive path should stay regardless. This is about letting an agent skip the failure when the server has bothered to say.

Precedent: RFC 9728 already makes this exact distinction

AAuth's metadata section already discusses RFC 9728 and notes where it deliberately diverges. RFC 9728 defines both directions as separate parameters:

Parameter Direction
resource_signing_alg_values_supported algorithms the resource uses signing its own responses
dpop_signing_alg_values_supported algorithms the resource accepts when validating client-signed DPoP proof JWTs

The second is the close analog. A DPoP proof is a client-signed proof-of-possession JWT the server validates — structurally the same situation as an agent-signed HTTP Message Signature or agent token in AAuth. RFC 9728 treats "what I accept from you" as worth its own parameter, distinct from "what I sign with."

Proposal

Add an OPTIONAL field to the shared metadata table, so all four documents (aauth-agent.json, aauth-resource.json, aauth-person.json, aauth-access.json) get it. Every role verifies inbound signatures, so every role has an answer.

Naming, following the *_alg_values_supported convention but in AAuth's unprefixed style:

  • request_signing_alg_values_supported — names the direction explicitly. Preferred.
  • signature_alg_values_supported — shorter, but does not say which direction.
  • accepted_signing_alg_values — unambiguous, but breaks the convention.

Semantics roughly: a JSON array of JWS alg values the server accepts when verifying signatures on inbound requests and tokens. OPTIONAL; when absent, a client discovers the set reactively via unsupported_algorithm. When present it is advisory, not a contract, and a server still returns unsupported_algorithm for anything it declines.

Interaction with fully-specified algorithms

Values here should be fully-specified identifiers (Ed25519, not EdDSA) per #57 and the Algorithm Determination rule in HTTP Signature Keys (dickhardt/signature-key#19).

That rule makes this field more useful than it would otherwise be: since a fully-specified alg determines the key type and curve, a list like ("Ed25519" "ES256") tells the agent not just which algorithms are acceptable but which keys to generate. EdDSA would not, since it leaves Ed25519 and Ed448 ambiguous.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JUw6whXVWSf3syRDMQHY8S

Activity

  1. added 2 commits that reference this issue on Aug 6, 2026
    d34eba7
    4cfedc4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions