Skip to content

[Console] Add missing RBAC checks on FlinkCluster and Variable endpoints #4380

Description

@shangeyao

Problem

Several Flink cluster and variable API endpoints are missing Shiro permission checks:

FlinkClusterController

  • page, list, alive, get, remote_url, check — no permission
  • start, shutdown, delete — no permission (any authenticated user can operate clusters)

VariableController

  • list, check/code — no permission (any authenticated user can enumerate variables by teamId)

Expected

Align with existing permission keys in t_menu (cluster:create, cluster:update, variable:view).

Proposed fix

Add @RequiresPermissions annotations using existing permission keys and Logical.OR where endpoints are shared with app workflows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions