Skip to content

authorized users improvements#15065

Open
valentijnscholten wants to merge 5 commits into
DefectDojo:bugfixfrom
valentijnscholten:authorized-users-improvements
Open

authorized users improvements#15065
valentijnscholten wants to merge 5 commits into
DefectDojo:bugfixfrom
valentijnscholten:authorized-users-improvements

Conversation

@valentijnscholten

Copy link
Copy Markdown
Member

authorized users improvements

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@valentijnscholten valentijnscholten force-pushed the authorized-users-improvements branch from 5ee9a4e to bbcbf81 Compare June 23, 2026 21:02
- add a Django system check (dojo.E001, Tags.security) that fails loud if any
  auth-filter key the OS looks up is unregistered (silent fallback / allow-all);
  CRITICAL_AUTH_FILTERS is drift-guarded by the registry unit test
- add a scoped/no-access/superuser coverage matrix across the product-scoped
  object filters (engagements, tests, findings, endpoints, products, ...)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Maffooch Maffooch added this to the 3.0.200 milestone Jun 23, 2026
…lter list

Remove the @register(Tags.security) _check_auth_filters_wired system check and
its hardcoded CRITICAL_AUTH_FILTERS tuple. A hardcoded predefined list of
critical methods just rots and drifts from reality. The dynamic
test_all_looked_up_keys_are_registered guard (scans the tree for
get_auth_filter() lookups and asserts each is registered) covers the same
'silent fallback' risk without any hardcoded list, so keep that and drop the
list-matching test.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@valentijnscholten valentijnscholten marked this pull request as ready for review June 24, 2026 08:54
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