-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Fix trusted-host passthru #2981
Conversation
Signed-off-by: Dan Ryan <dan@danryan.co>
- Fix marker cleaning - Fixes #2979 Signed-off-by: Dan Ryan <dan@danryan.co>
Signed-off-by: Dan Ryan <dan@danryan.co>
16c2a52
to
3ee8e11
Compare
Signed-off-by: Dan Ryan <dan@danryan.co>
Signed-off-by: Dan Ryan <dan@danryan.co>
Signed-off-by: Dan Ryan <dan@danryan.co>
index_source = index_source.copy() | ||
except SourceNotFound: | ||
src_name = project.src_name_from_url(index) | ||
verify_ssl = True if index not in trusted_hosts else False |
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.
You may have considered this already, but while I was testing the issue index
was set to something like https://MY_INDEX:8080
, whereas trusted_hosts
was just a list like['MY_INDEX']
.
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.
no I absolutely in no way was thinking about that, I should probably parse netlocs :D thanks for the comment!
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.
- Additional fix for #2981 Signed-off-by: Dan Ryan <dan@danryan.co>
- Additional fix for #2981 Signed-off-by: Dan Ryan <dan@danryan.co>
sources.append({"url": extra_src}) | ||
src_name = project.src_name_from_url(idx) | ||
verify_ssl = True if idx not in trusted_hosts else False | ||
extra_src = {"url": idx, "verify_ssl": verify_ssl, "name": extra_src} |
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.
I hate to do this to you, but extra_src
is undefined here if the exception is triggered
Fix trusted-host passthru
--trusted-host
not passed topip
when installing from a lockfile #2979