Skip to content

feature: A Registry Binding A2A Agent Cards and Workload Identity #429

Closed
rossoctl/operator
#160

Description

@usize

Feature Description

The lack of a standardized mechanism to bind agent runtime identity to Agent Cards is a well-documented gap in the A2A ecosystem. While Agent Cards may be digitally signed using JSON Web Signatures (JWS) to ensure integrity and prove the card "originates from the claimed provider," the A2A spec provides no formal method to verify that the service presenting the card is the legitimate owner of that identity.

This creates a critical security vulnerability: a cryptographically signed Agent Card proves the contents have a particular origin, but does not prove that the current holder of the card is the authorized owner.

Attack Scenario

The Cloud Security Alliance's MAESTRO framework identifies "Unauthorized Agent Impersonation" as a top threat, specifically noting the "reliance on easily spoofed Agent Cards". This vulnerability enables rogue agents to impersonate other agents by serving copied Agent Cards, thereby capturing requests intended for legitimate services.

Critically, this is a problem even when an agent is otherwise trusted. A compromised agent within the system can proceed to assume the identity of other agents by advertising their cards--which are used to advertise capabilities and skills for dynamic invocation.

Since Agent Cards are typically served over HTTPS at well-known URLs and the spec does not mandate cryptographic proof of card ownership, a malicious service could host a copied Agent Card from a legitimate agent if clients do not rigorously verify domain certificates or signatures.

Community Recommended Mitigations

Security experts recommend introducing Decentralized Identifiers (DIDs) or mutual TLS to verify agent identities, enabling agents to present cryptographic proof of identity beyond domain names.

