Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature Request: Support listening on a UNIX socket #4068
Comments
This comment has been minimized.
This comment has been minimized.
|
We don't plan on providing anything other than TCP access. In such a scenario you could consider iptables, as they can filter on uid. |
brian-brazil
closed this
Apr 10, 2018
This comment has been minimized.
This comment has been minimized.
|
That's unfortunate as this setup is fairly common in corporate environments. iptables solution does not work for non-root users. Is there some philosophical reason against this feature or would you be open to a PR? It's is fairly trivial change to implement in Go (eg: https://github.com/grafana/grafana/pull/8221/files) |
This comment has been minimized.
This comment has been minimized.
|
It's something we've discussed in the past, and we don't want the complexity that would come with having to maintain a non-standard way to offer HTTP. I should also point out that if you can't trust other users on a shared machine that you probably shouldn't be sharing the machine, there's always a local root vulnerability lurking. |
brian-brazil
referenced this issue
Jan 30, 2019
Closed
Add FastCGI interface to secure prometheus (with unix domain socket) #5160
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
propertone commentedApr 10, 2018
What did you do?
I have Prometheus running behind a reverse proxy on the same host which adds authentication and authorization to the /api/v1/admin endpoint. However, anyone with SSH access to the host running Prometheus can easily bypass the proxy by querying localhost. A unix socket can be secured with unix permissions, which will prevent unauthenticated access. In our corporate environment, ssh access to hosts is typically shared and the users who wish to run their own instance of Prometheus do not necessarily have root access.
Environment
System information:
Linux 3.10.0-693.17.1.el7.x86_64 x86_64
Prometheus version:
prometheus, version 2.2.1 (branch: HEAD, revision: bc6058c)