VectorVue Compliance API Specification
This specification defines tenant-scoped compliance and auditor API behavior.
1. Response Envelope
Compliance responses return signed payload envelopes:
{
"data": {},
"signature": {
"algorithm": "HMAC-SHA256",
"key_id": "vv-compliance-v1",
"signed_at": "2026-02-19T15:30:00Z",
"signature": "hex_hmac"
}
}
2. Authentication and Authorization
- Bearer JWT required for tenant-scoped compliance reads
- Tenant resolved from JWT
tenant_id POST /audit/sessionrequires roleauditor,admin, orlead
3. Endpoints
POST /audit/session
Creates a time-limited audit session token record.
GET /compliance/frameworks
Returns active frameworks and latest framework scores for tenant.
GET /compliance/{framework}/controls
Returns mapped controls and latest evaluated control state.
GET /compliance/{framework}/score
Returns latest compliance score and coverage.
GET /compliance/{framework}/report
Returns control summary, dataset hash, evidence metadata, and report context.
GET /compliance/audit-window
Returns observation/evidence/evaluation counts for selected framework and period.
4. Integrity and Reproducibility Model
- append-only compliance evidence records
- hash chain integrity between compliance events
- dataset hash for deterministic export validation
- signed API response envelope for transmission integrity checks
5. Operational Requirements
- Apply migrations and deploy workers.
- Keep daily compliance evaluation jobs active.
- Validate endpoint behavior in smoke checks before audit windows.