Skip to content

feat: add support for programmatic teams and roles#5035

Merged
Pavel910 merged 3 commits into
nextfrom
feat/security-roles-teams
Mar 21, 2026
Merged

feat: add support for programmatic teams and roles#5035
Pavel910 merged 3 commits into
nextfrom
feat/security-roles-teams

Conversation

@Pavel910
Copy link
Copy Markdown
Collaborator

@Pavel910 Pavel910 commented Mar 20, 2026

Summary

  • Replace legacy SecurityRolePlugin and SecurityTeamPlugin with new RoleFactory and TeamFactory abstractions
  • Introduce RoleProvider and TeamProvider that aggregate factory-produced roles/teams with caching
  • Add TeamsRepositoryCachingDecorator for team query caching
  • Remove tenant from the Role/Team domain models — tenant is now applied only at the storage layer via StorageRole/StorageTeam types
  • Export RoleFactory and TeamFactory from webiny/api/security for extension use
  • Update all tests and the testing harness to use the new factory pattern

@Pavel910 Pavel910 added this to the 6.0.0 milestone Mar 20, 2026
@Pavel910 Pavel910 merged commit 73ed3a3 into next Mar 21, 2026
17 checks passed
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.

1 participant