Skip to content
TrustMeshVyantraa

Security

Security is the product, so here is exactly how it works

This page states what TrustMesh enforces in this build, how, and where its guarantees end. Items are labelled Beta (implemented and tested, not yet production-validated) or Planned.

No certifications or attestations

TrustMesh has not completed SOC 2, ISO 27001 or any third-party audit or penetration test. These are planned before general availability. GDPR and similar laws apply to how organizations use software; TrustMesh does not claim to make you compliant.

Zero-trust principles

Beta

Every call is authenticated with a credential bound to one identity: a session for people, a scoped API key for automation, a per-agent credential for agents. Nothing is trusted because of where it comes from. Model output is treated as untrusted data.

Agent identity

Beta

Each agent has its own credential (tmag_…). Only an HMAC of the secret is stored; it is shown once and can be revoked. Agent credentials are accepted only by /v1/runtime endpoints and are rejected everywhere else.

Least privilege

Beta

Agents are granted specific tools and specific actions. A tool that is not granted is denied before policy evaluation. Management API keys carry scopes and can never exercise human-only permissions.

Deterministic authorization

Beta

Policies are evaluated by trusted code (built-in evaluator, or Open Policy Agent via the Rego adapter) with fixed precedence. Risk scores come from deterministic rules. No model output is part of the decision input, and risk can only raise an allow to require-approval.

Fail closed

Beta

Unknown agent, disabled or quarantined agent, unknown tool, changed schema, invalid input, rate limit, or an unreachable policy engine all produce DENY (or QUARANTINE for schema drift). The Python SDK raises and does not run the tool if TrustMesh cannot be reached.

Schema validation and fingerprints

Beta

Every tool has a JSON Schema for its input and a SHA-256 fingerprint over its name, description and schema. A different fingerprint at call time quarantines the tool until a reviewer approves or rejects the change.

Human approval

Beta

Approvals require a signed-in person whose role satisfies the rule. API keys and agents cannot approve. Separation of duties can block the requester. On approval TrustMesh re-evaluates policy and status; an approval never overrides a deny or quarantine. Expired requests are denied.

Audit evidence

Beta

Events are append-only for the application database role (no UPDATE/DELETE grant, plus a trigger) and hash-linked: record_hash = sha256(prev_hash ‖ canonical event). Verification recomputes the chain and reports the first altered record.

Tenant isolation

Beta

Every query is filtered by organization in code, and PostgreSQL row-level security (ENABLE + FORCE) filters again using a per-transaction setting. The application connects as a non-owner role without BYPASSRLS. Cross-tenant access is covered by automated tests.

Sessions, CSRF and headers

Beta

Server-side sessions in httpOnly cookies, CSRF double-submit tokens on every mutation, argon2id password hashing, login lockout, rate limits, strict security headers and RFC 9457 errors without stack traces.

Secrets and redaction

Beta

Secrets are never stored in plain text. Parameters whose names look like secrets are redacted before anything is persisted, logged or sent to an optional AI provider. In production, secrets come from AWS Secrets Manager (configuration provided, not deployed).

Encryption

Planned

Production design: TLS everywhere, RDS and S3 encryption with AWS KMS customer-managed keys. This build runs locally and is not deployed; encryption at rest depends on the deployment.

Limits

What the audit chain does not guarantee

Hash-linking makes changes to existing events detectable. It does not stop someone with full control of the database from rewriting the whole chain consistently, and it cannot prove that an event was written in the first place. The production design adds:

  • KMS-signed checkpoints of the chain head at intervals (planned),
  • export of checkpoints to S3 with Object Lock in a separate AWS account (planned),
  • an offline verifier that checks signatures against published public keys (planned).

Decisions and their audit events are written in the same database transaction, so the API never returns a decision without its evidence.

Vulnerability disclosure

Report a security issue

Please report suspected vulnerabilities through the security contact form. A dedicated security mailbox and security.txt will be published with the production deployment. Do not test against systems you do not own; use the sandbox or a local installation.