azure-functions-python-worker icon indicating copy to clipboard operation
azure-functions-python-worker copied to clipboard

[Bug] Azure Python runtime doesn't respect REQUESTS_CA_BUNDLE

Open ErikApption opened this issue 1 year ago • 0 comments

Expected Behavior

We need to deploy a custom cert in the root bundle. REQUESTS_CA_BUNDLE works locally but when deployed on Azure Environment, the custom bundle is not loaded.

Actual Behavior

Default bundle is loaded

Steps to Reproduce

  1. Add REQUESTS_CA_BUNDLE setting to a python function
  2. Use python function with request library and signed cert with custom authority
  3. '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get issuer certificate (_ssl.c:1006)')))

Relevant code being tried

No response

Relevant log output

No response

requirements.txt file

No response

Where are you facing this problem?

Production Environment (explain below)

Function app name

No response

Additional Information

No response

ErikApption avatar Aug 09 '24 19:08 ErikApption