Strapi 5 Overview
Strapi 5 is the headless CMS layer. It holds content, reference data and policy authoring. It is not the transactional backend.
Strapi owns
Content:
- pages
- FAQs
- safety guides
- help articles
- announcements
- terms and privacy content
Reference data:
- organisations
- communities
- commute hubs
- service areas
- vehicle types
- relationship types
Configuration:
- pilot configuration
- compliance policies
- compliance rules
- risk signal definitions
- eligibility rules
- contribution policies
- media
Strapi does not own
- authentication
- users
- identity verification transactions
- driver and vehicle verification
- journeys
- journey stops
- route tracking
- ride requests
- matches
- bookings
- contributions
- ratings
- incidents
- live locations
- compliance decisions
- audit events
The Khawi API owns
- authentication
- users
- driver and vehicle verification
- journeys
- ride requests
- matching
- bookings
- live journeys
- safety incidents
- compliance execution
- audit logs
Operational and spatial data lives in PostgreSQL + PostGIS.
The boundary that matters
Authoring is not activation.
Strapi is where a rule is written. The KHAWI API is where a policy_version is activated in PostgreSQL and evaluated against. The active version is a fact recorded with every compliance decision.
This is why Strapi must not own compliance decisions. If the CMS held them, a content edit could change the outcome of a live decision, and the audit trail would stop being a record of anything.
Strapi draft a rule
↓
KHAWI Admin activate a policy version
↓
PostgreSQL record which version decided what
↓
Compliance evaluateAccess
The public web application must not directly expose unrestricted Strapi administration or content APIs. The KHAWI API is the controlled gateway, and any direct Strapi access requires a specific, documented reason.
See API Gateway.
