# Flux v2.10.1

2026-11-20 · [元のリリースノート](https://github.com/fluxcd/flux2/releases/tag/v2.10.1) · [全体のまとめ](https://ratatosk.io/ja/releases/flux/v2.10.1)

セキュリティ 1 · 破壊的変更 1 · 重大な修正 11 · 機能・改善 1 · 依存関係の更新 7 · その他の変更 3

## アップグレード前の確認事項

### アップグレードガイド

- **非推奨のベータ API 移行に向けた Flux v2.7+ へのアップグレード手順**
  > ℹ️ Please follow the [Upgrade Procedure for Flux v2.7+](https://github.com/fluxcd/flux2/discussions/5572) for a smooth upgrade from Flux v2.6 to the latest version.

## セキュリティ (1)

### [release/v2.10.x] Strip credentials from the push artifact source URL by @fluxcdbot in https://github.com/fluxcd/flux2/pull/6179

- 影響対象: リリースノートに記載なし

> * [release/v2.10.x] Strip credentials from the push artifact source URL by @fluxcdbot in https://github.com/fluxcd/flux2/pull/6179

## 破壊的変更 (1)

### Git HTTP/S 基本認証で不完全な認証情報を拒否

- 影響対象: HTTP/S 基本認証を使った Git シークレット生成、ソース作成、ブートストラップ (推定)

ユーザー名またはパスワードが欠けている場合、Git シークレットやソースマニフェストを生成せず、エラーを返すようになりました。トークン認証では、空でないユーザー名とパスワードを使用できます。SSH パスワードはこのチェックの対象外です。また、`--secret-ref` を使ったソース作成は、ソース作成時のチェックでは検証されません。

根拠: “for Git over HTTP/S, basic authentication requires both a username and a password; for token-based authentication, use the token as the password with any non-empty username” https://github.com/fluxcd/flux2/pull/6185

> * [release/v2.10.x] Reject partial basic auth in secret commands by @fluxcdbot in https://github.com/fluxcd/flux2/pull/6185

## 重大な修正 (11)

### kustomize-controller による reconcile-duration メトリクス系列の削除

- 影響対象: 存在しなくなる可能性のあるオブジェクトの reconcile-duration メトリクスを収集する構成 (推定)

オブジェクトが存在しなくなると、系列が削除されます。

> - Delete the reconcile duration metric series for objects that no longer exist (kustomize-controller)

### Bootstrap `--team` の権限解析の修正

- 影響対象: `team:permission` 形式の Bootstrap `--team` エントリー (推定)

以前は、解析時に `team:permission` 全体もデフォルト権限で追加されていました。現在はチーム名だけを指定された権限に対応付けます。明示的な権限のないエントリーには、引き続きデフォルト権限が適用されます。

> * [release/v2.10.x] Fix --team parsing in bootstrap commands by @fluxcdbot in https://github.com/fluxcd/flux2/pull/6213

### 注釈変更時のServiceAccount認証情報キャッシュ更新

- 影響対象: helm-controller、kustomize-controller、source-controller、notification-controller、image-reflector-controller、image-automation-controllerのいずれかで、`credential.auth.fluxcd.io/username` または `gcp.auth.fluxcd.io/workload-identity-provider` の注釈が付いたServiceAccount

この修正前は、どちらかの注釈を変更しても、キャッシュ済みの認証器が期限切れになるか、コントローラーが再起動するまで使われ続けていました。次回の調整処理から、新しい認証情報のユーザー名またはGCPワークロードアイデンティティプロバイダーが使われます。

> Flux v2.10.1 is a patch release that fixes credential caching across the controllers, so changes to the `credential.auth.fluxcd.io/username` and `gcp.auth.fluxcd.io/workload-identity-provider` ServiceAccount annotations take effect on the next reconcile instead of continuing to use the previously cached authenticator until it expires or the controller restarts. It also resolves the default decryption ServiceAccount lazily for Kustomizations that only use Age or PGP keys, restores authentication to registries whose token service runs on a private address and after same-host HTTP to HTTPS redirects by updating ORAS to v2.7.0, and fixes Git checkouts that deleted the target of a relative symlink or got permanently stuck when the push branch removed a file that relative symlinks point to. Users are encouraged to upgrade for the best experience.
> - Fix the credentials cache key so changes to the credential username or the GCP workload identity provider take effect on the next reconcile (helm-controller, kustomize-controller, source-controller, notification-controller, image-reflector-controller, image-automation-controller)

### source-controller のレジストリ認証の復旧

- 影響対象: source-controller による認証を受けるレジストリ

レジストリのトークンサービスがプライベートアドレスで稼働している場合や、認証フローで同一ホスト内の HTTP から HTTPS へのリダイレクトが発生する場合に、認証が失敗していました。ORAS v2.7.0 では、どちらの場合も正常に動作します。

> Flux v2.10.1 is a patch release that fixes credential caching across the controllers, so changes to the `credential.auth.fluxcd.io/username` and `gcp.auth.fluxcd.io/workload-identity-provider` ServiceAccount annotations take effect on the next reconcile instead of continuing to use the previously cached authenticator until it expires or the controller restarts. It also resolves the default decryption ServiceAccount lazily for Kustomizations that only use Age or PGP keys, restores authentication to registries whose token service runs on a private address and after same-host HTTP to HTTPS redirects by updating ORAS to v2.7.0, and fixes Git checkouts that deleted the target of a relative symlink or got permanently stuck when the push branch removed a file that relative symlinks point to. Users are encouraged to upgrade for the best experience.
> - Restore authentication to registries whose token service runs on a private address and after same-host HTTP to HTTPS redirects by updating ORAS to v2.7.0 (source-controller)

### source-controller の Git チェックアウトで相対シンボリックリンクのターゲットが削除される問題の修正

- 影響対象: source-controller の Git チェックアウト

チェックアウト対象のリビジョンで相対シンボリックリンクが削除されると、チェックアウト処理によってそのシンボリックリンクのターゲットも削除されていました。この状況でターゲットが削除されなくなりました。

> Flux v2.10.1 is a patch release that fixes credential caching across the controllers, so changes to the `credential.auth.fluxcd.io/username` and `gcp.auth.fluxcd.io/workload-identity-provider` ServiceAccount annotations take effect on the next reconcile instead of continuing to use the previously cached authenticator until it expires or the controller restarts. It also resolves the default decryption ServiceAccount lazily for Kustomizations that only use Age or PGP keys, restores authentication to registries whose token service runs on a private address and after same-host HTTP to HTTPS redirects by updating ORAS to v2.7.0, and fixes Git checkouts that deleted the target of a relative symlink or got permanently stuck when the push branch removed a file that relative symlinks point to. Users are encouraged to upgrade for the best experience.
> - Fix Git checkouts deleting the target of a relative symlink when the checked-out revision removes the symlink (source-controller)

### image-automation-controller の Git チェックアウト停止の修正

- 影響対象: image-automation-controller の Git チェックアウト

push するブランチで相対シンボリックリンクの参照先ファイルを削除すると、チェックアウトが永久に停止することがありました。

> Flux v2.10.1 is a patch release that fixes credential caching across the controllers, so changes to the `credential.auth.fluxcd.io/username` and `gcp.auth.fluxcd.io/workload-identity-provider` ServiceAccount annotations take effect on the next reconcile instead of continuing to use the previously cached authenticator until it expires or the controller restarts. It also resolves the default decryption ServiceAccount lazily for Kustomizations that only use Age or PGP keys, restores authentication to registries whose token service runs on a private address and after same-host HTTP to HTTPS redirects by updating ORAS to v2.7.0, and fixes Git checkouts that deleted the target of a relative symlink or got permanently stuck when the push branch removed a file that relative symlinks point to. Users are encouraged to upgrade for the best experience.
> - Fix Git checkouts getting stuck when the push branch removes a file that relative symlinks point to (image-automation-controller)

### `flux migrate` によるカスタムリソース一覧の分割取得

- 影響対象: `flux migrate` で実行するカスタムリソースの移行

以前は、`flux migrate` は CRD ごとのすべてのカスタムリソースを1回のリクエストで一覧取得してから処理していました。現在は全件を一度に読み込まず、ページ分割された一覧レスポンスを処理します。

> * [release/v2.10.x] Paginate resource listing in flux migrate by @fluxcdbot in https://github.com/fluxcd/flux2/pull/6196

### `flux migrate` の継続トークン期限切れ時の再試行

- 影響対象: `flux migrate` で実行するカスタムリソースの移行 (推定)

ページ分割された一覧の取得中に継続トークンが期限切れになると、これまでは分割移行が一覧取得エラーを返し、最初から再開しませんでした。オブジェクトを一部パッチした後に期限切れになった場合、移行は最初のページから再開し、パッチ済みのオブジェクトをスキップするようになりました。進捗がない段階で期限切れになった場合は、引き続きエラーを返します。

> * [release/v2.10.x] Prevent infinite loop on flux migrate by @fluxcdbot in https://github.com/fluxcd/flux2/pull/6205

### 読み取り専用のシンボリックリンク解決先に対するアーティファクトコピー権限の修正

- 影響対象: シンボリックリンクを解決するアーティファクトのビルド

シンボリックリンクの解決先が読み取り専用ディレクトリの場合、コピーしたディレクトリが書き込み不可のままになり、コピー処理を完了できないことがありました。コピーでは元の権限ビットを引き継いだうえで、所有者に読み取り・書き込み・実行権限を追加します。これにより、コピーへの書き込みと削除が可能になります。

> * [release/v2.10.x] Fix resolve-symlinks for read-only directories by @fluxcdbot in https://github.com/fluxcd/flux2/pull/6207

### Kustomization ファイルの stat エラーによるパニックの修正

- 影響対象: `flux build kustomization` または `flux diff kustomization` に渡す kustomization ファイルのパス (推定)

いずれかのコマンドに `os.Stat` がエラーを返す kustomization ファイルのパスを渡すと、ファイル情報を取得できず、パニックが発生することがありました。現在は代わりに `invalid kustomization file` エラーを報告します。

> * [release/v2.10.x] Fix panic on unreadable kustomization file by @fluxcdbot in https://github.com/fluxcd/flux2/pull/6208

### `flux tree kustomization` の短いペイロードによるパニックを修正

- 影響対象: `flux tree kustomization` で検査する Helm リリースストレージ (推定)

base64デコードされた Helm リリースペイロードが3バイトの gzip ヘッダーより短い場合、チェックされていないスライス操作によってパニックが発生する可能性がありました。このコマンドではパニックを回避するようになりました。gzip 形式でないデータは引き続き非圧縮の JSON として扱われ、無効なペイロードでは引き続きデコードエラーが返る場合があります。

> * [release/v2.10.x] Fix panic decoding short Helm release storage in tree by @fluxcdbot in https://github.com/fluxcd/flux2/pull/6211

## 機能・改善 (1)

- `--registry-creds` でコロンを含むパスワードを受け付ける変更

## 依存関係の更新 (7)

ほか7件（いずれもセキュリティへの言及なし）

- `- source-controller [v1.10.2](https://github.com/fluxcd/source-controller/blob/v1.10.2/CHANGELOG.md)`
- `- kustomize-controller [v1.10.2](https://github.com/fluxcd/kustomize-controller/blob/v1.10.2/CHANGELOG.md)`
- `- notification-controller [v1.10.1](https://github.com/fluxcd/notification-controller/blob/v1.10.1/CHANGELOG.md)`
- `- helm-controller [v1.7.2](https://github.com/fluxcd/helm-controller/blob/v1.7.2/CHANGELOG.md)`
- `- image-reflector-controller [v1.3.1](https://github.com/fluxcd/image-reflector-controller/blob/v1.3.1/CHANGELOG.md)`
- `- image-automation-controller [v1.3.1](https://github.com/fluxcd/image-automation-controller/blob/v1.3.1/CHANGELOG.md)`
- `* [release/v2.10.x] Update toolkit components by @fluxcdbot in https://github.com/fluxcd/flux2/pull/6210`

## その他の変更 (3)

- kustomize-controller における復号用デフォルト ServiceAccount の遅延解決
- source-controller、image-reflector-controller、image-automation-controller におけるデフォルト ServiceAccount 解決の修正
- Flux コントローラーからオブジェクト単位のワークロード ID に関する残存ログメッセージを削除

---

整理した内容は AI が作成するため誤っている可能性があり、無保証で提供されます。
