# Knative knative-v1.20.1

2025-12-25 · [元のリリースノート](https://github.com/knative/serving/releases/tag/knative-v1.20.1) · [全体のまとめ](https://ratatosk.io/ja/releases/knative/knative-v1.20.1)

セキュリティ 1 · 破壊的変更 2 · 重大な修正 3 · 依存関係の更新 1

## セキュリティ (1)

### `AllowRootBounded` のセキュリティコンテキストの既定値

- 影響対象: `secure-pod-defaults` フィーチャー設定を使用する Revision ワークロード (推定)
- 追加の対応: `secure-pod-defaults` を `AllowRootBounded` に設定

`AllowRootBounded` は、`SeccompProfile` と `Capabilities` が nil の場合に既定値を設定しますが、`Enabled` で使用される `runAsNonRoot` の既定値は適用しません。v1.20 では `secure-pod-defaults` は引き続きデフォルトで無効なため、アップグレードだけでは Revision の既定値は変わりません。

> We've introduce `secure-pod-defaults` in an earlier release but this release includes a new setting `AllowRootBounded` that offers a better security posture for your workloads but balances the compatibility with images that require/expect you to run as root.

## 破壊的変更 (2)

### Serving のメトリクス名を変更

- 影響対象: `kn.queueproxy.app.duration` または `kn.queueproxy.depth` を使用する Serving メトリクスクエリやダッシュボード (推定)

Serving が出力するメトリクス名が、`kn.queueproxy.app.duration` と `kn.queueproxy.depth` から `kn.serving.invocation.duration` と `kn.serving.queue.depth` に変更されました。

根拠: “Fix metric names to match the original design document `kn.queueproxy.app.duration` becomes `kn.serving.invocation.duration` and `kn.queueproxy.depth` becomes `kn.serving.queue.depth`” https://github.com/knative/serving/pull/16293

> * [release-1.20] Fix Serving Metric Names to match Design Document by @knative-prow-robot in https://github.com/knative/serving/pull/16293

### Autoscaler サービス統計メトリクスからの `RevisionNameKey` の削除

- 影響対象: `RevisionNameKey` を使用する Autoscaler サービス統計メトリクスを利用する構成 (推定)

このリリース以前は、スクレーパーが `RevisionNameKey` としてリビジョン名をこれらのメトリクスに付加していました。

> * [release-1.20] Make autoscaler instrument async so we can remove metric attributes when revisions go away by @knative-prow-robot in https://github.com/knative/serving/pull/16302

## 重大な修正 (3)

### Knative Serving による外部メタデータの調整時の保持

- 影響対象: 外部ラベルまたはアノテーションを持つ Serving Deployment または Pod テンプレート (推定)

Knative が管理する `knative.dev` キーと app ラベルには、望ましい値が使用されます。それ以外のメタデータキーは、現在のリソースから引き継がれます。

> * [release-1.20] Preserve deployment and its template labels and annotations by @knative-prow-robot in https://github.com/knative/serving/pull/16303

### オートスケーラーのメトリクス増加の上限なし状態を修正

- 影響対象: Knative Serving のオートスケーラーのメトリクス収集 (推定)

リビジョンがなくなった後もリビジョンのメトリクス属性を削除できない場合、メトリクスデータが際限なく増加する可能性がありました。オートスケーラーのメトリクスにはオブザーバブルゲージを使用するようになり、関連するスケーラーリソースの削除時に登録を解除できるようになりました。

> * [release-1.20] Make autoscaler instrument async so we can remove metric attributes when revisions go away by @knative-prow-robot in https://github.com/knative/serving/pull/16302

### Serving における「デフォルト値が安全でない」警告の抑制

- 影響対象: `SecurePodDefaults` を `Enabled` または `AllowRootBounded` に設定した Serving 環境

テストで確認された、セキュリティコンテキストが不完全なケースも含まれます。

> * [release-1.20] Suppress 'default value insecure' warning when secure-pod-defaults is enabled. by @knative-prow-robot in https://github.com/knative/serving/pull/16220

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

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

- `* [release-1.20] Upgrade to latest dependencies by @knative-automation in https://github.com/knative/serving/pull/16319`

---

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