Files
hermes-agent/hermes_cli
Austin Pickett bc1f26792b fix(dashboard-auth): rotate dashboard-auth.log at 5MB/3 backups
audit_log() appended with a plain open(path, 'a') and no size cap, so
dashboard-auth.log grew unbounded for the life of the install — the one
log in the auth path outside hermes_logging's rotation.

Add self-contained size-check-and-rename rotation in audit.py matching
the agent.log convention (maxBytes=5MB, backupCount=3, stdlib
.1/.2/.3 naming). The pending record's UTF-8 bytes count toward the
threshold, so a crossing write rotates before appending. Implemented
locally (stdlib os.replace only) to keep the module import-light for
early-loading middleware; reusing _ManagedRotatingFileHandler would
pull in hermes_constants and break that guarantee.

Fixes #57749
2026-10-06 11:10:45 -04:00
..
…
…
…
…
…
…