Skip to content

JRaft ops interface should require authority #4917

@haoyann

Description

@haoyann

Is your feature request related to a problem? Please describe.
Anyone can request this interface, permission should be required.

    @PostMapping(value = "/raft")
    public RestResult<String> raftOps(@RequestBody Map<String, String> commands) {
        return protocolManager.getCpProtocol().execute(commands);
    }

Describe the solution you'd like
Only the administrator can request this interface.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions