shangeyao opened a new issue, #4510:
URL: https://github.com/apache/streampark/issues/4510

   ## Background
   
   StreamPark currently ships a configurable RBAC model based on roles, 
role-menu bindings, team membership, and a custom `@Permission` aspect for 
resource-level checks. This adds significant operational and maintenance 
overhead for most deployments, where only a small set of fixed capabilities is 
needed.
   
   ## Proposal
   
   Simplify authorization to two built-in user types stored on 
`t_user.user_type`:
   
   - **Admin** — full access (`*`)
   - **Editor** — fixed permission set for job and development resources 
(app/sql/project/resource/etc.)
   
   ### Scope
   
   1. Remove role/member/team management APIs, entities, mappers, and UI pages
   2. Derive Shiro roles and permissions directly from `UserTypeEnum`
   3. Remove the legacy `@Permission` annotation and `PermissionAspect`
   4. Keep API authorization via Shiro `@RequiresPermissions`
   5. Add MySQL/PostgreSQL `3.0.0` upgrade scripts to migrate legacy team-admin 
membership and drop obsolete RBAC tables
   6. Update frontend permission checks and remove obsolete E2E cases
   
   ## Motivation
   
   - Reduce complexity for operators and contributors
   - Make authorization behavior predictable and easier to test
   - Align with StreamPark 3.0 simplification goals
   
   ## Notes
   
   Team identifiers remain in the data model for existing resources, but 
team/member/role administration is removed from the console.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to