1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 09:26:03 +00:00

feat(logs): a refused page or API call leaves a Logs row

Each 401 or 403 answered to a signed-in user or to a request with
credentials (an API token) writes "Access denied (status): method path"
with the user and the address. Anonymous refusals are left out, so a
scanner cannot fill the table.
This commit is contained in:
catborise 2026-11-05 14:39:10 +03:00
parent a6a3a48000
commit 280514c029
4 changed files with 51 additions and 2 deletions

View file

@ -88,6 +88,7 @@ INSTALLED_APPS = [
MIDDLEWARE = [
"webvirtcloud.middleware.RequestIdMiddleware",
"webvirtcloud.middleware.AccessDeniedMiddleware",
"django.middleware.security.SecurityMiddleware",
"whitenoise.middleware.WhiteNoiseMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",