RATATOSK
← リリース一覧

OpenTelemetryv0.166.0

セキュリティ 13破壊的変更 2重大な修正 6機能・改善 8その他の変更 7

OpenTelemetryの通知を受け取る

週次メールは確認すべき変更がある週だけ、深刻度がcriticalのセキュリティアドバイザリは即時に届きます。

セキュリティ13セキュリティかどうか不明3

無効な dist.name 値の拒否

セキュリティかどうか不明
影響対象パス形式または制御文字を含む dist.name の値を指定した cmd/builder の設定(推定)

dist.name がパス形式の場合、go build -o によってバイナリが dist.output_path の外部に書き込まれる可能性がありました。ビルダーは現在、パス形式の名前と制御文字を含む名前に対して検証エラーを返します。

原文を表示
- `cmd/builder`: Using invalid characters in `dist.name` (`.`, `/`) now return an error. (#16416)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

cmd/builder が生成ファイルのパスにあるシンボリックリンクを拒否

影響対象生成ファイルのパスにシンボリックリンクがある cmd/builder の出力パス(推定)

以前は、生成ファイルのパスにあるシンボリックリンクをたどっていたため、出力パスの外へ書き込みがリダイレクトされる可能性がありました。現在は、そのシンボリックリンクを介して書き込む代わりに、生成時にエラーが返されます。

原文を表示
- `cmd/builder`: The builder now fails with an error instead of following such a symlink. (#16401)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

内部 HTTP テレメトリーで設定済みサーバーエンドポイントを使用

影響対象内部テレメトリーを生成する、pkg/confighttp で設定された HTTP サーバー(推定)

ServerName が未設定の場合、認証で拒否されたリクエストも含め、リクエストの Host ヘッダーが内部テレメトリーに記録されていました。現在は、server.address と server.port に設定済みのエンドポイントの値が使われます。

原文を表示
- `pkg/confighttp`: Set `ServerName` on the internal telemetry generated instead of the request's `Host` header. (#16433)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

TPM TLS認証値のマーシャリング時のマスキング

影響対象tpm::auth または tpm::owner_auth を使用するTPMベースのTLS設定(推定)

以前は tpm::auth と tpm::owner_auth は通常の文字列で、key_pem のように値がマスキングされていませんでした。設定を変更しなくても、これらのフィールドのいずれかを含む設定をマーシャリングすると、値が [REDACTED] と表示されるようになりました。エンドユーザーの操作感に変わりはありません。

原文を表示
- `pkg/configtls`: Update `tpm::auth` and `tpm::owner_auth` fields as opaque so they are redacted like `key_pem`. (#16435)
- `pkg/configtls`: Update `tpm::auth` and `tpm::owner_auth` fields as opaque so they are redacted like `key_pem`. (#16435)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

省略された設定値に対する OpAMP スナップショットのマスキング修正

影響対象reports_raw_config を有効にした OpAMP 拡張機能

enabled: false で無効化されたセクションや、ゼロ値の omitempty フィールド配下にあるインラインのシークレットは、マーシャリング後の設定に該当するセクションやフィールドが含まれない場合、そのまま報告されていました。スナップショットでは、これらのリーフ値がマスキングされるようになりました。null、ブール値、プレーンな ${...} のプロバイダー参照は引き続き表示されます。

原文を表示
- `pkg/otelcol`: Redact values below sections disabled with `enabled: false` in the unexpanded configuration snapshot reported by the OpAMP extension when `reports_raw_config` is enabled (#16441)
  `ConfigSnapshot.Unexpanded()` learns which leaves are opaque from the marshaled configuration.
  A section disabled with `enabled: false` and an `omitempty` field set to its zero value are not
  marshaled, so inline secrets below them were reported verbatim.
  Every leaf without a counterpart in the marshaled configuration is now masked; nulls, booleans
  and plain `${...}` provider references stay visible.
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

ビルダーによる無効な設定値の拒否

影響対象cmd/builder の設定(推定)

モジュール名は Go の識別子である必要があり、インポートパスと gomod のパス部分は有効なインポートパスである必要があります。指定するモジュール、ディストリビューション、置換、除外の各値には、説明されている制御文字を含めたり、複数行にまたがったりしてはなりません。同じモジュール検証はテレメトリーにも適用されます。

原文を表示
- `cmd/builder`: Provide additional validation in processing templates. (#16402)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

OTLP HTTP exporter による上流エラー詳細の制限

影響対象OTLP HTTP exporter を使用する構成

上流からのエラーレスポンスに深くネストされたステータス詳細やサイズの大きいステータス詳細が含まれる場合、従来のフォーマット処理では google.protobuf.Any の値を深さの上限なく再帰的にデコードしていました。exporter はネストの深さを 8、デコードする各詳細のサイズを 64 KiB、詳細の総数を 32 に制限するようになりました。これらの上限を超える詳細は、型 URL のみに縮約されます。

原文を表示
- `exporter/otlp_http`: Limit response size parsed by the exporter from upstream errors. (#16407)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

OTLP HTTP エクスポーターが HTTP 101 で停止する問題の修正

セキュリティかどうか不明
影響対象上流エンドポイントから HTTP 101 応答を受け取る OTLP HTTP エクスポーターを使用する構成

レスポンスボディの読み取りによってエクスポートが無期限にブロックされていました。エクスポーターはボディを読み取らずに閉じ、HTTP 101 ステータスエラーを返すようになりました。

原文を表示
- `exporter/otlp_http`: Do not read the body of a `HTTP 101` response, which blocked the export forever. (#16460)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

pkg/confighttp クライアントのCookie保存量の制限

影響対象cookies を有効にした pkg/confighttp クライアント

悪意のあるバックエンドがCookieを送信すると、上限のないCookie jarによってメモリ使用量が増加する可能性がありました。Cookie jarは4096バイトを超えるCookieを保存しなくなりました。また、レスポンスのCookieを追加すると種類数が3000を超える場合は、保存済みCookieをすべて削除してから、そのレスポンスの保存対象となるCookieを保存します。

原文を表示
- `pkg/confighttp`: Bound the cookie jar used by clients with `cookies` enabled. (#16421)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

confighttp クライアントへのレスポンスヘッダー上限の追加

影響対象pkg/confighttp の ClientConfig.ToClient で作成されるクライアント

以前は、サーバーが大きなレスポンスヘッダーを送信でき、リクエスト処理中にヘッダーマップが 1 件あたり 100 MiB を大幅に超えるメモリを使用することがありました。現在は、1 MiB を超えるレスポンスヘッダーを受信すると、クライアントのリクエストはエラーを返します。

原文を表示
- `pkg/confighttp`: Limit the response headers accepted by clients created by `ClientConfig.ToClient` to 1 MiB (`http.DefaultMaxHeaderBytes`). (#16423)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

provider/http のエラーにおける URI パスワードの伏字化

影響対象パスワードを含む URI を使用する provider/http の構成(推定)

以前は URI の解析に失敗した場合も、エラーに URI がそのまま含まれ、パスワードが漏れる可能性がありました。現在は伏字化した URI がエラーに引用され、解析できない URI の場合はエラーから URI の生値が省かれます。

原文を表示
- `provider/http`: Redact password in URI when it is being logged. (#16418)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

receiver/otlp の上流エラー応答サイズ制限

セキュリティかどうか不明
影響対象JSON クライアントと receiver/otlp を使用する構成(推定)

エクスポーターのエラーに深くネストされた google.protobuf.Any のステータス詳細が含まれ、JSON クライアント向けにエンコードされる場合、再帰的な展開によってコレクターのメモリーを使い果たすことがあります。上流エラーが発生した場合、receiver/otlp はエクスポーターからの応答をサイズ制限付きで解析するようになりました。制限値は明示されていません。

原文を表示
- `receiver/otlp`: Limit response size parsed by the receiver from the exporter when it receives upstream errors. (#16407)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

receiver/otlp のシャットダウン待機時間の上限

影響対象HTTP または gRPC サーバーを使用する receiver/otlp レシーバー

シャットダウン中または設定の再読み込み中に、未完了のリクエストを開いたままにするピアがいると、処理が無期限にブロックされる可能性がありました。現在、HTTP の待機時間は設定された読み取りタイムアウトと書き込みタイムアウトのうち長い方に30秒を加えた時間が上限となり、gRPC の待機時間は最大30秒です。呼び出し元の期限がこれより早い場合は、その期限が優先されます。上限に達すると、残っている接続は閉じられるか停止され、リクエストまたは RPC はキャンセルされます。

原文を表示
- `receiver/otlp`: Bound the time `Shutdown` waits for in-flight requests so that a peer holding an incomplete request open cannot block collector shutdown or config reload indefinitely. (#16462)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

破壊的変更2

バックエンド応答のヘッダーとトレーラーに64 KiBの上限を設定

影響対象OTLP gRPC エクスポーターを使用する構成

ヘッダーまたはトレーラーが64 KiBを超えるバックエンド応答では、エクスポートが恒久的に失敗します。

原文を表示
- `exporter/otlp_grpc`: Bound the response headers and trailers accepted from the backend to 64 KiB. (#16415)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

pkg/exporterhelper での storageID のオプション化

影響対象pkg/exporterhelper とその storageID 設定または API を使用する構成(推定)

以前は StorageID にポインターを使用していましたが、新しい configstorage モジュールとともに configoptional.Optional を使用するようになりました。

原文を表示
- `pkg/exporterhelper`: Change the storageID to use optional and use the new configstorage module (#13822)
github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

重大な修正6

  • NewProfilesController のプロファイルスクレイピングにレシーバーテレメトリーを追加
    影響対象pkg/xscraperhelper の NewProfilesController を使ってプロファイルをスクレイピングする構成

    プロファイルスクレイパーコントローラーは、これまでスクレイピングしたプロファイルを取り込んでも、レシーバーテレメトリーを報告していませんでした。今後はレシーバーのオブザーバビリティに反映され、レシーバー操作のスパンと、receiver/receiver/ProfilesReceived および otelcol_receiver_accepted_profile_samples メトリクスに含まれます。

    - `pkg/xscraperhelper`: Report receiver telemetry for profiles scraped by `NewProfilesController`, as is done for the other signals. (#16399)
    github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0
  • pkg/confmap の HTTP および HTTPS 設定取得でコンテキストのキャンセルと期限を尊重
    影響対象pkg/confmap 経由の HTTP および HTTPS による設定取得(推定)

    サーバーが接続を受け付けても応答しない場合、プロバイダーがコンテキストを無視していたため、キャンセル後も Retrieve が永久にブロックしていました。

    - `pkg/confmap`: Honor context cancellation and deadlines when retrieving configuration over HTTP and HTTPS. (#16351)
    github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0
  • pkg/exporterhelper のリトライにおけるバックエンドスロットル遅延の上限設定
    影響対象バックエンドのスロットル遅延を伴う pkg/exporterhelper のリトライ処理(推定)

    バックエンドが指定するスロットル遅延は、設定された max_interval 以下に制限されます。

    - `pkg/exporterhelper`: Limit retry backoff delay to the `max_interval` configured. (#16417)
    github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0
  • 複数シグナルで共有するレシーバーの部分的な再読み込み処理の修正
    影響対象レシーバーの部分的な再読み込みを使用する構成

    部分的な再読み込み中に、あるシグナル用のレシーバーが追加、削除、または再構築されても、otlp のように複数のシグナルで1つのインスタンスを共有するレシーバーは、他のシグナルの処理を継続します。

    - `pkg/service`: Rebuild a receiver for all of its signals when it is added, removed or rebuilt for one of them during a partial receiver reload, so that a receiver sharing one instance across signals, such as `otlp`, keeps serving the others. (#16260)
    github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0
  • OTLP の不正な UTF-8 拒否機能ゲートの追加
    影響対象receiver.otlp.rejectInvalidUTF8 を有効にした OTLP レシーバー構成

    従来、OTLP レシーバーは不正な UTF-8 を含むリクエストを下流に転送していました。このゲートを有効にすると、不正な項目はサポートされる最小のシグナル単位で拒否され、その件数は OTLP の部分成功カウントで報告されます。プロファイルでは、共有プロファイル辞書に不正な文字列が含まれていると、リクエスト内のすべてのプロファイルが拒否されます。

    - `receiver/otlp`: Add `receiver.otlp.rejectInvalidUTF8` feature gate to reject invalid UTF-8 in OTLP requests instead of forwarding invalid data downstream (#11449)
      This behavior is behind the `receiver.otlp.rejectInvalidUTF8` feature gate.
      When enabled, the OTLP receiver validates incoming traces, metrics, logs, and profiles for invalid UTF-8.
      Invalid items are rejected at the smallest supported signal unit and reported through OTLP partial success counts.
      For profiles, an invalid string in the shared profiles dictionary rejects every profile in the request because the dictionary cannot be attributed to a single profile.
    github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0
  • OTLP ExportRequest 型に SanitizeUTF8 を追加
    影響対象pkg/pdata の OTLP ExportRequest 型

    不正なデータを含むスパンを正常なデータとまとめてバッチ処理すると、取り込みに失敗し、一部の正常なデータが失われます。

    - `pkg/pdata`: Add `SanitizeUTF8` to the OTLP `ExportRequest` types to replace invalid UTF-8 byte sequences in all string fields with `U+FFFD` (#11449)
    github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0

機能・改善8

  • gRPC pick_first クライアント向けの解決済みアドレスのシャッフル

    利用条件 pick_first.shuffle_address_list オプションの有効化(デフォルトでは無効)

    - `pkg/configgrpc`: Add the `pick_first.shuffle_address_list` option to shuffle the resolved address list for gRPC clients that use the `pick_first` balancer. (#16235)
      When enabled, clients that receive the same address list no longer all connect to the first address (gRFC A62).
      The option is disabled by default.
    - `pkg/configgrpc`: Add the `pick_first.shuffle_address_list` option to shuffle the resolved address list for gRPC clients that use the `pick_first` balancer. (#16235)
      When enabled, clients that receive the same address list no longer all connect to the first address (gRFC A62).
      The option is disabled by default.
    github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0
  • pkg/configmiddleware による拡張機能の HTTP および gRPC サーバーリスナー作成機能
    - `pkg/configmiddleware`: allow listener middleware extensions to create HTTP and gRPC server listeners (#16029)
    github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0
  • OTLP レシーバーによる不正な UTF-8 のサニタイズ

    利用条件 receiver.otlp.sanitizeInvalidUTF8 フィーチャーゲート

    - `receiver/otlp`: Add `receiver.otlp.sanitizeInvalidUTF8` feature gate to replace invalid UTF-8 in OTLP requests with U+FFFD instead of forwarding invalid data downstream (#11449)
      This behavior is behind the `receiver.otlp.sanitizeInvalidUTF8` feature gate.
      When enabled, the OTLP receiver replaces every run of invalid UTF-8 bytes in the string fields of incoming traces, metrics, logs and profiles with the Unicode replacement character U+FFFD.
      Sanitized requests are forwarded whole, without partial success counts.
      If `receiver.otlp.rejectInvalidUTF8` is also enabled, it takes precedence and invalid items are rejected instead.
    github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0
  • OCB フックプラグイン向け ocbplugin パッケージの追加
    - `cmd/builder`: Added `ocbplugin` package. (#16409)
      This package will be used in the [upcoming OCB hooks feature](https://github.com/open-telemetry/opentelemetry-collector/issues/16066).
    github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0
  • cmd/mdatagen に内部ステータスクラスのオプションを追加
    - `cmd/mdatagen`: Added new _internal_ status.class (#16313)
    github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0
  • configopaque.String の定時間 Equal メソッド
    - `pkg/configopaque`: Add an `Equal` method to `configopaque.String` that compares its contents with a string using `subtle.ConstantTimeCompare`. (#16463)
    github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0
  • OTLP エクスポートリクエストの UTF-8 検証と無効データの除去
    - `pkg/pdata`: Add `ValidateUTF8` and `RejectInvalidUTF8` methods to the OTLP `ExportRequest` types (#11449)
      The methods are available on `ptraceotlp.ExportRequest`, `pmetricotlp.ExportRequest`, `plogotlp.ExportRequest` and `pprofileotlp.ExportRequest`.
      `ValidateUTF8` reports whether every string in the request is valid UTF-8.
      `RejectInvalidUTF8` removes the smallest signal units (spans, data points, log records, profiles) that contain invalid UTF-8 and returns how many were removed.
    github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0
  • processor.Settings への PipelineID の追加
    - `pkg/processor`: Added `PipelineID` to `processor.Settings`. (#16398)
      The service graph will now populate this field so a processor will know what pipeline its current instance belongs to.
    github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.166.0
その他の変更7

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