pkalsi97 opened a new pull request, #6416:
URL: https://github.com/apache/camel-k/pull/6416

   This PR adds the ability to configure custom CA certificates in the JVM 
trait, enabling integrations to connect to services using TLS with certificates 
signed by private CAs.
   
   Changes:
   - Add CACert and CACertMountPath fields to JVM trait spec
   - Implement init container to generate JKS truststore from PEM cert
   - Configure JVM with javax.net.ssl.trustStore properties
   - Use deterministic password to ensure deployment spec stability
   - Add unit and E2E tests
   - Regenerate CRDs
   
   ```
   # Create secret with CA certificate
   kubectl create secret generic my-private-ca 
--from-file=ca.crt=/path/to/ca-certificate.pem
   
   # Run integration with custom CA
   kamel run MyRoute.java -t jvm.ca-cert=secret:my-private-ca
   
   # With custom key name in secret
   kamel run MyRoute.java -t jvm.ca-cert=secret:my-private-ca/custom-ca.pem
   
   # With custom mount path
   kamel run MyRoute.java -t jvm.ca-cert=secret:my-private-ca -t 
jvm.ca-cert-mount-path=/etc/custom/truststore
   ``` 
   
   Closes #2820


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to