Skip to main content

CORTEX Platform

CORTEX is a multi-tenant SaaS business management platform built for enterprises that need secure, scalable, and compliant operations management.

What is CORTEX?

CORTEX provides the foundational infrastructure every SaaS application needs:

  • Multi-Tenancy — Complete data isolation between tenants with Row Level Security
  • Authentication — JWT-based auth with token rotation, session management, and account lockout protection
  • Authorization (RBAC) — Hierarchical role-based access control with permission inheritance
  • Organization Management — Nested organizational hierarchy within tenants
  • User Management — Complete user lifecycle from registration to deactivation
  • Audit Logging — Immutable, queryable audit trail for compliance
  • Error Handling — RFC 7807 Problem Details for consistent error responses

Architecture at a Glance

┌─────────────────────────────────────────────────────┐
│ CORTEX Platform │
├─────────────────────────────────────────────────────┤
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────────────┐ │
│ │ Auth │ │ Tenant │ │ Organization │ │
│ │ Module │ │ Module │ │ Module │ │
│ └──────────┘ └──────────┘ └──────────────────┘ │
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────────────┐ │
│ │ User │ │ RBAC │ │ Audit │ │
│ │ Module │ │ Module │ │ Module │ │
│ └──────────┘ └──────────┘ └──────────────────┘ │
│ │
├─────────────────────────────────────────────────────┤
│ NestJS │ Prisma ORM │ PostgreSQL │ Redis │
├─────────────────────────────────────────────────────┤
│ Azure Cloud Infrastructure │
└─────────────────────────────────────────────────────┘

Key Design Principles

PrincipleImplementation
Zero TrustEvery request is authenticated and authorized
Tenant IsolationCross-tenant access returns 404 (not 403) to prevent information leakage
Immutable AuditAll changes are logged and cannot be modified
RFC ComplianceError responses follow RFC 7807 Problem Details
Enterprise GradeNo hardcoded values, configurable via environment

Technology Stack

LayerTechnology
RuntimeNode.js 20 LTS
FrameworkNestJS 10
LanguageTypeScript (strict mode)
DatabasePostgreSQL 16
CacheRedis 7
ORMPrisma 5
AuthenticationJWT (access + refresh tokens)
CloudMicrosoft Azure
CI/CDAzure DevOps Pipelines
ContainerizationDocker