Skip to content

Default to certifi when using slim docker containers #812

Open
@minsis

Description

@minsis

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()
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions