Skip to content

feat(audit): enhance log filtering to include config change entries#182

Merged
dkmstr merged 1 commit into
v4.0from
dev/v4.0-openuds-server-auditlog
Jul 2, 2026
Merged

feat(audit): enhance log filtering to include config change entries#182
dkmstr merged 1 commit into
v4.0from
dev/v4.0-openuds-server-auditlog

Conversation

@aschumann-virtualcable

Copy link
Copy Markdown
Contributor

This pull request enhances the audit report generation in server/src/uds/reports/lists/audit.py by improving how configuration change logs are detected and processed. The main focus is to ensure that configuration changes, even when logged as plain "logs" entries, are included in the report alongside standard REST logs.

Audit log filtering and parsing improvements:

  • Updated the log query in gen_data to include both REST log sources and plain log entries that contain the configuration change marker, ensuring all relevant config changes are captured.
  • Added logic to detect and parse config change entries stored as plain "logs", extracting the user and value changed, and yielding them in the report in a consistent format.

Codebase enhancements:

  • Imported Q from django.db.models to support more flexible query filtering.

@dkmstr dkmstr merged commit 0770b3f into v4.0 Jul 2, 2026
1 of 2 checks passed
@aschumann-virtualcable aschumann-virtualcable deleted the dev/v4.0-openuds-server-auditlog branch July 2, 2026 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants