This message was deleted.
s
This message was deleted.
b
you need to base64 encode it, or use
stringData
g
Ah I see. I figured kubernetes automatically encoded plain text into base64 as a secret?
b
thatโ€™s what
stringData
does
g
Ahhh thank you! ๐Ÿ™
What is the point of just
data
then?
b
not everyone wants to have k8s encode the data, often people want to encode it themselves ๐Ÿ™‚
g
I see. So you're suggesting you could use a different encoding scheme or people want to trust their own base64 encoding?
m
hi @glamorous-australia-21342, I highly suggest you, to use a secret controller like
external-secrets
for Kubernetes secret management. Depending on where you run your k8s cluster you may have a managed service for that.
a
@glamorous-australia-21342 you must use base64 encoding for any value in
data
. The
stringData
field is provided for convenience, to have the API server perform the encoding for you. Same result. https://kubernetes.io/docs/concepts/configuration/secret/#restriction-names-data
๐Ÿ‘ 1