Skip to content
Back to the app

Zero-Trust Architecture ​

CHANGENTS.AI implements a zero-trust security model: every request is authenticated and authorised, regardless of where it originates. No service or user is implicitly trusted.


Core Principles ​

1. Verify Explicitly ​

Every API call — internal or external — requires a valid, verified identity token. There is no "trusted network" bypass.

2. Least Privilege ​

Users and services receive the minimum permissions required for their role. Agents can only call the tools explicitly granted to them.

3. Assume Breach ​

The system is designed with the assumption that any component could be compromised. Lateral movement between services is prevented by per-service authentication.


Architecture ​

[User] ──JWT──▶ [API Gateway]
                     │
              Validate JWT signature
              Check RBAC permissions
                     │
                     ▼
              [Agent Service]
                     │
              Service-to-service token
                     │
                     ▼
              [Tool Executor]
                     │
        Credential Vault (encrypted)
                     │
                     ▼
              [External APIs / DBs]

Implementation Details ​

JWT Verification ​

Every incoming request header is verified:

  • Signature validity (HMAC-SHA256)
  • Token expiry (exp claim)
  • Issuer (iss claim must match platform)
  • User existence in the database (tokens are not valid after account deletion)

Service-to-Service Authentication ​

The backend and the agent service authenticate each other with a shared key, INTERNAL_SERVICE_TOKEN, which is never exposed to end users.

  • Calls are signed: an HMAC-SHA256 over the method, the path, a hash of the exact body and a timestamp, sent as X-Internal-Signature. A signature is good for that one request for 5 minutes (INTERNAL_SIGNATURE_WINDOW_SECONDS), so a captured header cannot be replayed against another route or with another body, or later.
  • Every comparison of a key or signature is constant-time.
  • Two keys are accepted while one is rotated: set INTERNAL_SERVICE_TOKEN_NEXT on every service, swap the two values, then remove INTERNAL_SERVICE_TOKEN_NEXT. Rotation is manual.
  • The older unsigned header (the key itself, X-Internal-Service-Token) is still accepted and still sent alongside the signature, so upgrading changes nothing. INTERNAL_SERVICE_SEND_STATIC=false stops sending it; INTERNAL_SERVICE_STATIC_TOKEN=reject stops accepting it once every caller signs.
  • There is no mutual TLS between services: they rely on the private network they run on and on the signed requests above.

Credential Vault ​

Integration credentials (API keys, OAuth tokens) are:

  • Encrypted at rest with AES-256
  • Decrypted only in memory, at the moment of use
  • Never logged, never included in error messages
  • Accessible only by the service that owns the integration

Agent Sandboxing ​

Each agent execution runs in an isolated context:

  • Agents can only access tools explicitly configured in their workflow
  • Tool calls are routed through the Tool Executor service, which validates the call against the agent's permission set
  • Code Node and Python Node run in sandboxed containers (E2B) with no network access by default

Network Security ​

  • All traffic between client and server uses TLS 1.3
  • No internal service is exposed to the public internet
  • Database ports are accessible only from the application's private network
  • Redis (cache) and MongoDB are on private VPCs

Threat Monitoring ​

The platform monitors for:

  • Brute-force login attempts (rate-limited + lockout after 5 failures)
  • Unusual API usage patterns (anomaly detection on request volume)
  • OAuth token replay attacks (token rotation + single-use refresh tokens)
  • Prompt injection attempts in agent inputs (content moderation layer)

What's Next? ​

Served from this deployment. No page view leaves it.