Files
LocalAI/core/http
mudler-agentandEttore Di Giacinto 98e3f2ef95 feat(addons): log the reason behind a generic denial (#12875)
The dispatch and sibling addon routes answer 403 "Addon request
denied" for every error that is not a named type, and the server
logged only the status code. An operator could not tell which check
refused a request.

Write one Warn line at each fall-through to the generic denial: the
action (or route pattern), the add-on ID, the typed error kind and the
innermost message of the error chain. Fixed refusals (the recovery and
update action rule, an invalid add-on ID, digest or path) log the rule
name. The request body, arguments, headers, cookies and credential
references are never logged. The response is unchanged.

Assisted-by: Claude:claude-sonnet-5-5 [Claude Code]

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Co-authored-by: Ettore Di Giacinto <mudler@localai.io>
2026-10-24 01:30:41 +02:00
..
2026-03-30 00:47:27 +02:00