Repository navigation
Conversation
…hanges Avoid usage of global `ctx.options` where possible in `tlsconfig.py`.
Member
|
Thanks for the PR! The changes look good and you put in effort to update the changelog and tests, which is great. I really do appreciate it. Unfortunately I'm strongly -1 on the architectural changes here. mitmproxy has one global options object shared by all addons and the core. Introducing multiple option states makes it harder to reason about the code and will lead to unpredictable side effects long term. So this is a hard pass - sorry. I'm more than happy to discuss other ways how we can implement certificate verification overrides, let's continue the discussion in #5019. |
Author
|
No problem @mhils. :-) Thank you for reviewing the PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Creating a new
Contextnow clones theOptionspassed to it so that these options can be changed later in the process without changing anything globally.This makes it possible to set for example
ssl_insecurefor each request individually from within thetls_start_serverhook.Checklist