You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/10/07 08:43:46 UTC

[GitHub] [camel-k] nicolaferraro opened a new issue #1750: Binary resources such as keystores are being corrupted

nicolaferraro opened a new issue #1750:
URL: https://github.com/apache/camel-k/issues/1750


   Doing:
   
   ```
   kamel run TLS.java --resource trust.jks
   ```
   
   The sha256sum of the `trust.jsk` file in the container is different from the original one, which means something has corrupted it.
   
   Workaround is:
   
   ```
   kubectl create secret generic trust --from-file trust.jks
   kamel run TLS.java --secret trust
   ```
   
   Which is also a best practice for such data, but this problem may cause other issues.
   
   Tested on: https://self-signed.badssl.com/


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] rampraveen83 edited a comment on issue #1750: Binary resources such as keystores are being corrupted

Posted by GitBox <gi...@apache.org>.
rampraveen83 edited a comment on issue #1750:
URL: https://github.com/apache/camel-k/issues/1750#issuecomment-710160050


   Tried with v 1.2, and jks files are still getting corrupted. Compared the file size and its different when bundled with camel. Woks fine for txt file.
   
   e.g kamel run kafka.java --resource keystore.jks --resource truststore.jks
   
   Caused by: java.io.IOException: Invalid keystore format
   
   The workaround is what i am still using and it seems to work.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] nicolaferraro closed issue #1750: Binary resources such as keystores are being corrupted

Posted by GitBox <gi...@apache.org>.
nicolaferraro closed issue #1750:
URL: https://github.com/apache/camel-k/issues/1750


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] rampraveen83 commented on issue #1750: Binary resources such as keystores are being corrupted

Posted by GitBox <gi...@apache.org>.
rampraveen83 commented on issue #1750:
URL: https://github.com/apache/camel-k/issues/1750#issuecomment-710160050


   Tried with v 1.2, and jks files are still getting corrupted. Compared the file size and its different when bundled with camel 
   e.g kamel run kafka.java --resource keystore.jks --resource truststore.jks
   
   Caused by: java.io.IOException: Invalid keystore format


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] rampraveen83 edited a comment on issue #1750: Binary resources such as keystores are being corrupted

Posted by GitBox <gi...@apache.org>.
rampraveen83 edited a comment on issue #1750:
URL: https://github.com/apache/camel-k/issues/1750#issuecomment-710160050


   Tried with v 1.2, and jks files are still getting corrupted. Compared the file size and its different when bundled with camel. Woks fine for txt file.
   
   e.g kamel run kafka.java --resource keystore.jks --resource truststore.jks
   
   Caused by: java.io.IOException: Invalid keystore format


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-k] nicolaferraro commented on issue #1750: Binary resources such as keystores are being corrupted

Posted by GitBox <gi...@apache.org>.
nicolaferraro commented on issue #1750:
URL: https://github.com/apache/camel-k/issues/1750#issuecomment-711871290


   This is strange, as binary resources are base64 encoded.
   
   @rampraveen83 can you try with:
   
   ```shell
   kamel run kafka.java --resource keystore.jks --resource truststore.jks --compression=true
   ```
   
   Compression is the mechanism that we tried to auto-enable on 1.2 to avoid corruption.
   Also, can you double check the version with `kamel version`?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org