Skip to content

Commit

Permalink
Remove RPC API /api/processes.dump
Browse files Browse the repository at this point in the history
There is no actual request from users, and it might introduce security risk.

Signed-off-by: Takuro Ashie <ashie@clear-code.com>
  • Loading branch information
ashie committed May 19, 2022
1 parent 0d126de commit 4b18c6f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/fluent/supervisor.rb
Expand Up @@ -107,16 +107,6 @@ def run_rpc_server
end
nil
}
@rpc_server.mount_proc('/api/processes.dump') { |req, res|
$log.debug "fluentd RPC got /api/processes.dump request"
if Fluent.windows?
supervisor_dump_handler_for_windows
else
Process.kill :CONT, $$
send_signal_to_workers(:CONT)
end
nil
}
@rpc_server.mount_proc('/api/plugins.flushBuffers') { |req, res|
$log.debug "fluentd RPC got /api/plugins.flushBuffers request"
if Fluent.windows?
Expand Down

0 comments on commit 4b18c6f

Please sign in to comment.