Default to certifi when using slim docker containers
还没有人认领这个 Issue。
评估
调研方向
从 Configuration 入口开始,重点关注 ssl_ca_cert 如何传递给 urllib3。在官方 Python slim 容器中复现系统证书缺失的情况,然后验证客户端在没有显式 Configuration 覆盖的情况下是否默认使用 certifi。
由索引模型根据 Issue 内容生成。
描述
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()
)
- 主要语言
- Python
- 星标
- 166
- 派生
- 55
- 平均合并
- 2 天 17 小时
- 30 天内合并 PR
- 73
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DataDog/datadog-api-client-python 的其他 Issue
-
stale
难度 1/5 1-3 小时 新手友好度 72/100
DataDog/datadog-api-client-python#3535 · 1 条评论 ·
-
kind/bug stale
难度 3/5 1-2 天 新手友好度 66/100
DataDog/datadog-api-client-python#3717 · 3 条评论 ·
-
kind/bug stale
难度 3/5 1-2 天 新手友好度 75/100
DataDog/datadog-api-client-python#3656 · 1 条评论 ·
-
kind/bug stale
难度 3/5 1-2 天 新手友好度 38/100
DataDog/datadog-api-client-python#3120 · 1 条评论 ·
-
stale
难度 3/5 1-2 天 新手友好度 45/100
DataDog/datadog-api-client-python#2986 · 1 条评论 ·
查看 DataDog/datadog-api-client-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
anthropics/skills#1811 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
speaches-ai/speaches#678 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
datalayer/mcp-compose#42 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
conda-forge/spacy-feedstock#177 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
UKGovernmentBEIS/inspect_evals#2523 ·