Skip to content

feat(services): add log and login/session services#982

Open
karlitschek wants to merge 1 commit intomasterfrom
split/05-services-logs-sessions
Open

feat(services): add log and login/session services#982
karlitschek wants to merge 1 commit intomasterfrom
split/05-services-logs-sessions

Conversation

@karlitschek
Copy link
Copy Markdown
Member

Adds four read-only service classes used by the upcoming admin dashboard cards. None are wired into existing controllers yet, so this change is a pure addition with no behavior change.

  • LogTailReader - last N WARN/ERROR entries from the JSON log
    (no shell, line-bounded)
  • LoginStats - bruteforce attempt counters and the top
    offending IPs over recent windows
  • ActivityRate - oc_activity row counts over the last hour /
    day / week
  • ActiveConnections - session counts derived from oc_authtoken

Adds four read-only service classes used by the upcoming admin
dashboard cards. None are wired into existing controllers yet, so
this change is a pure addition with no behavior change.

* LogTailReader     - last N WARN/ERROR entries from the JSON log
                      (no shell, line-bounded)
* LoginStats        - bruteforce attempt counters and the top
                      offending IPs over recent windows
* ActivityRate      - oc_activity row counts over the last hour /
                      day / week
* ActiveConnections - session counts derived from oc_authtoken

Signed-off-by: Frank Karlitschek <frank@nextcloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant