OpenA2A AIM (Agent Identity Management) and Google Cloud IAM
Google Cloud Identity and Access Management (IAM) decides who can do what on which Google Cloud resources. It grants roles to principals: people, service accounts, federated workloads and, through Agent Identity, AI agents. Agent Identity has been generally available since 2026-04-22 and gives each agent on Agent Runtime, Gemini Enterprise or Cloud Run a SPIFFE-based identity with X.509 certificates and certificate-bound tokens, and IAM policies control tool calls to Google Cloud MCP servers. OpenA2A AIM (Agent Identity Management) is an open source platform for AI agent identity. It keeps a registry of agents: each agent has an Ed25519 key, a trust score and a list of capabilities checked through an SDK, and MCP servers are attested by the agents that use them.
The two cover different layers. AIM does not accept Agent Identity credentials, service account tokens or Workload Identity Federation tokens from agents, and it does not replace IAM for access to Google Cloud. The hosted AIM Cloud adds Google sign-in.
Checked on against the Google Cloud documentation and AIM at commit 3ab8285e, opens in a new tab. Google Cloud IAM is a cloud service with no version number, so each Google source names the date its page shows as last updated, which Google writes in UTC; the pricing page shows no date, so its source names the day it was read. On the day of the check the latest entry in the IAM release notes was dated 2026-10-06. A capability that was looked for and not found was searched for in every page the IAM documentation table of contents links to, and is stated as of the day of the check. To report a line that is wrong, use the contact page.
Capability by capability
Signing people in
Google Cloud IAM
Not part of IAM, which decides what a principal that has already authenticated may do. "IAM is a tool to manage fine-grained authorization for Google Cloud." "Principals represent one or more identities that have authenticated to Google Cloud." "Principal types that represent human users include Google Accounts, Google groups, and federated identities in workforce identity pools." Workforce Identity Federation lets an external identity provider authenticate employees, partners and contractors, and it "follows the OAuth 2.0 Token Exchange specification (RFC 8693)".
Source: IAM overview, updated 2026-10-13, opens in a new tab, Workforce Identity Federation, updated 2026-10-13, opens in a new tab
AIM
The dashboard has local email and password sign-in. No single sign-on, OpenID Connect or SAML login is wired in the open source build: the repository contains Google, Microsoft and Okta provider code, but no login route calls it.
Agent identities
Google Cloud IAM
Documented. "Agent Identity provides a strongly attested, cryptographic identity for each agent that is based on the SPIFFE standard." The IAM release notes record "Agent Identity is generally available (GA)" on 2026-04-22. The services that support it are Gemini Enterprise Agent Platform Runtime (Agent Runtime), Gemini Enterprise and Cloud Run. Each agent has a SPIFFE ID "mapped directly to the resource URI where the agent is hosted", and "Because the agent itself is the principal, you grant permissions directly to this identifier to control which resources the agent can access." "Unlike service accounts, agent identities are not shared by multiple workloads by default, can't be impersonated, and don't allow developers to generate long-lived service account keys." Deleting an agent leaves its IAM bindings in place, and "you must manually remove them as part of decommissioning an agent." Agent Registry is "a centralized catalog that lets you store, discover, and govern agentic components, such as Model Context Protocol (MCP) servers, tools, standalone skills, and AI agents, within Google Cloud."
Source: Agent Identity overview, updated 2026-10-13, opens in a new tab, IAM release notes, updated 2026-10-13, opens in a new tab, Agent Registry overview, updated 2026-10-13, opens in a new tab
AIM
Each agent is registered with its own Ed25519 public key. The token endpoint accepts one grant: a JWT-bearer assertion signed with that key, in exchange for a bearer token for AIM's own agent API. AIM does not implement the client credentials grant: the token endpoint refuses it.
Source: agent_service.go, opens in a new tab, oauth_token_handler.go, opens in a new tab
Credentials
Google Cloud IAM
Documented. A service account "is identified by its email address, which is unique to the account." Applications and principals authenticate as a service account by "Obtaining short-lived credentials" or by "Using a service account key to sign a JSON Web Token (JWT) and exchanging it for an access token." The documentation warns that "Service account keys are a security risk if not managed correctly." For agents, "The system supports X.509 certificates, Google Cloud access tokens, and OIDC ID tokens." "An X.509 certificate is auto-provisioned and managed on the agent", and "Each X.509 certificate is valid for 24 hours, and Google Cloud automatically keeps it current to maintain security."
Source: Service accounts overview, updated 2026-10-13, opens in a new tab, Agent Identity overview, updated 2026-10-13, opens in a new tab
AIM
An agent can sign each request with its Ed25519 key. On routes behind the request-signature check, the server verifies the signature over the method, path, timestamp and body, and rejects a timestamp more than 30 seconds from its own clock. The action-check request is signed over the action's fields (agent, capability, resource, context and timestamp) and verified against the agent's registered key. Agent routes also accept an API key or a bearer token in place of a signature.
OAuth flows and delegation
Google Cloud IAM
Documented. "Workload Identity Federation follows the OAuth 2.0 token exchange specification." The Security Token Service "Exchanges a credential for a Google OAuth 2.0 access token", and its grant type "Must be urn:ietf:params:oauth:grant-type:token-exchange", the value RFC 8693 defines. "Impersonating a service account lets an authenticated principal access whatever the service account can access", and "you can use a delegation chain consisting of several service accounts." For agents, the Agent Identity auth manager "Handles multi-step OAuth 2.0 flows, such as user consent, authorization code exchange, and token refreshes", and an agent that acts on behalf of a user does so through a 3-legged OAuth auth provider.
Source: Workload Identity Federation, updated 2026-10-13, opens in a new tab, Security Token Service API, Method: token, updated 2026-03-13, opens in a new tab, Service account impersonation, updated 2026-10-13, opens in a new tab, Create short-lived credentials for a service account, updated 2026-10-13, opens in a new tab, Agent Identity auth manager overview, updated 2026-10-13, opens in a new tab, Agent Identity overview, updated 2026-10-13, opens in a new tab
AIM
OAuth token exchange (RFC 8693) is not implemented: the agent token endpoint accepts the JWT-bearer grant only. Delegation exists outside OAuth, in the TypeScript SDK, which creates and verifies Ed25519-signed delegation chains between keys. The AIM server does not issue or check them.
Source: oauth_token_handler.go, opens in a new tab, delegation.ts, opens in a new tab
Proof of possession
Google Cloud IAM
Documented for agent identities. "By default, agent identities use mutual TLS (mTLS) with X.509 certificates when communicating directly with Google Cloud APIs." "When agents interact across the Agent Gateway, they also use Demonstrating Proof of Possession (DPoP), creating double-bound credentials for end-to-end security." Access tokens generated for Google Cloud "are cryptographically bound to the agent's unique X.509 certificates to prevent token theft", and a default Google-managed Context-Aware Access policy enforces the binding; opting out of it across the runtime environment "isn't recommended". For other workloads, Workload Identity Federation accepts "workloads that authenticate using X.509 client certificates".
Source: Agent Identity overview, updated 2026-10-13, opens in a new tab, Authenticate to Google Cloud using an agent's own identity, updated 2026-10-13, opens in a new tab, Workload Identity Federation, updated 2026-10-13, opens in a new tab
AIM
DPoP is not found in the AIM repository at this commit. Tokens from the token endpoint are plain bearer tokens. Requests authenticated by signature are signed per call, as in the row on client authentication.
Permissions
Google Cloud IAM
Documented. IAM lets you "control who can do what on which resources". "To give the principal permission to access the resource, you grant them a role on the resource." Roles are predefined, custom or basic, and projects, folders and organizations "are organized hierarchically, which lets child resources inherit the policies of their parent resources." IAM Conditions "define and enforce conditional, attribute-based access control for Google Cloud resources." Deny policies "define deny rules that prevent certain principals from using certain permissions, regardless of the roles they're granted." Principal Access Boundary policies "are attached to principal sets and control what the principals in the principal set are allowed to do", and "A Principal Access Boundary policy limits the resources that an agent can access, regardless of other permissions that the agent has."
Source: IAM overview, updated 2026-10-13, opens in a new tab, Overview of IAM Conditions, updated 2026-10-13, opens in a new tab, Deny policies, updated 2026-10-13, opens in a new tab, Principal access boundary policies, updated 2026-10-13, opens in a new tab, Agent Identity overview, updated 2026-10-13, opens in a new tab
AIM
Each agent has a list of granted capabilities. The SDK, running inside the agent process, sends each wrapped action to the server, which compares the capability name with that list. In the default mode (monitoring) a capability outside the list is allowed and, under the default policy, raises an alert. The Python SDK's decorator also registers a capability on first use, and in this mode the server grants it automatically. In strict mode a capability outside the list is denied under the default policy, and the SDK blocks the call.
Source: agent_service.go, opens in a new tab, enforcement.py, opens in a new tab
Risk signals and access policy
Google Cloud IAM
Documented as risk findings and policies. The Security Insights dashboard, in Preview, lets an administrator "Review vulnerable human, non-human, and group identities" and "View the type and severity of identity risks associated with an organization, folder, or project." Service account usage metrics "can help you identify anomalies, either automatically or manually." With the Service Account Key Exposure Response constraint set to DISABLE_KEY, "Google Cloud will automatically disable any leaked keys that it detects", and "Google Cloud doesn't guarantee that it will detect leaked keys." For agents, "a Google-managed Context-Aware Access policy helps secure agent credentials by enforcing mTLS and DPoP token binding." A trust or risk score for a principal or an AI agent is not found in the IAM documentation as of 2026-10-17.
Source: Review security insights, updated 2026-10-13, opens in a new tab, Monitor usage patterns for service accounts and keys, updated 2026-10-13, opens in a new tab, Best practices for managing service account keys, updated 2026-10-13, opens in a new tab, Agent Identity overview, updated 2026-10-13, opens in a new tab
AIM
Each agent has a trust score calculated from nine weighted factors; a factor with no data is left out of the weighted sum. It is recalculated on events such as registration, verification by an administrator, capability changes and capability reports from the SDK. A capability violation also lowers the stored score directly. Each action check reads the stored score.
MCP servers
Google Cloud IAM
Documented. "Remote Model Context Protocol (MCP) servers let you use Google and Google Cloud services in your AI applications with governance, security, and access control." "Google and Google Cloud remote MCP servers are compliant with the MCP authorization specification." A tool call needs "The mcp.tools.call permission on the Google Cloud project, which is included in the MCP Tool User (roles/mcp.toolUser) role" and the permissions for the resource it reaches, and IAM policies can "grant or restrict MCP tool calls based on the service, tool name, OAuth client ID, or whether a tool is read-only." IAM does not reach other MCP servers: "You also can't use IAM policies or permissions to control access to non-Google Cloud MCP servers." "Google and Google Cloud remote MCP servers don't support Dynamic Client Registration or OAuth Client ID Metadata Documents." "With Agent Identity, your agent can securely authenticate to MCP servers, cloud resources, endpoints, and other agents", and MCP servers can be managed in Agent Registry. IAM has its own remote MCP server, generally available since 2026-09-10: "You can connect to the IAM remote MCP server from AI applications to inspect and manage custom roles and deny policies across your resources."
Source: Google Cloud MCP servers overview, updated 2026-10-16, opens in a new tab, Control MCP use with Identity and Access Management, updated 2026-10-16, opens in a new tab, Set up authentication to Google and Google Cloud MCP servers, updated 2026-10-16, opens in a new tab, Agent Identity overview, updated 2026-10-13, opens in a new tab, IAM release notes, updated 2026-10-13, opens in a new tab
AIM
AIM is not an OAuth authorization server for MCP. Agents submit signed attestations of the MCP servers they connect to, and the server checks each signature against the agent's registered key. A drift alert is raised when a capability detection run finds that a server's manifest has changed since the last run.
Source: mcp_attestation_service.go, opens in a new tab, mcp_manifest_service.go, opens in a new tab
Workload identity
Google Cloud IAM
Documented. A service account is "typically used by an application or compute workload, such as a Compute Engine instance, rather than a person." "Using Workload Identity Federation, you can provide on-premises or multicloud workloads with access to Google Cloud resources by using federated identities instead of a service account key", including workloads that run on AWS or Azure and identity providers that support OpenID Connect or SAML 2.0. Managed workload identities "bind strongly attested identities to your Google Kubernetes Engine (GKE) and Compute Engine workloads", are "based on Secure Production Identity Framework For Everyone (SPIFFE)", and authenticate with other workloads "through mutual TLS (mTLS) authentication." The GKE feature is in Preview; the IAM release notes record "Managed workload identities for Compute Engine are generally available" on 2026-07-27.
Source: Service accounts overview, updated 2026-10-13, opens in a new tab, Workload Identity Federation, updated 2026-10-13, opens in a new tab, Managed workload identities overview, updated 2026-10-13, opens in a new tab, IAM release notes, updated 2026-10-13, opens in a new tab
AIM
Not implemented for agents at this commit: AIM accepts no SPIFFE identity, Kubernetes service account token or external OpenID Connect issuer as an agent credential.
Source: oauth_token_handler.go, opens in a new tab, pqc_agent_auth.go, opens in a new tab
Audit
Google Cloud IAM
Documented. "Admin Activity audit logs are always written; you can't configure, exclude, or disable them." "Except for BigQuery, Data Access audit logs are disabled by default because they can generate large volumes of data." "Google Cloud MCP servers write Data Access audit logs." For agents, "When an agent acts on a user's behalf, logs show both the agent's and user's identities."
Source: Cloud Audit Logs overview, updated 2026-10-16, opens in a new tab, Agent Identity overview, updated 2026-10-13, opens in a new tab
AIM
An action check that passes its signature check is written to the audit log as a row with the agent, the capability, the resource, the stored trust score and whether it was allowed. The write is best effort: if it fails, the check still returns its decision. The log is not append-only at the database layer and is not signed.
Source: verification_handler.go, opens in a new tab, audit_log_repository.go, opens in a new tab, SECURITY.md, opens in a new tab
License and hosting
Google Cloud IAM
A managed Google Cloud service. "All use of Identity and Access Management API is free of charge." Agent Identity is supported on Gemini Enterprise Agent Platform Runtime (Agent Runtime), Gemini Enterprise and Cloud Run.
Source: Identity and Access Management pricing, read 2026-10-17, opens in a new tab, Agent Identity overview, updated 2026-10-13, opens in a new tab
AIM
The repository is Apache-2.0. Self-hosted with Docker Compose. Also offered as a hosted service, AIM Cloud, which is built from a private mirror of the repository with cloud-only additions.
Source: LICENSE, opens in a new tab, docs/DEPLOYMENT.md, opens in a new tab, docker-compose.quickstart.yml, opens in a new tab
Which layer each one covers
Google Cloud IAM
- Deciding who can do what on which Google Cloud resources, with allow, deny and Principal Access Boundary policies across the organization, folder and project hierarchy.
- Giving workloads service accounts, federated identities and managed workload identities, and giving agents on Agent Runtime, Gemini Enterprise and Cloud Run their own Agent Identity.
- Controlling tool calls to Google Cloud MCP servers with IAM policies.
- Recording configuration changes in Admin Activity audit logs, which are always written.
AIM
- Keeping a registry of agents, each with its own key.
- Scoring each agent and recording the action checks it submits.
- Checking each action an agent submits against its granted capabilities.
- Recording which MCP servers agents attest to, and alerting when a detection run finds a server's manifest changed.
A team can run both: IAM and Agent Identity for what an agent may do in Google Cloud, AIM for its registry of agents and their action checks. AIM does not accept Agent Identity credentials or Google Cloud access tokens as an agent credential at this commit. Agents authenticate to AIM with their own keys or an AIM API key, and in the open source build people sign in to the AIM dashboard with a local account.
Registering an agent with AIM
In the Python SDK, secure() registers an agent and perform_action wraps the actions to be checked. secure() needs credentials first, from aim-sdk login or an SDK downloaded from the dashboard. For a self-hosted server, AIM's README at this commit says to create the agent in the dashboard first. The capability name on the decorator is what the server compares with the agent's grants. The resource is recorded with the check and is not compared.
from aim_sdk import secure
agent = secure("my-agent")
@agent.perform_action("db:read", resource="users_table")
def get_user_data(user_id):
...