News for hackers. Stuff that matters.
Re:Kubernetes Failure Stories by clhodapp on Wednesday June 12, 2019 @12:19PM (#20166255)
If anything, this enhances your actual point but... if you are using self-signed certs with Kubernetes, then your cluster isn't secure.... so you shouldn't do that.
Re:Kubernetes Failure Stories by geggam on Wednesday June 12, 2019 @12:37PM (#20166485)
Arguably self signed certs eliminates possible state funded middle man attacks making it more secure
Re:Kubernetes Failure Stories by clhodapp on Wednesday June 12, 2019 @02:26PM (#20167729)
As a technology, properly-implemented self-signed certs are totally fine. The problem is that k8s does not have the features necessary to use self-signed certs securely. Instead, it expects you to create your own CA (or CAs: you can use separate ones for different kinds of communication if you want extra bulkheads) and then to share out your private CA's cert to all the k8s components. This achieves your goal of cutting out MITM attacks via unscrupulous commercial CAs while also making it possible to trust families of certs for a given purpose, rather than having to whitelist every single consumer's private key.
Re:Kubernetes Failure Stories by StreamBright on Wednesday June 12, 2019 @07:27PM (#20170396)
This is great. If a state funded threat is in your network in the position to place a certificate on a server do you think your self signed certificate will protect you?
Re:Kubernetes Failure Stories by geggam on Wednesday June 12, 2019 @07:41PM (#20170483)
Think of it as a cost and effort threshold. Prevents the dragnet / fishing methods from eavesdropping. It's trivial to force $Company to let you in with letter. The effort to break encryption is not trivial. You have to be doing something wrong to get specific attention.
Re:Kubernetes Failure Stories by StreamBright on Wednesday June 12, 2019 @07:44PM (#20170498)
I mean if you use cert pinning with a public CA you get the same results, aka you can easily spot MITM. I am generally not a big fan of private CAs.
Re:Kubernetes Failure Stories by vorpalhex on Wednesday June 12, 2019 @01:45PM (#20167301)
Self signed certs are absolutely secure and more secure than non-self signed assuming you are using proper key management.

Now, whether or not that works for your users...

Re:Kubernetes Failure Stories by jayd16 on Wednesday June 12, 2019 @02:15PM (#20167614)
I think he's implying a whitelisted set of self signed certs, not "trust any cert".
Re:Kubernetes Failure Stories by barbecue_sauce on Wednesday June 12, 2019 @03:31PM (#20168384)
I think more likely he's implying using a private certificate authority.
Re:Kubernetes Failure Stories by clhodapp on Wednesday June 12, 2019 @03:09PM (#20168200)
Unfortunately, Kubernetes does not support that mode of operation.
Re:Kubernetes Failure Stories by krferriter on Wednesday June 12, 2019 @07:30PM (#20170415)
You can create your own CA cert and put it in the root store on each instance. This can be incorporated into the provisioning and deployment pipeline for creating the nodes.
Re:Kubernetes Failure Stories by clhodapp on Wednesday June 12, 2019 @07:33PM (#20170431)
Definitely! That is how you are supposed to do it! That is a private CA, not self-signed certs, though.