256 points · by red0point · 8y ago · 74 comments
As the original creator of the Borglet status page, I think it's not really accurate to describe it as "designed". :-)
It was more a case of gradual semi-random evolution, with people (mostly me, at least in the old days - I've no idea how much it might have changed in the last eight years) adding things that seemed like they could help Google engineers trying to track down issues with their Borg jobs. User-friendliness for random SSRF hackers was definitely not high on the priority list.
A friendly word of advice: when you find flaws like this (you, the reader, not you, the guy who wrote this post), think carefully before disclosing internal network details you discover like this writer did. The internal details of a target network don't become public domain simply because you found a vulnerability. There are firms that get extremely itchy about this kind of stuff getting published, and I can't blame them.
Specially because:
> I hope they won’t beat me with a stick for disclosing any of this
This tells me that this wasn't cleared with them. Doesn't sound like a smart move. If your gut is telling you it may be a bad idea, it could be because it is...
In this case he exposed a tiny proportion of what he accessed.
Sounds fairly reasonable to me.
No matter how spartan, the Borg status pages are more helpful than most Kubernetes UIs out there when it comes to debugging a problem in depth, i.e. past CPU and memory graphs. Part of that is made possible by applications exposing debugging endpoints and telling Borg about them.
https://pbs.twimg.com/media/CebGW64W4AAJ_sc?format=jpg
OpenCensus has a bunch, too:
Disclaimer: I am part of Borg team.
Require a header on your internal services and make sure you never send that header with user-requested URLs and you can guarantee safety there.
If you are using network access for security, either don't, it blacklist private IPs (and use public DNS) for untrusted URLs.
Hmm, containers _like_ Docker, or Docker? I thought Google used lmctfy since long before Docker?
I assume that Google isn't using Docker internally for production services, but don't know for sure (and I assume anyone who does know for sure can't tell you).
Last I heard, the biggest reason that Google still uses Borg instead of Kubernetes is mostly because of switching costs.
If (as the article implies) Google uses Docker internally, that would be a surprising and interesting bit of news.
https://cloudplatform.googleblog.com/2017/01/7-ways-we-harde...