How wouterdedroog/updat3r works
Main Components
a. Client Layer:
• External clients consuming the API
• Web interface users (dashboard)
b. Application Layer:
• Authentication System
• Web Controllers
• API Controllers
• Two-Factor Authentication System
• Middleware Layer
c. Data Layer:
• Database (likely MySQL/PostgreSQL based on Laravel)
• Storage System (for update files)
Key Architectural Elements
• MVC Architecture (evident from Laravel structure)
• REST API Architecture (for update distribution)
• Multi-authentication system (Traditional + 2FA)
Detailed Component Breakdown
Frontend Components (Blue):
• Dashboard Interface
• Authentication Pages
• Profile Management
• Project Management
• Update Management
API Layer (Green):
• v2 API Endpoints
• Legacy API Support
• API Authorization Middleware
• Request Validation Layer
Core Services (Yellow):
• Update Management Service
• Project Management Service
• Two-Factor Authentication Service
• User Management Service
Data Storage (Purple):
• User Data Store
• Project Data Store
• Updates Store
• Two-Factor Methods Store
• File Storage System
Flow Representations
• Client API Requests → API Middleware → Controllers → Models → Database
• Web Interface → Controllers → Views
• Authentication Flows
• Update File Distribution Path
Security Layer Representation (Red)
• API Authorization Middleware
• Two-Factor Authentication
• CSRF Protection
• Authentication Middleware
Specific Implementation Details
Key components:
API Endpoints:
• GET /api/v2/updates/{project}/{amount}
• GET /api/v2/updates/download/{project}/{version}
Authentication Methods:
• Traditional Login
• Two-Factor Authentication (Multiple Methods)
Database Tables:
• users
• projects
• updates
• two_factor_methods
Data Layer
Left to Right: