-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Track additional events in the Audit Log #2797
Comments
The biggest concern here is that currently, the AuditLog entities are associated with a project and, in most cases, a specific environment (see here). We will need to update the AuditLog model to be associated with only an organisation. Given the size of the AuditLog table, we would need to consider any impact the migration may have (although, since we'd be adding it as nullable, I think it would be fine). Subsequently, we will need to change to the underlying functionality used when creating an AuditLog record. The method here relies on the entity being associated with an environment or a project. We will need to update this to handle entities that are only associated with an organisation. We can achieve some of this by ensuring that the There would also likely be some FE changes required to display these in the UI appropriately and we may also need to adjust the end point used (we recently moved from a generic /api/v1/audit to /api/v1/projects/:id/audit). |
From what I can tell, the high level approach here should be:
These 2 steps should get us about 70% of the above logic. The tricky ones to deal with are:
These actions do not result in a model creation so will need to be handled separately. You can see examples of this already happening by looking at the task functions here. We will also need to adjust the logic such that we can create multiple audit log records from a single model change. For example, when a user changes their password, this should create an AuditLog record in all organisations that the user belongs to. |
Following some discussion, we agreed the following clarifications (correct me if I'm wrong):
|
Some decisions from the weekly call 19 Oct 2023:
|
A user requests, for all events, track the date, time, logged in user (if possible) and the source user’s IP address of the event:
The text was updated successfully, but these errors were encountered: