rajatjindal / kubectl-modify-secret

kubectl-modify-secrets allows user to directly modify the secret without worrying about base64 encoding/decoding
Apache License 2.0
143 stars 14 forks source link

Wrong formatting after editing #28

Open ArbeidW opened 1 year ago

ArbeidW commented 1 year ago

I've faced with the issue then I edited the secret, saved it, and closed it. Reopened it using modify-secret and I saw not a properly formatted file as the previous option but a string with a value, like that application.properties: "all_secrets_here_in_one_row_splittedby\n"

All my rows were in value in one line and \n was shown between old rows. Everything was fine if I opened it with edit secret and decoded it. I've rechecked it and I didn't see any unusual chars, encoded it and resaved using edit secret and tried to open it with modify-secret but the issue was the same.

Sorry, but I can't show this secret, but I've tried to describe it as best I can. This issue occurred sporadically on various unrelated namespaces. I don't have the steps to reproduce I changed various things

UPD. For now, this happens only in case I paste a big piece of properties. Maybe some kind of char there but I don't see any strange of them.

rajatjindal commented 9 months ago

Hi @ArbeidW,

thanks for the report and sorry for the (super) late reply. I'll check this and see if I can reproduce the issue.

thanks