News for hackers. Stuff that matters.
Re:Secret Management in Kubernetes by MadsRC on Sunday July 04, 2021 @01:32PM (#27731249)

  In Kubernetes, secrets are base64 encoded, so they are quite secure.
I’m sorry, but what the actual f&$/… I‘s expect better from RedHat. In what world does storing a secret as base64 warrant calling it “quite secure”?

The only protection I can think of is:

* The occasional glance at your screen.

* Injection attack (to some degree)

Re:Secret Management in Kubernetes by gravypod on Sunday July 04, 2021 @01:40PM (#27731313)
I think the main reason for base64 encoding is to allow you to store binary data into a secret. Not a security measure. The kubernetes docs say as much: https://kubernetes.io/docs/concepts/configuration/secret/
Re:Secret Management in Kubernetes by jbeda on Sunday July 04, 2021 @01:58PM (#27731430)
Can confirm this is why we did it. Very confused to see Red Hat claim that Base64 was a security thing.
Re:Secret Management in Kubernetes by smarterclayton on Sunday July 04, 2021 @09:35PM (#27733994)
I’m pretty sure the author just wasn’t as familiar with the topic as they should have been. Should have been caught during editing though.

As Joe notes, this was just how you most easily encode binary data in JSON. We did discuss that the encoding has a minor benefit to “over the shoulder reader” obscurity, but that wasn’t the goal.

Re:Secret Management in Kubernetes by azaras on Sunday July 04, 2021 @02:30PM (#27731631)
It is true, in configmap objects you can not store binary data.
Re:Secret Management in Kubernetes by aequitas on Sunday July 04, 2021 @01:45PM (#27731349)
You can always add 3rot13 on top of it for extra security.
Re:Secret Management in Kubernetes by kristaps on Sunday July 04, 2021 @02:08PM (#27731506)
Sounds like the marketing department participated in writing the docs this time.
Re:Secret Management in Kubernetes by gogetmb on Sunday July 04, 2021 @08:26PM (#27733714)
FWIW, this site is not a corporate blog, but a community encouraging current and aspiring sysadmins to learn in public. The author is not an official spokesperson and is very new. Also, I should have caught this point before hitting publish, so it's my bad.

And if it's not obvious: Red Hat wrote enough of Kubernetes to know better than to base64 anything of value.

Re:Secret Management in Kubernetes by hyperfekt on Sunday July 04, 2021 @08:56PM (#27733844)
You should make this much more clear. There seems to be absolutely no indication on this page that this isn't officially endorsed content.
Re:Secret Management in Kubernetes by gogetmb on Tuesday July 06, 2021 @11:12AM (#27749650)
You're absolutely right. I'm working on an update now and hoping it rolls into prod this week.