Re:Why the hell is your Kubernetes API public?
by vbezhenar on Saturday March 23, 2024 @05:18PM
(#39803144)
It is public, so what? Obviously cloud operators consider it secure enough to offer that option by default. What are the reasons to consider it not secure?
[ Parent
| on HN ]
Re:Why the hell is your Kubernetes API public?
by YZF on Saturday March 23, 2024 @05:24PM
(#39803186)
It's a good idea to minimize the attack surface you expose on the public Internet. Basically the default assumption should be to consider everything insecure. Cloud vendors by nature take ownership of protecting all their public facing APIs and they're in the business of offering and securing those. That doesn't mean you should open everything to the Internet.
Re:Why the hell is your Kubernetes API public?
by dangus on Saturday March 23, 2024 @05:53PM
(#39803345)
Not only that but cloud providers put their managed Kubernetes behind IAM.
If you've managed to breach that and you've got Amazon or Microsoft convinced that you are a privileged account owner, it would be trivial to modify the infrastructure to make a private API endpoint public or create a bastion host with access.
Re:Why the hell is your Kubernetes API public?
by weikju on Saturday March 23, 2024 @08:57PM
(#39804233)
While I agree is likely secure enough, remember that cloud operators such as Aws used to be ok with making s3 buckets public by default, which did cause many issues until they finally changed that (and made it harder to make them public even intentionally).
Re:Why the hell is your Kubernetes API public?
by arrakeenrevived on Sunday March 24, 2024 @01:35AM
(#39805342)
S3 buckets have never been public by default. They were, however, very easy to make public before things like Block Public Access existed, so lazy devs would just click that button rather than doing proper access control.
Re:Why the hell is your Kubernetes API public?
by weikju on Sunday March 24, 2024 @09:35AM
(#39807131)
I stand corrected.
Re:Why the hell is your Kubernetes API public?
by captn3m0 on Sunday March 24, 2024 @05:41AM
(#39806054)
I'll have to look it up, but there was an unauthenticated exploit against the control plane a while ago. Probably https://blog.appsecco.com/analysing-and-exploiting-kubernete... CVE-2018–1002105