<p>I'd like to edit my secrets. The only way I'm aware of is <code>kubectl edit secret mysecret</code> which gets me yaml blob to edit. However, all secrets are base64 encoded which isn't an easy way to edit them.</p>

<p>Can I mount secrets to local volume somehow? Can I extract secrets to my localhost and edit them there? And lastly, can I edit some way to get plaintext keys/values (or just one key) instead of base64 encoded values.</p>

<p>P.S.
Can I see secret keys easily with kubectl? With <code>edit</code> I see them, but when I'm only interested in keys, not the values.</p>

<p>Unfortunately no, the problem you describe is something you just have to deal with "on the side" by decoding/encoding base64 content on your own.</p>

<p>There are ways to simplify this by using templating for resources (ie. via helm charts), but that involves storing the raw secret in some other way and just applying changes from "source" rather then do an edit.</p>
