DataDog / datadog-api-client-python

Python client for the Datadog API

Home Page:https://datadoghq.dev/datadog-api-client-python/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Default to certifi when using slim docker containers

minsis opened this issue · comments

The urllib3 package defaults to using system certs, however, if they aren't there its never detected by urllib3. It would be nice if the Datadog API client could at the very least detect this and default to certifi.

This is relevant for doing pure python docker containers with the need for extra install overhead with the OS package manager. In my case I pull from the official python docker in order to build my WSGI apps.

Thankfully there's a workaround since the Configuration object passes a lot of the same options into urllb3 I'm able to add it.

Configuration(
            ssl_ca_cert=certifi.where()
)

Thanks for your contribution!

This issue has been automatically marked as stale because it has not had activity in the last 30 days. Note that the issue will not be automatically closed, but this notification will remind us to investigate why there's been inactivity. Thank you for participating in the Datadog open source community.

If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of this project.

  2. Comment that the issue is still reproducible and include updated details requested in the issue template.