4 ms·
In which use case where Prometheus is used does it matter if the binary is 103MB or 2MB?
by dewey 5y ago
In which use case where Prometheus is used does it matter if the binary is 103MB or 2MB?
- ori_b 5y agoIn the case where some rarely used feature is exploitable via some misconfiguration. See also: log4j
- dylan604 5y agoThis is the thing. Is all of that 105MB vs 2MB of stuff the devs actually know exactly what it is and why it's there? As others have stated, the dependancy fluff is just a multitude of footguns cocked, locked, and ready to rock your world
- tgv 5y agoBut how? I've got prometheus running in its own, non-root account. That makes exploiting vulnerabilities nearly useless, unless you can find a way to get it to spawn a process which can sudo. It runs behind nginx, which has a simple name/pwd protection on it. That makes it very hard to exploit. And prometheus only runs on one server; the others run node_exporter, or publish app data. What am I missing?
- zufallsheld 5y agoYou described multiple layers of security. Removing dependencies and stripping down code is the same: another layer of security.
- ori_b 5y ago> What am I missing? If I knew, it would have a CVE number. However, the less code you have, the fewer the places there are where you need to ask that question.
- atmosx 5y agoI don't think anyone cares. They could make the binary 15kb, no one would notice. Most of the times runs inside a pod that will feature a 500+ MB operating system anyway...
- valyala 5y agoGo applications can be built into static self-contained binaries, which don't need extra dependencies. These binaries can run inside `scratch` Docker container, which doesn't take additional space. So it is easy to create small Docker images (less than 10Mb) with such binaries. See, for example, the following article - https://valyala.medium.com/stripping-dependency-bloat-in-victoriametrics-docker-image-983fb5912b0d https://valyala.medium.com/stripping-dependency-bloat-in-vic...
- pjmlp 5y agoThey would notice on their Kubernetes storage accounting.
- atmosx 5y agoAh no :-P
- immibis 5y agoNone, but it's an interesting case study of a widespread concern (not necessarily problem)
- deleted 5y ago[deleted]