data or stringData
data holds base64-encoded bytes. stringData accepts plain text and the API server encodes it on write. If a key is in both, stringData wins. Both end up stored the same way, and neither is encrypted unless your cluster has encryption at rest configured.
For anything real, prefer creating Secrets without writing values to files, or use a sealed or external secret workflow. Decoded values on this page stay in memory and are never written to logs or diagnostics.
Questions
Is my secret sent anywhere?
No. Encoding and decoding use the browser’s built-in functions. The Secret builder is not autosaved, and decoded values are not persisted.
Why does a decoded value end with a newline?
Values encoded with echo instead of echo -n or printf include the trailing newline. The decoder shows byte counts so you can spot it.