How fvm14/citame_devsecops works
CitaMe SecOps is a Laravel medical-appointment application reinforced with security logging, role-based controls, and two-factor authentication. A patient-facing workflow enters through the Laravel front controller, reaches appointment handling, checks doctor availability, and creates or manages appointments; doctors and administrators also manage schedules and clinical records. The README documents MySQL and Wazuh monitoring as deployment capabilities. Some route wiring and security subsystems are unsampled, so uncertain runtime connections are omitted or marked dashed rather than inferred.
Main entry points: AppointmentController.php Appointment handling · HorarioService.php Availability service · SecurityLog.php Security event logging · Appointment.php Appointment records
Components 21
Web entry
- Laravel entry
public/index.php - App bootstrap
bootstrap/app.php - HTTP kernel
app/Http/Kernel.php - Web routes
routes/web.php
Appointments and care
- Appointment handling
app/Http/Controllers/AppointmentController.php - Schedule API
app/Http/Controllers/Api/HorarioController.php - Doctor schedules
app/Http/Controllers/Doctor/HorarioController.php - Availability service
app/Services/HorarioService.php - Schedule binding
app/Providers/HorarioServiceProvider.php - Appointment records
app/Models/Appointment.php - Schedule records
app/Models/Horarios.php - Medical specialties
app/Models/Specialty.php
Identity and security
- User accounts
app/Models/User.php - Authentication and 2FA
app/Http/Controllers/Auth/TwoFactorController.php - Appointment access policy
app/Policies/AppointmentPolicy.php - Authorization registration
app/Providers/AuthServiceProvider.php
Security monitoring
- Security event logging
app/Support/SecurityLog.php - Authentication event listener
app/Listeners/LogAuthenticationEvents.php - Wazuh monitoring
Other components
- Patient / clinician
- Local MySQL
Connections 22
- Patient / clinician → Laravel entry: requests
README.md - Laravel entry → App bootstrap: loads
public/index.php - App bootstrap → HTTP kernel: binds
bootstrap/app.php - HTTP kernel → Web routes: routes requests
- Web routes → Appointment handling: dispatches
- Appointment handling → Availability service: checks availability
app/Http/Controllers/AppointmentController.php - Appointment handling → Appointment records: creates and updates
app/Http/Controllers/AppointmentController.php - Appointment handling → Medical specialties: reads
app/Http/Controllers/AppointmentController.php - Availability service → Schedule records: reads schedules
app/Services/HorarioService.php - Availability service → Appointment records: checks bookings
app/Services/HorarioService.php - Schedule binding → Availability service: binds service
app/Providers/HorarioServiceProvider.php - Schedule API → Availability service: requests intervals
app/Http/Controllers/Api/HorarioController.php - Doctor schedules → Schedule records: manages schedules
app/Http/Controllers/Doctor/HorarioController.php - Appointment handling → Appointment access policy: authorizes actions
app/Http/Controllers/AppointmentController.php - Authorization registration → Appointment access policy: registers policy
app/Providers/AuthServiceProvider.php - Appointment handling → Security event logging: records events
app/Http/Controllers/AppointmentController.php - Authorization registration → Security event logging: logs denials
app/Providers/AuthServiceProvider.php - Authentication event listener → Security event logging: logs authentication
app/Listeners/LogAuthenticationEvents.php - Authentication and 2FA → Security event logging: records 2FA events
app/Http/Controllers/Auth/TwoFactorController.php - Security event logging → Wazuh monitoring: ships security events
README.md - Appointment records → Local MySQL: persists records
- Schedule records → Local MySQL: persists schedules