Skip to main content

Infortts Unified RBAC & Profile-Bound Resource Architecture

Objective​

Enforce strict Role-Based Access Control (RBAC) and profile-bound resource governance across all 45+ Infortts ecosystem services, applications, and mobile terminals via Glycocalyx (https://auth.infortts.site).


1. Core Security Invariants​

  • Zero Anonymous/Guest Access to Operational Resources: Guest mode is restricted to read-only marketing or showcase views. Guest tokens (usr_guest) have zero rights to trading accounts, order queues, live forensics, medical charts, or private fleet telemetry.
  • Single Source of Truth for Identity: Every user identity is issued and validated exclusively by Glycocalyx PostgreSQL users and profiles tables.
  • Profile-Bound Resource Scoping: All entities (MT5 accounts, API keys, patient records, trading strategies, deployment tracks) MUST carry a strict user_id and org_id foreign key. Unauthenticated or foreign user_id access queries are rejected with HTTP 403 Forbidden.
  • No Client-Synthesized Sessions: Client apps must NEVER generate synthetic operator or local mock sessions (usr_<timestamp>). If Glycocalyx SSO fails, execution stops at the authentication gate.

2. Infortts Role Taxonomy​

  • superadmin:
    • Full infrastructure, Jenkins CI/CD, Cloudflare Tunnel, and DNS orchestrator access.
    • Access to master node management, deployment manifests, and secret rotation.
  • engineer:
    • Access to code repositories, test pipelines, OTA artifact builds, and diagnostic telemetry.
    • Can trigger builds on Jenkins and push to development/preview environments.
  • trader:
    • Scoped to Mitochondria trading terminal and execution outbox.
    • Access restricted strictly to MT5 accounts, forward test status, and strategies owned by their user_id.
  • partner:
    • Scoped to Care4U Provider App (partner.care4u.infortts.site), Waptia verified store developers, and dropship vendors.
  • client:
    • Default end-user role for consumer apps (Care4U patient booking, Waptia app store downloads, Opabinia media viewer).
  • guest:
    • Non-authenticated visitor. Zero database access, restricted to public showcase screens.

3. Implementation Roadmap & Actionable Steps​

Phase 1: Glycocalyx IAM Schema Expansion​

  • Add roles (VARCHAR[]) and permissions (VARCHAR[]) to Glycocalyx profiles table.
  • Include role and permissions in signed JWT payload claims.
  • Provide /auth/verify-permission endpoint for lightweight edge/Worker validation.

Phase 2: Gateway & Service Middleware Enforcement​

  • forensics.infortts.site (projects/mitochondria):
    • Validate Authorization: Bearer <JWT> on /api/user/accounts.
    • Filter database query: SELECT * FROM mt5_accounts WHERE user_id = :jwt_user_id.
    • Reject queries without matching user_id.
  • auth.infortts.site (projects/glycocalyx):
    • WebAuthn/Passkey registration bound to user role.
    • Multi-factor verification required for superadmin and engineer roles.

Phase 3: Mobile & Frontend App Shell Governance​

  • InforttsAppShell in projects/shared:
    • Enforce role-aware tab rendering (requiredRole on InforttsTab).
    • Seamlessly hide restricted workspaces from users without appropriate clearance.
    • Cache tokens per-account and flush memory when switching profiles.