Skip to content
TrustMeshVyantraa

Reference

Security architecture

Trust boundaries and controls as implemented.

Trust boundaries

Agents are semi-trusted workloads: they hold a credential scoped to the runtime API and nothing else. Model output is untrusted. People hold administrative power through sessions. The API is the only path to the database.

Controls in this build

ControlImplementation
Passwordsargon2id, 12+ characters, lockout after repeated failures
Sessionsrandom token, SHA-256 stored, httpOnly cookie, idle and absolute expiry
CSRFdouble-submit cookie + X-CSRF-Token on every mutation
RBACpermissions per role enforced on every endpoint; human-only permission set
Tenant isolationorg filter in code + PostgreSQL RLS (ENABLE + FORCE) on a non-owner role
Input validationPydantic models for every body; JSON Schema for tool parameters; 256 KB body limit
Output encodingReact escaping; no raw HTML rendering; CSV formula guard
HeadersCSP, X-Frame-Options DENY, nosniff, Referrer-Policy, Permissions-Policy
SecretsHMAC-only storage of API keys and agent credentials; redaction before persistence
Rate limitingin-process sliding windows (Redis backend planned for multi-instance)
SSRFTrustMesh makes no outbound calls to user-supplied URLs (MCP registry is metadata only); OPA and AI provider URLs come from server configuration only
Auditappend-only grants + trigger, hash chain, verification

See also the public security page.