-
-
Notifications
You must be signed in to change notification settings - Fork 649
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
Support custom CA bundles. #10757
Support custom CA bundles. #10757
Conversation
1278125
to
8b55762
Compare
Reviewers, please pay extra attention to the Rust code, as Rust is not my forte... |
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.
Epic! Thanks, Benjy!
[ci skip-build-wheels] [ci skip-rust]
# Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
# Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
48e3963
to
790e5c4
Compare
# Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
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.
Btw, do we need to pass these cert files to each Process
somehow?
Not right now. Processes might take it as an env var such as REQUESTS_CA_BUNDLE for requests. |
Hi @benjyw,
I get: Engine traceback: The following works: Can you direct me on what i need to specify? Thanks, |
Hey @matze999 I managed to get this to work by setting the new flag You can also add that |
Thanks @thamenato! This is actually a global option, so in
|
Hi @benjyw ,
However, i am still stuck. It appears to me that it is trying to setup a python virtual environment and trying to get the package from pypi.org. I could be wrong though. Here is what happens: `05:47:43.65 [ERROR] 1 Exception encountered: Engine traceback: stderr: Any idea of what else i can do here? I am stuck ... |
Oh! We should also be passing that cert setting into Pip (via Pex). And possibly other processes. Will get a fix up today. @thamenato I'm guessing this didn't impact you because you're using your own PyPI mirror? |
That's puzzling that it didn't work. @benjyw actually I run it locally by accessing normal PyPI mirror (I still need the ca-certs-path so my proxy works) and inside my CI I have my own PyPI mirror/wheels cache. In my case my case I have to use a self-signed certificate to make SSL work properly using my company's proxy so everything needs to be set: |
It may have worked because you had the PyPI artifacts cached on the local pip cache, so it never needed to access the network. |
Fixed in #10837 |
Hi @benjyw , Is there any way to already try out the fix you made? I am still specifying version 2.0.0b0 as i did not see any other version. I was also looking for nightly builds but did not find anything? Else, can you tell when and how it will be available? Thanks, |
Hey Matt, I'm about 20 minutes away from releasing 2.0.0b1 :) As soon as our "Build Wheels" jobs go green: https://travis-ci.com/github/pantsbuild/pants/jobs/390257318 Also see the note on https://github.com/pantsbuild/setup/blob/c95cde54860587e798c64c3960beeb271b897f0d/pants#L24-L27 for how to consume nightly builds. Let us know if we can help with anything else, too! We're usually most responsive via Slack: https://www.pantsbuild.org/docs/community, but GitHub issues work too. |
Released: https://pypi.org/project/pantsbuild.pants/2.0.0b1/ Change |
It worked. Thank you guys very much! Congratulations on having good people working for your team ... 👍 |
Glad to help! Let us know if you hit any further issues. |
Hey @matze999, we added a new page dedicated to using Pants with proxies. We'd love any feedback you have! https://www.pantsbuild.org/docs/proxies |
Supports fetching binaries etc. from behind a proxy.
Slightly refactors fs_test.py to separate the download-related
tests from the filesystem-related tests, as that single test class was
getting unwieldy.
Removes the old https test, that had to hit a live server over the internet,
since we now have a proper local test with its own test PKI.
Includes a script to generate that PKI, so future modifiers don't have
to struggle with openssl too much.