The A2A community has proposed using workload identity frameworks like SPIFFE/SPIRE in this discussion--to issue identity certificates to agents, with Agent Cards referencing these identities (e.g., spiffe://example.com/agent123).

Agent registries with governance and cryptographic binding have also been discussed as a practical solution.

Proposed Solution

A simple Agent Card Registry Service that provides cryptographic binding between workload identities and Agent Cards through a centralized trust anchor. This registry will enable verification that agents are authorized to serve their advertised cards, closing the identity binding gap in A2A.

The registry can serve endpoints for mapping agent card signatures to workload identity (Spiffe URI, Service Account) and for verification. From there we can add support for policy enforcement from an operator, or eventually implement a decentralized identifier document solution.

Finally, we might also include build time attestation in the style of the sigstore a2a project in order to complete the chain.

Activity

  1. pdettori commented on Dec 1, 2025

    @pdettori
    Member

    I agree on the critical nature of this vulnerability. Agent Card ownership verification is a key security gap that needs to be addressed. The proposed Agent Card Registry Service seems like a good way to start, especially by leveraging existing workload identity standards like SPIFFE/SPIRE for the cryptographic binding.

    We should be clear on whether the Registry is a mandatory check for all clients or an optional feature. If it's optional, clients can still be vulnerable. If it's mandatory, it represents a significant change to the A2A spec/client implementation

  2. husky-parul commented on Dec 4, 2025

    @husky-parul

    I want to add a perspective from similar work I did in building a ModelCard Registry Service (OCI-based, signature-verified, acting as a central trust anchor). Although the domain is different, the trust problem is structurally the same.

    One thing I’ve learned is that the challenge is not only how to bind workload identity to an AgentCard at runtime, but how the AgentCard gets into the registry in the first place. Today A2A assumes that workloads can host or supply their own AgentCards, and that assumption is what opens the impersonation vector.

    In my experience, the more robust pattern is:

    1. Never trust workloads as the source of truth for their own cards.
    2. Push all trust decisions into a dedicated Agent Card Registry.

    Once you have a registry that provides:

    • secure ingestion (only trusted publisher identities or attested workloads may register/update cards),
    • signature/schema verification of the card at ingestion,
    • canonical storage (the registry’s version of the card is authoritative),
    • binding of AgentCard → workload identity,

    and a simple runtime check:
    “Is workload W authorized to present AgentCard C?”

    …then the trust model becomes significantly clearer and safer. Workload identity (SPIFFE/mTLS/DID) is still essential, but it becomes the runtime binding check, not the foundation of trust.

    In other words:

    Registry = source of truth for AgentCards

    Workload identity = proof of who is calling

    Registry policy = whether that workload is allowed to present that card

    This avoids the problem where a compromised or arbitrary workload can host or present a valid-looking card. Clients never trust cards served by workloads directly — they trust the registry to provide the authoritative card and the registry to validate the binding to the workload identity.

    The design direction in #429 (central registry + identity binding) aligns well with this pattern, but I think the spec also needs to explicitly define how AgentCards are safely ingested into the registry, not just how the registry binds them at runtime. Otherwise, a malicious publisher or misconfigured deployment could still get a bad card into the registry, and the system would faithfully enforce bindings for a card that should never have been accepted.

    Happy to expand on the ingestion/binding separation if useful.

  3. computate commented on Jan 14, 2026

    @computate

    You might consider using the OpenID for Verifiable Credential Issuance 1.0 spec which is available in upstream Keycloak as the oid4vc-vci feature.

    apiVersion: k8s.keycloak.org/v2alpha1
    kind: Keycloak
    metadata:
      name: example-kc
    spec:
      features:
        enabled:
          - oid4vc-vci

    See Decentralized IAM based on Verifiable Credentials and ODRL by FIWARE, and Deploying a FIWARE Data Space Connector.

    Red Hat Build of Keycloak does also support the spiffe feature.

  4. husky-parul commented on Jan 15, 2026

    @husky-parul

    Thanks for the suggestions around OID4VCI and SPIFFE. I wasn't aware of this capability, that’s helpful context.

    So narrowing strictly to the scope of this issue (cluster-scoped agent registry, verifiable agent identity, and discovery), here’s how I see the problem space and what existing Keycloak features can and cannot cover today.

    What Keycloak can already help with

    Using OID4VCI Keycloak can act as a Verifiable Credential issuer. Agent Cards can be modeled as signed credentials describing agent identity avoiding self-asserted metadata. SPIFFE support enables binding a workload identity to the running agent instance

    What remains unsolved by Keycloak alone

    • Agent discovery semantics: Keycloak does not provide an opinionated agent registry or discovery model (e.g., listing only verified agents, lifecycle management, or discovery filtering), cannot provide runtime SPIFFE ID authorization checks against registry bindings.

    • Verification workflows: There is no built-in mechanism to enforce “verify before register” or to gate discoverability based on credential verification.

    A registry control plane is still needed to:
    - verify VC signatures and issuer trust,
    - bind issued credentials to workload identities,
    - expose only verified agents for discovery.

    IMO since the registry is cluster-scoped, we can meet #429 with a trusted in-cluster publisher + JWS verification and a local trust bundle.

  5. computate commented on Jan 15, 2026

    @computate

    How would you create a Verifiable Data Registry with Keycloak and OID4VCI? You could use the OID4VCI compatible Trusted Issuers List Registry provided by FIWARE, very well documented by my amazing friend @wistefan at SEAMWARE.

    Things to set up for the provider:

    Trust Anchor

    Trusted Issuers List Registry

    Using a Trusted Issuers List Registry
    • Provides the Global Trusted Participants List, provides functionality to register new participants in your dataspace.
    • Create a community of data providers
    • Create a community of data consumers

    The provider as a Data Space Connector

    Includes MySQL database, PostgreSQL database, Trusted Issuers List, Verifiable Credentials Verifier, Digital Signature Service, Credentials Config Service, odrl-pap, Open Policy Agent, Transfer Process Protocol, context broker, elsi, Keycloak with oid4vc-vci feature, tm-forum-api, rainbow, contract-management

    Open Policy Agent

    APISIX

    • PEP Open Policy Agent well established components

    Things to set up for the consumers

    The Consumer is the user consuming the AI Agent, and needs to set up a Data Space Connector architecture, which includes:

  6. wistefan commented on Jan 16, 2026

    @wistefan

    @computate Thanks a lot for the nice words about our solution;)

    Just some minor corrections:

    • The Trusted Issuers Registry is EBSI compatible and we are using it for verification in OID4VP flows. The OID4VC standards do not closer specify the issuer lookup
    • The JWT Tokens are signed by the Verifier, not by Keycloak. Keycloak only has the role of Issuer. As a member of the Keycloak-OAuth-SIG and one of the implementors of the Keycloak OID4VC feature, I can also tell that currently there is no intention to implement verifier functionality in Keycloak.
    • APISIX hands the request over to the OpenPolicyAgent for the decision and enforces it. It also takes care of the JWT verification with the Verifiers JWKS endpoint

    If you want to know more about Keycloaks OID4VCI capabilities, today a Blogpost on that topic was published on the Keycloak-Page: https://www.keycloak.org/2026/01/issue-credentials-over-openid4vci

  7. moved this from In progress to In review / Needs Testing in Rossoctl Issue Prioritizationon Feb 2, 2026
  8. moved this from In review / Needs Testing to Done in Rossoctl Issue Prioritizationon Feb 4, 2026
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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions