# Security Lab architecture

> For the complete documentation index, see [llms.txt](https://deploy-preview-522--lucky-concha-f3599f.netlify.app/llms.txt).

[Learning Guide — TraderX Security Lab (Planned)](https://deploy-preview-522--lucky-concha-f3599f.netlify.app/docs/learning/state-019-traderx-security-lab.md): purpose, walkthrough, and related learning states.

# Security Lab architecture

This is the target trust-boundary model, not a claim that every integration is live.

Diagram source

```mermaid
flowchart TB
  learner[Browser and test runner] --> edge[TLS gateway and WAF]
  learner --> identity[OIDC provider]
  edge --> api[Identity-aware trading APIs]
  edge --> broker[NATS scoped WebSocket identities]
  api --> broker
  api --> db[PostgreSQL service roles]
  broker --> worker[Trading workers]
  worker --> db
  runtime[Runtime observation and enforcement] -.-> api
  runtime -.-> worker
  api -.-> evidence[Independent evidence collector]
  db -.-> evidence
  broker -.-> evidence
```

Application workloads have dedicated tokenless service accounts, restricted execution and bounded resources. Default-deny ingress/egress surrounds explicitly permitted dependencies. Operator routes are a separate access boundary. The assumed-compromise fixture shares only deliberately specified service authority; its evidence collector and reset authority remain outside that trust boundary.

Canonical detailed architecture and control inventory are in the [C3 profile system artifacts](https://deploy-preview-522--lucky-concha-f3599f.netlify.app/specs/platform-convergence-c3/security-lab/system/trust-boundaries.md). Generation of final deployment and derived architecture views is still pending.
