WIP: Security -> centralise and enforce object-level RBAC #127

Draft
rileydeman wants to merge 2 commits from rdmge/feature/S3-object-level-rbac into rdmge/develop-S3
Owner

Summary

  • Centralised project, work package and package task permissions.
  • Removed duplicate ProjectVoter implementation.
  • Centralised organisation-level permission evaluation.
  • Enforced organisation, account and role scope isolation.
  • Separated platform administration from organisation administration.
  • Removed organisation-level superadmin bypasses.
  • Centralised Staff Management and Staff View authorisation.
  • Hardened permission evaluation against deleted accounts and organisations.
  • Restored outdated Staff Management tests.
  • Added security regression tests.

Validation

  • 75 passed tests, 277 assertions.
  • 3 PostgreSQL integration tests skipped.
  • Symfony container validation passed.
  • All 130 Twig templates validated.
  • All 37 YAML files validated.
  • Git diff validation passed.

Remaining acceptance

  • Execute PostgreSQL integration and concurrency tests.
  • Confirm default organisation role permissions.
  • Complete application-wide authorisation and regression validation.

No changes to entities, migrations, routes or existing database records.

## Summary - Centralised project, work package and package task permissions. - Removed duplicate ProjectVoter implementation. - Centralised organisation-level permission evaluation. - Enforced organisation, account and role scope isolation. - Separated platform administration from organisation administration. - Removed organisation-level superadmin bypasses. - Centralised Staff Management and Staff View authorisation. - Hardened permission evaluation against deleted accounts and organisations. - Restored outdated Staff Management tests. - Added security regression tests. ## Validation - 75 passed tests, 277 assertions. - 3 PostgreSQL integration tests skipped. - Symfony container validation passed. - All 130 Twig templates validated. - All 37 YAML files validated. - Git diff validation passed. ## Remaining acceptance - [ ] Execute PostgreSQL integration and concurrency tests. - [ ] Confirm default organisation role permissions. - [ ] Complete application-wide authorisation and regression validation. No changes to entities, migrations, routes or existing database records.
Author
Owner

Full regression validation

  • 694 tests, 2,753 assertions.
  • 62 errors, 172 failures.
  • 27 skipped and 31 incomplete tests.
  • 1 existing Doctrine deprecation.
  • 20 previously failing Staff Management tests resolved.
  • No newly failing test cases compared to the previous RBAC revision.
  • No development or debug code detected by the final search.
  • Working tree clean and changes pushed.

The remaining application-wide test failures predate this revision.

The PR remains WIP pending PostgreSQL concurrency testing, final default role configuration and completion of the application-wide authorisation audit.

## Full regression validation - 694 tests, 2,753 assertions. - 62 errors, 172 failures. - 27 skipped and 31 incomplete tests. - 1 existing Doctrine deprecation. - 20 previously failing Staff Management tests resolved. - No newly failing test cases compared to the previous RBAC revision. - No development or debug code detected by the final search. - Working tree clean and changes pushed. The remaining application-wide test failures predate this revision. The PR remains WIP pending PostgreSQL concurrency testing, final default role configuration and completion of the application-wide authorisation audit.
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'rdmge/feature/S3-object-level-rbac:rdmge/feature/S3-object-level-rbac'
git switch 'rdmge/feature/S3-object-level-rbac'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
HNNW/core!127
No description provided.