Skip to main content
Trust and identity management ensures secure agent operations through role-based access control and identity verification. Bindu authenticates with Ory Hydra (OAuth2/OIDC); enterprise IdPs (Keycloak, Azure AD, Okta, Auth0) federate into Hydra rather than appearing as direct provider values.
Implementation status (2026-05). The TypedDicts on this page (KeycloakRole, AgentTrust) ship in bindu/common/protocol/types.py and are accepted by the trust extension. The authorization-layer enforcement (the require_permissions flag in bindu/auth/) is being rebuilt on Ory Kratos; until that lands, role-based enforcement on RPC methods may not be wired up end-to-end. The KeycloakRole name is historical — the shape stays whether the federated IdP is Keycloak or another OIDC provider.

KeycloakRole

Schema:
Use Case: Enterprise Admin Role
What it’s for: Defining roles with specific permissions and trust levels in Keycloak. Maps to external identity providers (Azure AD, Okta) for SSO integration. Operation permissions specify minimum trust levels required for specific actions.

AgentTrust

Schema:
The IdentityProvider type alias only accepts "hydra" or "custom" today (see types-and-enums). Federation to Keycloak, Azure AD, Okta, or Auth0 is configured upstream of Hydra — at the trust layer the provider is still recorded as "hydra".
Use Case: Trusted Data Processing Agent
What it’s for: Configuring trust and identity for agents. Inherits roles from identity providers, uses certificates for cryptographic verification, and defines operation-level permissions. Trust verification ensures the agent’s identity is validated before execution.

Trust Architecture

Trust Verification Flow: Summary: Trust and identity management combines role-based access control with enterprise identity providers. KeycloakRole defines permissions and trust levels with SSO mappings. AgentTrust configures agent identity verification using certificates and inherited roles. Each operation requires minimum trust levels, enabling fine-grained security for enterprise deployments, multi-tenant platforms, and high-security operations.