Skip to content

Security Model ​

Controls ​

ControlImplementation
Authenticationbearer authentication tokens
AuthorizationRoute-level role guards
ValidationZod schemas and parsing middleware
Transport hardeningHono secure headers and CORS policy
AuditabilityAudit log endpoints and service-level logging
SecretsEnvironment variables only, never committed
Cache isolationPrefix-based Valkey keys

Sensitive workflows ​

  • Password reset and account activation
  • Student approval
  • Faculty/manager administration
  • Attendance flush cron
  • Maintenance mode
  • Public material token generation

Required production posture ​

  • Rotate authentication and service secrets on every environment breach suspicion.
  • Keep CLIENT_URL strict in production.
  • Restrict cron endpoints using protected scheduler credential.
  • Prefer read-only DB credentials for reporting replicas where possible.