neutronth / kpt-update-ksops-secrets

Kpt function for generating and updating the Kustomize SOPS secret resources
Other
5 stars 3 forks source link

fix: fix render unencoded base64 in data block #31

Closed wingyplus closed 1 year ago

wingyplus commented 1 year ago

Secret in data block must be base64 encoding. But the tool allows to encrypt without encoding data. Fixes by validate value of the key in data block when calling Get and returns error if it's not well-form.

Fixes #29

wingyplus commented 1 year ago

Before:

Screenshot 2566-03-20 at 14 37 37

After:

Screenshot 2566-03-20 at 14 46 09