-
Notifications
You must be signed in to change notification settings - Fork 9
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 HTTP requests using system CA bundle #178
Comments
@kvedurmu Looks like |
Yeah, the idea would be the env var is only set when the requests package is in the requirements.txt file. That said, I don't have any strong opinions here. |
It's been a little while since the last activity on this issue. @paketo-buildpacks/python-maintainers, is this still a relevant feature? |
I haven't heard any recent feedback indicating this is something we should solve, so I'm going to close this issue. We can re-open if/when we get more evidence that this feature would be valuable. |
I was using Procfile to specify the startup command and I realised that setting BPE_DEFAULT_REQUESTS_CA_BUNDLE does not set the environment variable and thus my requests to external URL fails. Any documentation on how this should be done? The only workaround that I think might work but I have not tested yet is to use launcher command instead of the Procfile method. |
This issue was initially reported in the Cloud Foundry Python Buildpack, but it probably makes sense to consider it in the Paketo Buildpack as well.
The request here would be for the buildpack to automatically set
export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
(perhaps only when the app uses the requests package?). This would allow Python apps to make HTTP requests using the system/operator defined CA certificateThe text was updated successfully, but these errors were encountered: