-
Notifications
You must be signed in to change notification settings - Fork 229
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
#4176 Add new option to disable SSL Validation in arguments #4617
#4176 Add new option to disable SSL Validation in arguments #4617
Conversation
@microsoft-github-policy-service agree |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contributions!
A couple of initial comments.
…y created if it is null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance you can also run dotnet format
to fix the linting errors captured in the CI?
I agree with this, but it should be for every library. or at least allow to pass in the transport to disable SSL validation, some only allow you to pass in the proxy config but not configure the SSL Cert validation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also sign the CLA please? (see the bot comment)
…ommands as well as lock file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes.
We're getting close.
These classes also need to be updated:
- https://github.com/microsoft/kiota/blob/main/src/Kiota.Builder/Lock/KiotaLock.cs
- https://github.com/microsoft/kiota/blob/main/src/Kiota.Builder/Lock/KiotaLockComparer.cs
Also an entry needs to be added to the changelog
Hi @baywet, thanks for mentioning the files that needs to be changed but I didn't understand the functionality of Lock Files, could you please brief me about that, thanks |
It's the file that's generated along with the client code. It effectively contains all the input parameters and a hash of the description. And the update command relies on it when refreshing the clients. This way if somebody generates with this option, and later on refreshes, they won't hit the SSL validation error. |
Thanks for the clarification, it makes sense now. I have done the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes! @andrueastman for final review and merge
Hi @baywet, One more thing, In download command handler, I am setting the value of --disable-ssl-option to Will it be fine If I change the check to something like Sorry for the inconvenience, these things are hitting me at last :( |
For the search command I don't think we want to be able to disable the SSL validation at this point. |
Thanks for the contribution @rohitkrsoni |
This PR includes changes for addition of new option in the argument to disable SSL validation. ALL Tests Passed
![image](https://private-user-images.githubusercontent.com/60655155/328588935-0728deed-00d6-4c47-bd38-fdc90faa07f3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3MzA4NzQsIm5iZiI6MTczOTczMDU3NCwicGF0aCI6Ii82MDY1NTE1NS8zMjg1ODg5MzUtMDcyOGRlZWQtMDBkNi00YzQ3LWJkMzgtZmRjOTBmYWEwN2YzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDE4MjkzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNiMWJhZDRjMDMyZTkxZDQyMWVkMmEyNjE1NmJhZjg5ZDIxZWNiMmU2ZDQ2ZjhhNDQxZDU2OTQ5NTc1YWZmNWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.07aJolKCRJ01Q7tBF9WFobUdvmgR3D0WdsRMCG24Ps4)
Regarding new tests: I have doubts over the implementation of the change, if the change is approved, I will be writing the tests and complete any other additional requirements.