Support for HTTP Basic Authentication when registering templates or ISOs from HTTPS URLs
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- java
调研方向
Start by tracing the template and ISO URL registration flow through the API, UI, and secondary storage download path; the issue names HttpTemplateDownloader and DownloadManagerImpl in its logs. Find where download credentials are configured and how registration parameters reach that code. Done means valid credentials can be supplied for HTTPS Basic Authentication and private artifacts download successfully.
由索引模型根据 Issue 内容生成。
描述
ISSUE TYPE
- Feature Idea
- Enhancement Request
COMPONENT NAME
Templates / ISOs / URL-based registration / Secondary Storage
CLOUDSTACK VERSION
All versions
CONFIGURATION
N/A
OS / ENVIRONMENT
N/A
SUMMARY
The CloudStack template and ISO registration flow supports downloads from remote URLs, but it does not currently provide a mechanism to authenticate to protected HTTPS endpoints that require HTTP Basic Authentication.
This limits the ability to register templates and ISOs from secure artifact repositories such as JFrog Artifactory, Nexus, or similar services that require a username and password before the artifact can be retrieved.
DESCRIPTION
CloudStack should support authenticated URL-based downloads when registering templates or ISOs. In particular, the registration flow should allow a user to provide credentials for HTTPS endpoints that require HTTP Basic Authentication.
At present, the system does not expose a standard mechanism to pass a username and password during URL-based template/ISO registration. As a result, authenticated remote sources cannot be used directly and users are forced to make those resources publicly accessible or use unsupported external workarounds.
This is a common requirement in enterprise environments where artifacts are stored in private repositories and are exposed only through authenticated HTTP endpoints.
EXPECTED RESULTS
The CloudStack UI and API should allow template and ISO registration from HTTPS URLs that require HTTP Basic Authentication.
The feature should support providing:
- username
- password
- optional authentication metadata if required by the backend
and should permit successful download of the artifact when valid credentials are supplied.
ACTUAL RESULTS
The download fails because CloudStack does not provide a way to pass credentials to the HTTP endpoint. The operation typically fails with authentication errors such as HTTP 401 Unauthorized or equivalent download failures.
2026-10-21T17:47:05,415 INFO [storage.template.HttpTemplateDownloader] (AgentRequest-Handler-5:[]) No credentials configured for host=artifact.it.com:443
2026-10-21T17:47:06,414 INFO [storage.template.DownloadManagerImpl] (pool-2-thread-2:[]) Download Completion for jobId: 0184fd4a-f8a6-4016-8430-67ae5ba23a25, status=UNRECOVERABLE_ERROR
2026-10-21T17:47:06,433 INFO [storage.template.DownloadManagerImpl] (pool-2-thread-2:[]) local: /mnt/SecStorage/233b2e1f-c329-39f4-83ae-6ed1f66f22bd/template/tmpl/2/338/dnld680537437357276481tmp_, bytes=(0 bytes) 0, error= HTTP Server returned 401 (expected 200 OK) , pct=0
PROPOSED SOLUTION
Add support for HTTP Basic Authentication in the template/ISO URL registration flow.
The solution may include:
- username and password fields in the UI
- API parameters for authenticated downloads
- validation of credentials during the source fetch
- support for private repositories such as JFrog Artifactory
IMPACT
This feature is required for secure enterprise deployment practices. It enables CloudStack to consume artifacts from private, authenticated repositories without exposing those artifacts publicly or relying on unsupported manual workarounds.
- 主要语言
- Java
- 星标
- 3.1k
- 派生
- 1.4k
- 平均合并
- 7 天 16 小时
- 30 天内合并 PR
- 15
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/cloudstack 的其他 Issue
-
resizeVolume of a running system VM's volume is accepted but the VM never sees the new size可能已有人在做 @bhouse-nexthop 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
apache/cloudstack#14645 · 1 条评论 ·
维护者通常 1 天内回复
-
VR reports a load balancer change as applied when haproxy.cfg cannot be replaced可能已有人在做 @bhouse-nexthop 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
apache/cloudstack#14633 · 1 条评论 ·
维护者通常 1 天内回复
-
restartNetwork reports a ResourceUnavailableException as an unexpected error (530), unlike restartVPC (534)可能已有人在做 @bhouse-nexthop 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
apache/cloudstack#14631 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
apache/cloudstack#14625 · 1 条评论 ·
维护者通常 1 天内回复
-
Remote access VPN users are disconnected on every LB, ACL, port forward or firewall change (xl2tpd restarted on every iptables pass)可能已有人在做 @willbennett-devops 于 12 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
apache/cloudstack#14545 · 1 条评论 ·
维护者通常 1 天内回复
查看 apache/cloudstack 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
ls1intum/thesis-management#1473 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
LunaDeerMC/Dominion#301 · 1 条评论 ·
-
[FEATURE] Expose external refresh, node-level translog and warmer stats可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭untriaged
难度 2/5 1-3 小时 新手友好度 68/100
opensearch-project/opensearch-prometheus-exporter#680 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 2 天内回复