Skip to content

Authentication reference

Lookup tables for monitoring and operating HoloMUSH authentication: log events, alerting patterns, metrics, and the database tables it depends on. For the behavior these describe, see Authentication; for recovery procedures, see Authentication recovery.

EventLog LevelWhat It Means
login_failedINFOWrong credentials (normal)
account_lockedWARN7+ failures, possible attack
session_expiredDEBUGNormal lifecycle
password_resetINFOPassword was changed

Set up alerts for these patterns:

  • High rate of account_locked events — Potential brute-force attack. A burst of lockouts across multiple accounts is especially suspicious.
  • Multiple password_reset events for the same player — Could indicate account takeover attempts.
  • Unusual IP addresses or user agents — Watch for logins from unexpected geolocations or automated tooling signatures.

Both processes expose Prometheus metrics. Point your scraper at the metrics endpoints (default ports 9100 and 9101). Authentication-specific events surface through the structured logs rather than dedicated metrics, so log-based alerting (Loki, Elasticsearch, CloudWatch) is the primary monitoring path here.

Authentication depends on these tables, all created by holomush migrate up:

TablePurpose
playersPlayer accounts
player_sessionsActive sessions
password_resetsPending reset tokens
charactersPlayer characters

If you’re restoring from backup or setting up a fresh instance, run holomush migrate up before starting the server to ensure these tables exist.