Azure Update Manager disregards FIPS repositories for Ubuntu 22.04
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- python, ubuntu
調査の方向性
AptitudePackageManager.py:186 と security source-list の構築から始め、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時間
- マージ済み PR(30日)
- 2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/LinuxPatchExtension のほかの issue
-
難易度 2/5 半日 初心者へのやさしさ 68/100
Azure/LinuxPatchExtension#350 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
Azure/LinuxPatchExtension#381 · リアクション 1 件 ·
-
難易度 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
-
documentation help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
simonw/sqlite-utils#872 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100