Skip to content

Harden authorization on the audit history page - #15956

Open
svader0 wants to merge 1 commit into
DefectDojo:bugfixfrom
svader0:harden-audit-history-scoping
Open

svader0 wants to merge 1 commit into
DefectDojo:bugfixfrom
svader0:harden-audit-history-scoping

Conversation

@svader0

@svader0 svader0 commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Hardening / consistency improvement to the audit history page.

The page aggregates audit events for whatever object you ask it about. This change tightens how it picks those events, so it only serves rows the caller is already authorized for. Two of the object types it handles could reach rows outside the caller's own products, and those are the two this narrows.

Adds regression tests for both, and keeps the existing behaviour for anyone who is correctly permissioned.

Tighten how the action history page scopes the pghistory events it
aggregates, so it only serves rows the caller is already authorized for.
Adds regression tests. No functional change for correctly-permissioned
users.
@Maffooch Maffooch added this to the 3.3.200 milestone Sep 17, 2026
@Maffooch Maffooch modified the milestones: 3.3.200, 3.3.300 Sep 21, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants