Skip to content
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

Adding SSL certificates or disabling SSL for HTTPS clients? #500

Open
stefx opened this issue Jun 10, 2024 · 5 comments
Open

Adding SSL certificates or disabling SSL for HTTPS clients? #500

stefx opened this issue Jun 10, 2024 · 5 comments
Labels
question Further information is requested

Comments

@stefx
Copy link

stefx commented Jun 10, 2024

Is there a way to add SSL certificates to the yaks image or disabling SSL when using HTTPS clients?

We are getting the following error when calling an HTTPS endpoint from the yaks base image.
I/O error on GET request for "URL": PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

This is a very basic feature when using yaks for HTTPS integration testing. It would be great if we could disable SSL verification with a configuration.

@christophd
Copy link
Member

I don't think it is possible to disable the SSL verification when using the HTTPS clients as the server requests the client to use the proper certificates.

You should be able to create a K8s secret holding the certificates and volume mount that secret into the test Pod.

@christophd
Copy link
Member

@christophd christophd added the question Further information is requested label Jun 11, 2024
@stefx
Copy link
Author

stefx commented Jun 13, 2024

Regarding the yaks usage of the secrets, it appears there is a limitation on the number of secrets that can be used by yaks. If I label two secrets with the yaks.citrusframework.org/test label, only the first one gets used and loaded in the test. Is there a possibility of using more than one secret?

@christophd
Copy link
Member

Yes, I have had same issue recently, too. A fix and improvement on volume mounts of secrets in YAKS is already in the making. PR is coming soon.

With that you will be able to bind multiple secrets to a test accessing the content of the secrets either via test variables or by loading files (e.g. certificates) from a secret.

@christophd
Copy link
Member

See #504

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants