Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
11
Star
0
Fork
31
src-openEuler
/
cloud-init
Closed
Code
Issues
1
Pull Requests
2
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
需要适配python-requests的接口变更
Done
#ID98WV
Task
ultra_planet
Opened this issue
2025-11-28 10:25
<!-- #请根据issue的类型在标题左侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 【背景】 随着python-requests [CVE-2024-35195](https://gitee.com/src-openeuler/python-requests/issues/I9QSXK?from=project-issue)的修复,修复补丁对HTTPAdapter模块get_connection方法有接口更改。 cloud-init受此接口更改影响,特此通知提前适配python-requests的接口变更,防止CVE-2024-35195修复后cloud-init功能异常。 【接口变更说明】 CVE-2024-35195的上游社区修改方案:HTTPAdapter模块新增get_connection_with_tls_context方法,并在调用点中使用get_connection_with_tls_context代替get_connection,原先的get_connection方法被标记为弃用。因此,继承requests.adapters.HTTPAdapter类,并且重写了get_connection方法的代码将受到影响,出现报错。 【适配方案参考】 目前cloud-init上游社区已适配,参考补丁 https://github.com/canonical/cloud-init/commit/790d2291837de9c68ccc067cb2c88b11c60e69f9
<!-- #请根据issue的类型在标题左侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 【背景】 随着python-requests [CVE-2024-35195](https://gitee.com/src-openeuler/python-requests/issues/I9QSXK?from=project-issue)的修复,修复补丁对HTTPAdapter模块get_connection方法有接口更改。 cloud-init受此接口更改影响,特此通知提前适配python-requests的接口变更,防止CVE-2024-35195修复后cloud-init功能异常。 【接口变更说明】 CVE-2024-35195的上游社区修改方案:HTTPAdapter模块新增get_connection_with_tls_context方法,并在调用点中使用get_connection_with_tls_context代替get_connection,原先的get_connection方法被标记为弃用。因此,继承requests.adapters.HTTPAdapter类,并且重写了get_connection方法的代码将受到影响,出现报错。 【适配方案参考】 目前cloud-init上游社区已适配,参考补丁 https://github.com/canonical/cloud-init/commit/790d2291837de9c68ccc067cb2c88b11c60e69f9
Comments (
1
)
Sign in
to comment
Status
Done
Backlog
Doing
Done
Declined
Assignees
Not set
桐小哥
tong_1001
Assignee
Collaborator
+Assign
+Mention
Labels
sig/Base-service
Not set
Projects
Unprojected
Unprojected
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (29)
Tags (35)
master
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS-SP3
openEuler-24.03-LTS-SP2
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-Next
openEuler-22.03-LTS-SP3
openEuler-24.03-LTS
openEuler-25.09
openEuler-20.03-LTS-SP4
openEuler-25.03
openEuler-22.03-LTS-SP1
openEuler-24.09
openEuler-22.03-LTS-SP2
openEuler-22.03-LTS-Next
openEuler-22.03-LTS
openEuler-20.03-LTS-SP1
openEuler-20.03-LTS-SP3
openEuler-23.09
openEuler-23.03
openEuler-22.09
openEuler-20.03-LTS-SP2
openEuler-21.09
openEuler-20.03-LTS-Next
openEuler-20.03-LTS
openEuler-21.03
openEuler-20.09
openEuler1.0
openEuler1.0-base
openEuler-25.09-release
openEuler-24.03-LTS-SP1-update-20250911
openEuler-20.03-LTS-SP4-update-20250711
openEuler-22.03-LTS-SP3-update-20250711
openEuler-22.03-LTS-SP4-update-20250711
openEuler-24.03-LTS-update-20250711
openEuler-24.03-LTS-SP1-update-20250711
openEuler-24.03-LTS-SP2-update-20250711
openEuler-24.03-LTS-SP2-release
openEuler-25.03-release
openEuler-24.03-LTS-SP1-release
openEuler-22.03-LTS-SP1-update-20241213
openEuler-24.03-LTS-update-20241108
openEuler-22.03-LTS-SP1-update-20241108
openEuler-20.03-LTS-SP4-update-20241108
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round3
openEuler-22.03-LTS-round2
openEuler-22.03-LTS-round1
openEuler-20.03-LTS-SP3-release
openEuler-20.03-LTS-SP2-20210624
openEuler-21.03-20210330
openEuler-20.09-20200928
openEuler-20.03-LTS-20200606
openEuler-20.03-LTS-tag
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(1)
1
https://gitee.com/src-openeuler/cloud-init.git
git@gitee.com:src-openeuler/cloud-init.git
src-openeuler
cloud-init
cloud-init
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register