gotson / komga

Media server for comics/mangas/BDs/magazines/eBooks with API and OPDS support
https://komga.org
MIT License
3.76k stars 219 forks source link

Komga doesn't log unauthenticated requests #1504

Closed rmanne closed 2 months ago

rmanne commented 3 months ago

Steps to reproduce

  1. Run komga with environment LOGGING_LEVEL_ORG_GOTSON_KOMGA = "DEBUG"; and SERVER_SERVLET_CONTEXT_PATH = "/komga";.
  2. curl 'http://127.0.0.1:25600/komga/opds/v1.2/books'

Expected behavior

There should be an AuthenticationActivity (/failed) event indicated through the logs.

Actual behavior

SessionCreatedEvent: f7990268-b474-4552-accb-11ef2ca6669e

There's no indication there was an authentication failure. SessionCreateEvent is the best you get, even with debug logs.

Logs

No response

Komga version

1.11.1

Operating system

NixOS

Installation method

jar

Other details

No response

Acknowledgements

gotson commented 2 months ago

there's no authentication happening, since nothing is passed