SuperAdmin Module

The SuperAdmin module provides platform-wide administration capabilities for managing tenants, users, analytics, and system operations. It runs as a separate deployment isolated from the main application, ensuring that only authorized super administrators can perform critical operations.

Overview

The SuperAdmin module enables:

  • Tenant Management: Create, view, update, and delete tenants across the platform
  • User Management: View and manage users across all tenants
  • Analytics: Platform-wide metrics and tenant usage statistics
  • Dashboard: Comprehensive overview of system health and activity
  • Isolated Deployment: Separate server for enhanced security and performance

Document Map

This SuperAdmin documentation includes:

  1. Business Requirements - Problem statement, use cases, and business rules
  2. Technical Architecture - Module structure, middleware stack, authentication flow
  3. Data Model - User types, tenant structure, session management
  4. Deployment - Environment configuration, Docker, Railway, Kubernetes, and security

Key Characteristics

Isolated Deployment

  • Runs independently from the main application server
  • Only loads core and superadmin modules for optimal performance and security
  • Shared database and environment configuration with main application
  • Different subdomain for network isolation (e.g., admin.yourdomain.com)

Global Authentication

  • All routes protected by super admin middleware
  • Super admin users have no tenant affiliation
  • Session-based authentication with configurable expiration
  • Access to all tenant data without restrictions

Platform Operations

  • Cross-tenant visibility and analytics
  • System-wide settings and monitoring
  • Tenant lifecycle management
  • User management across tenants

Integration Points

The SuperAdmin module integrates with:

  • Core Module: User authentication, sessions, and user data
  • Database: Shared PostgreSQL instance with main application
  • Middleware Stack: Global authorization and super admin checks
  • Analytics Service: Dashboard metrics and tenant usage statistics

Getting Started

Security Considerations

  • Super admin accounts created only via direct database access
  • HTTP-only cookies and secure session management
  • Parameterized SQL queries (no raw concatenation)
  • Comprehensive audit logging of all platform operations
  • Regular security audits and dependency updates

Table of contents


Back to top

IOTA SDK - Multi-tenant Business Management Platform