Dataikuapi is not correctly honoring "DKU_NO_CHECK_CERTIFICATE" in requests
還沒有人認領這個 Issue。
評估
研究方向
先閱讀 dataikuapi/dssclient.py 中的 DSSClient 和 _perform_http,接著追蹤透過 api_client() 和 set_remote_dss() 建立工作階段的方式。確認是否能在不依賴閉源 dataiku 套件的情況下傳遞憑證驗證設定。在使用自我簽署憑證時,requests 遵循 DKU_NO_CHECK_CERTIFICATE 和已設定的 no_check_certificate 值,即表示完成。
由索引模型根據 Issue 內容生成。
描述
In theory, Dataiku supports using self-signed certificates by setting e.g. using an environmental variable DKU_NO_CHECK_CERTIFICATE or by setting no_check_certificate=True in the set_remote function call of the non-open source dataiku package.
However, this parameter is not passed to the api_client(), which causes requests to fail which are made to Dataiku instances using self-signed certificates. It is possible to mitigate this by setting the verify value of the internal Session object to false:
client = dataiku.api_client()
client._session.verify = False
Which is not obvious and requires looking through the internals of the package.
A fix at the central call site of the dataikuapi package, _perform_http:
https://github.com/dataiku/dataiku-api-client-python/blob/fc51e29a12a1f50717771522e1b450ae91ff4d87/dataikuapi/dssclient.py#L1228-L1233
would only be possible in parts by duplicating the logic to check the "DKU_NO_CHECK_CERTIFICATE" variable or config files, but would still fail for Dataiku session set up by using the set_remote_dss function call.
The best option would be to add a "no_check_certificate" parameter to the DSSClient class that can be set when creating an instance of the class. But as the DSSClient is also used by the closed-source dataiku package, it seems to me that this can't be solved by contributing to the open source dataikuapi package.
- 主要語言
- Python
- 星號
- 44
- 分支
- 29
- 平均合併
- 3 小時 34 分鐘
- 30 天內合併 PR
- 2
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
dataiku/dataiku-api-client-python 的其他 Issue
-
難度 3/5 1-2 天 新手友好度 55/100
-
難度 2/5 1-3 小時 新手友好度 45/100
-
難度 4/5 3-5 天 新手友好度 30/100
dataiku/dataiku-api-client-python#335 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 35/100
-
難度 3/5 1-2 天 新手友好度 35/100
查看 dataiku/dataiku-api-client-python 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
spec-kitty/spec-kitty#5319 ·
維護者通常 1 天內回覆
-
backend::vllm diffusion multimodal
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
openai/openai-agents-python#5229 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 84/100
維護者通常 1 天內回覆