Azure Update Manager disregards FIPS repositories for Ubuntu 22.04
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- python, ubuntu
调研方向
从 AptitudePackageManager.py:186 和安全源列表构造开始,然后结合 Ubuntu Pro 发现路径,跟踪第 486-490 行的 install_security_updates_azgps_coordinated()。重现或检查 issue 中描述的 Ubuntu 22.04 FIPS 场景;当 FIPS openssh 更新在安装期间仍然可用,且未选择非 FIPS 软件包时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
Due to the filter in AptitudePackageManager, updates provided by the FIPS repo https://esm.ubuntu.com/fips-updates/ubuntu jammy-updates does not pass the filter and is dropped. If the Ubuntu Pro client is enabled, this problem is worse and will ultimately lead to non-FIPS packages being installed causing conflicts.
Azure Update Manager installs non-FIPS openssh-server on FIPS-enabled Ubuntu 22.04
Root Cause
The LinuxPatchExtension (v1.6.64) has two independent mechanisms for discovering
available updates:
- apt-get -s dist-upgrade (using a custom filtered source list)
- Ubuntu Pro Client API (via uaclient.api.u.pro.packages.updates.v1)
When building the security-classification source list, the extension filters each
deb line with a simple substring check:
AptitudePackageManager.py:186
if base_classification == Constants.PackageClassification.SECURITY and "security" not in line:
continue
The FIPS updates repo uses suite name "jammy-updates", not "jammy-security":
deb https://esm.ubuntu.com/fips-updates/ubuntu jammy-updates main
So it gets excluded from the security source list. Other ESM repos survive because
they have "-security" suites (jammy-apps-security, jammy-infra-security).
During DISCOVERY, the Pro Client independently finds the FIPS openssh packages
(classified as "standard-security") and they get merged into the combined package
list. The log shows them as "Pro Client only updates."
During INSTALLATION, the Pro Client is not involved. The extension calls:
AptitudePackageManager.py:486-490
install_security_updates_azgps_coordinated() ->
apt-get -y --only-upgrade true dist-upgrade
This rebuilds the same filtered security source list (without the FIPS repo).
apt resolves openssh-server from jammy-security instead, installing the non-FIPS
version.
Summary: discovery uses Pro Client (FIPS-aware), installation uses apt with a
filtered source list (not FIPS-aware). The two paths are not coordinated.
- 主要语言
- Python
- 星标
- 12
- 派生
- 20
- 平均合并
- 3 天 2 小时
- 30 天内合并 PR
- 2
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Azure/LinuxPatchExtension 的其他 Issue
-
难度 2/5 半天 新手友好度 68/100
Azure/LinuxPatchExtension#350 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 48/100
Azure/LinuxPatchExtension#381 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
Azure/LinuxPatchExtension#369 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 52/100
Azure/LinuxPatchExtension#339 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 38/100
Azure/LinuxPatchExtension#335 ·
查看 Azure/LinuxPatchExtension 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 78/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 74/100