[refactor](http) disable snapshot and get_log_file api (#27724)
Disable 2 http api by default: 1. BE's `/api/snapshot` 2. FE's `/get_log_file`
This commit is contained in:
@ -55,6 +55,9 @@ public class GetLogFileAction extends RestBaseController {
|
||||
|
||||
@RequestMapping(path = "/api/get_log_file", method = {RequestMethod.GET, RequestMethod.HEAD})
|
||||
public Object execute(HttpServletRequest request, HttpServletResponse response) {
|
||||
if (!Config.enable_get_log_file_api) {
|
||||
return ResponseEntityBuilder.badRequest("feature disabled");
|
||||
}
|
||||
executeCheckPassword(request, response);
|
||||
checkGlobalAuth(ConnectContext.get().getCurrentUserIdentity(), PrivPredicate.ADMIN);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user