shangeyao opened a new pull request, #4381:
URL: https://github.com/apache/streampark/pull/4381

   ## Summary
   
   - Add `@RequiresPermissions` to unprotected `FlinkClusterController` 
endpoints (`page`, `list`, `alive`, `get`, `start`, `shutdown`, `delete`, etc.).
   - Add `@RequiresPermissions("variable:view")` to `VariableController.list` 
and guard `check/code` with variable permissions.
   - Use `Logical.OR` on cluster `list`/`alive` so app create/edit flows 
(`app:add`/`app:update`) can still load cluster options.
   
   Closes #4380
   
   ## Test plan
   
   - [ ] User without `cluster:update` cannot start/shutdown/delete clusters
   - [ ] User with `app:add` can still load cluster list in Flink app form
   - [ ] User without `variable:view` cannot list variables by teamId
   
   Made with [Cursor](https://cursor.com)


-- 
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