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

Skip ssl validation if the option is already provided #191

Conversation

IvanBorislavovDimitrov
Copy link
Contributor

--skip-ssl-validation -> Skips verification of the API endpoint.
But even though it is set, the option is ignored by the plugin and it continues to require SSL validation.
This PR fixes this behavior and ignores the validation if --skip-ssl-validation is provided during login or API selection.

Copy link
Contributor

@theghost5800 theghost5800 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you check http client in func UploadMtaFile and func StartUploadMtaArchiveFromUrl in mta_rest_client that consider this bool flag?

@IvanBorislavovDimitrov
Copy link
Contributor Author

Another client is only used when fetching the size of the MTA during upload from URL, but I do not think we should deactivate the TLS since it is not related to CF

@IvanBorislavovDimitrov IvanBorislavovDimitrov force-pushed the skip-ssl-validation branch 2 times, most recently from 2e6fd42 to b517261 Compare December 13, 2023 09:51
@IvanBorislavovDimitrov IvanBorislavovDimitrov merged commit 8c38579 into cloudfoundry:master Dec 15, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants