-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Ensure skip cert check when sending out raw requests if related env var is configured #5328
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
Conversation
|
View a preview at https://prompt.ws/r/Azure/azure-cli/5328 |
|
Thank you @yugangw-msft Please go ahead with updating acr code. |
|
|
|
@derekbekoe @djyou, thanks for the review. I have tried |
| txt = urlopen(target_url).read() | ||
| dic = json.loads(txt.decode()) | ||
| # under hack mode(say through proxies with unsigned cert), opt out the cert verification | ||
| response = requests.get(target_url, verify=(not should_disable_connection_verify())) |
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.
This is where urlopen was modified
Fix #5099. Fix #5258
@derekbekoe, I can also update related extension code. So let me know
@djyou, I can update acr code. So let me know
Moving forward, during code review, for any HTTTPS raw requests outside of Python SDK, we just ensure the new code checks the global flag
Command Guidelines
(see Authoring Command Modules)