Supervisor / supervisor

Supervisor process control system for Unix (supervisord)
http://supervisord.org
Other
8.34k stars 1.23k forks source link

Make supervisor inet_http_server expose only few api methods #1562

Closed sridhar562345 closed 1 year ago

sridhar562345 commented 1 year ago

I want to restrict the supervisor accessible API methods. For example, I want to expose the status API only to get the status of a given process.

Is it possible or not?

TIA

mnaberez commented 1 year ago

I want to restrict the supervisor accessible API methods. For example, I want to expose the status API only to get the status of a given process.

Is it possible or not?

No, there are no options to selectively remove parts of the API. Please use another program if you need security features like this. supervisord is suitable for use within a trusted environment only.

http://supervisord.org/configuration.html#inet-http-server-section-settings

Warning

The inet HTTP server is not enabled by default. If you choose to enable it, please read the following security warning. The inet HTTP server is intended for use within a trusted environment only. It should only be bound to localhost or only accessible from within an isolated, trusted network. The inet HTTP server does not support any form of encryption. The inet HTTP server does not use authentication by default (see the username= and password= options). The inet HTTP server can be controlled remotely from supervisorctl. It also serves a web interface that allows subprocesses to be started or stopped, and subprocess logs to be viewed. Never expose the inet HTTP server to the public internet.