Skip to content

[Console] Simplify RBAC to fixed Admin and Editor user types - #4511

Open
shangeyao wants to merge 1 commit into
apache:devfrom
shangeyao:feature/simplify-rbac
Open

[Console] Simplify RBAC to fixed Admin and Editor user types#4511
shangeyao wants to merge 1 commit into
apache:devfrom
shangeyao:feature/simplify-rbac

Conversation

@shangeyao

Copy link
Copy Markdown
Contributor

Summary

  • Replace configurable role/member/team RBAC with two built-in user types: Admin (*) and Editor (fixed permission set in UserTypeEnum).
  • Remove legacy @Permission / PermissionAspect and rely on Shiro @RequiresPermissions, with small service-level checks where needed (e.g. self-service password change, admin-only menus).
  • Drop role/member/team backend APIs, database tables, frontend pages, and obsolete E2E cases; add MySQL/PostgreSQL 3.0.0 upgrade scripts for migration.

Closes #4510

Test plan

  • Fresh install: admin login, verify menus and job operations
  • Create an Editor user and verify limited access (no system/settings/cluster admin actions)
  • Editor can change own password; cannot manage other users
  • Upgrade from 2.x schema using 3.0.0.sql on MySQL and PostgreSQL
  • ./mvnw -pl streampark-console/streampark-console-service test -Dtest=UserServiceTest,UserControllerMvcTest,UserAssemblerTest
  • ./mvnw -pl streampark-console/streampark-console-webapp exec / frontend lint + build
  • CI E2E basic suite (UserManagementTest and remaining matrix jobs)

Made with Cursor

Replace configurable role/member/team management with two built-in user
types, Shiro permission sets, and a 3.0.0 schema upgrade. Remove the
legacy @Permission aspect and obsolete RBAC UI/API/E2E coverage.

Co-authored-by: Cursor <cursoragent@cursor.com>
@shangeyao
shangeyao force-pushed the feature/simplify-rbac branch from e47e404 to f2f5dbb Compare September 4, 2026 05:42
@github-actions github-actions Bot removed the INFRA label Sep 4, 2026
@sonarqubecloud

sonarqubecloud Bot commented Sep 4, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
3.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@shangeyao
shangeyao marked this pull request as ready for review September 4, 2026 06:33
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.

[Console] Simplify RBAC to fixed Admin and Editor user types

1 participant