-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to add binary file to KamusSecret #246
Comments
Hi, When providing the CLI with long string with many special characters as certificate, it gets confused. Please let me know if it helps. |
As explained, when passing a file to kamus-cli, we get inconsistent responses. Seems to be random. |
Sorry I've probably misunderstood your issue. After the decryption, you supposed to get the same value, isn't that the case? |
Oh, my bad. Yeah, we're not seeming to get the correct value upon decryption. |
Can you supply me with an example of the DER certificate file you trying to encrypt? |
Yes. I'll try and send it over in the next hour or so. Thanks for your quick replies. |
I was able to reproduce it - it is because we assume the data is always string, so we create it as string - and Kubernetes SDK wraps it in base64 encoding. Fixing it now - please take a look at the proposed solution! |
In trying to add a DER-encoded certificate to a KamusSecret, it's proven to not be possible. With standard Kubernetes secrets, it would be a case of base64-encoding the file and applying that Secret manifest. With KamusSecret, the encryptor-api expects plaintext (non-base64-encoded) input.
I tried to just pass the DER file raw to the kamus-cli, but I was getting a different output each time it ran. I feel like this should be the correct workflow, but the inconsistent response that it was giving me was not leaving Kubernetes happy.
The text was updated successfully, but these errors were encountered: