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:
parent
a6a3a48000
commit
280514c029
4 changed files with 51 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue