News for hackers. Stuff that matters.
Re:Problems with “graceful shutdown” in Kubernetes (2019) by notwedtm on Tuesday March 22, 2022 @06:39PM (#30772525)
I think K8S secrets get a bad wrap. They are not intended to be secret in the sense that they are "kept from prying eyes by default". The secret object is simply a first-class citizen that differentiates it from a ConfigMap in a way that allows distinct ACL's.

Most organizations I know will still use something like ExternalSecret for source control and then populate the Secret with the values once in cluster and to an object with very few access points.

Re:Problems with “graceful shutdown” in Kubernetes (2019) by gscho on Tuesday March 22, 2022 @06:44PM (#30772580)
I think calling it a secret when it isn’t gave it a bad wrap. The last time I looked at the documentation it didn’t even clearly describe that it is not a secure object (that may have changed recently). Why call it a secret when it is not even close to one? I guess thing-to-store-secrets-if-you-use-rbac was too long.
Re:Problems with “graceful shutdown” in Kubernetes (2019) by Nullabillity on Tuesday March 22, 2022 @07:15PM (#30772842)
If you don't use RBAC (or some other ACL mechanism) then it's already game over, everyone with access to your cluster already has full root access.
Re:Problems with “graceful shutdown” in Kubernetes (2019) by threeseed on Tuesday March 22, 2022 @07:09PM (#30772782)
But it can be a secret. You can store Base64-encoded, encrypted data.

And you can encode it for example using an external KMS.

Re:Problems with “graceful shutdown” in Kubernetes (2019) by gscho on Tuesday March 22, 2022 @07:18PM (#30772866)
Yes I understand that. My point is until you configure it in that way it is not “secret” and the name of the object is a bit misleading, especially when first learning k8s.
Re:Problems with “graceful shutdown” in Kubernetes (2019) by rdtsc on Tuesday March 22, 2022 @08:27PM (#30773380)
Is that built-in though? Because if it isn’t then it is a bit silly to call it a secret.
Re:Problems with “graceful shutdown” in Kubernetes (2019) by jhugo on Tuesday March 22, 2022 @10:35PM (#30774211)
I think you're looking for "bad rap" (as in "rap sheet"). A bad wrap is an unappetising tortilla.
Re:Problems with “graceful shutdown” in Kubernetes (2019) by morelisp on Wednesday March 23, 2022 @07:47AM (#30777473)
If it's only base64 and not encrypted, that also seems like a bad wrap.
Re:Problems with “graceful shutdown” in Kubernetes (2019) by kitsune_cw on Wednesday March 23, 2022 @12:33AM (#30774983)
I've always seen it written as "bad rep" as in reputation.
Re:Problems with “graceful shutdown” in Kubernetes (2019) by dharmab on Wednesday March 23, 2022 @03:10AM (#30775832)