VVeritia documentation

Architecture & security

Architecture

The three pillars of the target product, how they connect, what runs where — and how the POC maps onto it.

Built from 4 source documents

The three pillars

flowchart TB
    subgraph cloud["Veritia cloud — operated by Veritia"]
        WP["1 · Web platform<br/>itsme login · mandate form<br/>signs mandates · JWKS · revocation · dashboard"]
    end
    subgraph user["User side — operated by the user"]
        LT["2 · Local MCP server (Outil Local)<br/>npx @veritia/mcp-server<br/>for no-code / .md agents"]
        SDK["3 · Integration SDK<br/>Python / TypeScript<br/>for coded agents"]
    end
    PR["Provider (PDS)<br/>MCP endpoint · its own security"]
    IT["itsme"]
    WP <-->|"OIDC login (mandate creation only)"| IT
    LT -->|"tool calls: mandate + PoP"| PR
    SDK -->|"tool calls: mandate + PoP"| PR
    PR -->|"JWKS + revocation check"| WP

1. Web platform (cloud) — the trust anchor

  • The only component the human interacts with directly, and the only place mandates are created, modified or revoked.
  • Authenticates the human through itsme and acts as an identity broker: Keycloak is the recommended implementation, performing an OAuth 2.0 Token Exchange (RFC 8693) that turns the itsme ID token into the signed mandate (the Agent Delegation Token).
  • Publishes its public key (JWKS) and a revocation / introspection endpoint (RFC 7662).
  • Registers providers (Phase 0), discovers and reviews their tools, generates the mandate form from them.
  • Never sees the tool-call traffic and never holds an agent's private key.

2. Local MCP server — the "Outil Local"

A downloadable npm package (@veritia/mcp-server) for agents configured without code — Claude Desktop, Claude Code, GitHub Copilot… It runs on the user's machine, speaks native MCP over stdio to the AI client, and has these modes:

ModeDoes
initGenerates the agent's key pair locally; private key to a restricted-permission file (never an env var, never transmitted); prints the public key to paste into the platform.
setup (added in the POC)Redeems a one-time setup code into a local mandate file, so the raw token never sits in a shell command or an AI client's config.
runtimeA generic, tool-agnostic proxy: on start-up discovers the provider's tools through MCP tools/list (no hard-coded list — providers add tools with no change here); on every call signs a proof with the local key and forwards with the mandate attached.

Details: local tool.

3. Integration SDK

The same capabilities (key generation, per-request proof, header injection) as a library (pip install / npm install) for developers writing custom agents (LangChain, CrewAI, raw Python/TS). The SDK and the local server are alternatives, not layers — a developer picks one. A developer may also simply run the local server and talk to it from code. Not built in the POC.

Three independent key pairs

Key pairPrivate half livesPublic halfUsed for
Veritia platformVeritia's cloud (ideally HSM/KMS)Published via JWKSSigning mandates
AgentThe user's machine only (local tool / SDK)Sealed into each mandate as cnf.jwkSigning each request (proof of possession)
ProviderThe provider's infrastructureIts own JWKSSigning its own responses and the account-link assertion

No private key is ever shared or transmitted; everything holds by cross-verification. See tokens & keys.

Design principles that recur everywhere

  • The agent is identified by its key, not by an IP address. IP whitelisting was explicitly rejected (cloud agents' IPs change constantly) and replaced by proof of possession.
  • No prior validation by the bank. Mandates are valid immediately; the provider verifies cryptographically at call time. Bank approves each mandate before it is active (rejected: friction).
  • The token is never e-mailed. It is shown on screen (POC: fetched once via a one-time setup code); e-mail is only a notification.
  • One process per provider. Two banks = two isolated local-tool instances, two mandates.
  • Tool-agnostic. Nothing provider-specific is coded on Veritia's side; the mandate form is generated from the provider's confirmed tool schema.
  • The provider keeps its whole security stack. Veritia's check is added, never substituted — see tokens & keys.

Where each phase runs

PhasePlatformLocal tool / SDKProvideritsme
0 · provider registration✔ discovers + reviews tools✔ declares endpoint, accepts
1 · agent key generation✔ init
2 · human auth + mandate issuance✔ signs(✔ vouches for the account, account linking)✔ login
3 · agent configuration(✔ setup code)✔ stores mandate
4 · tool call(✔ answers revocation check)✔ signs + forwards✔ verifies, decides, executes, logs
5 · revocation / expiry✔✔ refuses next call

Step by step: end-to-end flow.

Generated 2026-11-30 by documentation/build.mjs · edit the Markdown, never this HTML.