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"| WP1. 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:
| Mode | Does |
|---|---|
init | Generates 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. |
| runtime | A 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 pair | Private half lives | Public half | Used for |
|---|---|---|---|
| Veritia platform | Veritia's cloud (ideally HSM/KMS) | Published via JWKS | Signing mandates |
| Agent | The user's machine only (local tool / SDK) | Sealed into each mandate as cnf.jwk | Signing each request (proof of possession) |
| Provider | The provider's infrastructure | Its own JWKS | Signing 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
| Phase | Platform | Local tool / SDK | Provider | itsme |
|---|---|---|---|---|
| 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.