Title: Security Architecture Version: 1.0 Owner: [TENANT_CONFIGURATION_REQUIRED — Security Architecture] Status: Draft Last reviewed: 2026-09-07 Next review: [TENANT_CONFIGURATION_REQUIRED] Reviewers: Security, Architecture, Compliance
Defines the security architecture underpinning the platform: zero-trust posture, encryption, access control, and tenant isolation. Complements threat-model.md (abuse cases), identity-access-control.md (RBAC/ABAC detail), and ADR-004 (MCP isolation).
flowchart TB
subgraph Untrusted [Untrusted]
U1[Candidate-submitted content]
U2[CVs/JDs/feedback text]
U3[External MCP tool responses]
U4[RAG-retrieved content]
end
subgraph SemiTrusted [Semi-trusted - authenticated but least-privilege]
S1[Recruiter/HR Web App]
S2[Candidate Secure Portal]
S3[Agent Orchestrator / Skills]
end
subgraph Trusted [Trusted core]
T1[HR Core API / Workflow Engine]
T2[Audit Service]
T3[Relational DB - System of Record]
end
U1 --> S2 --> T1
U2 --> S3
U3 --> S3
U4 --> S3
S3 -->|validated, schema-checked output only| T1
S1 --> T1
T1 --> T2
T1 --> T3
Nothing crosses from Untrusted directly into Trusted without passing through a validation/guardrail layer (Guardrail Pipeline, Output Validator — see component-architecture.md).
| Layer | Requirement |
|---|---|
| In transit | TLS 1.2+ everywhere, including internal service-to-service and MCP calls |
| At rest — database | Transparent data encryption at the storage layer, plus application-layer (column-level) encryption for PII fields (see sample-relational-schema.sql) |
| At rest — object storage | Server-side encryption, customer-managed key option for high-sensitivity tenants |
| At rest — vector store | Encryption at rest per provider; no raw PII embedded by default (see rag-architecture.md) |
| Key management | Vault-based (Azure Key Vault, AWS KMS, HashiCorp Vault, etc.) — see secrets-and-key-management.md |
Default: shared infrastructure, tenant-scoped data with tenant_id on every row plus row-level security (see sample-relational-schema.sql RLS notes) and application-layer ABAC checks as defense in depth. High-sensitivity tenants may opt into dedicated infrastructure via deployment configuration, not a code fork.
threat-model.md · ai-guardrails-policy.md · identity-access-control.md · privacy-and-pii-handling.md · secrets-and-key-management.md
| Version | Date | Author | Change |
|---|---|---|---|
| 1.0 | 2026-09-07 | Documentation package generation | Initial creation |