[FR] Add audit log

Open
#9,996 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
18/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
django, python
Domain
backend, security

Research direction

The issue names no files or tests, so start by finding where the Django backend handles authentication failures, login, signup and MFA. Four comments and no linked pull request suggest the design is still open, so agree on which events to record and the table schema with maintainers first. Done would be an agreed design plus a first event recorded to a table, with tests.

Written by the indexing model from the issue text.

Description

enhancement security
Please verify that this feature request has NOT been suggested before.
  • I checked and didn't find a similar feature request
Problem statement

If a user receives a 401 error, it is hard to track why and also only available in the web server logs.

Suggested solution

Create a native audit log feature that tracks permission errors and login / signup / mfa actions into a table for later audit or forwarding to other systems (e.g. a SIEM).

Describe alternatives you've considered

Web server parsing; there is not all information available in there though

Examples of other systems

Nextcloud, Arena

Do you want to develop this?
  • I want to develop this.
Dominant language
Python
Stars
7.7k
Forks
1.6k
Avg merge
21h 45m
Merged PRs (30d)
204

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from inventree/InvenTree

All issues in inventree/InvenTree

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.