RATATOSK
← リリース一覧

gRPCv1.86.0

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

gRPCの通知を受け取る

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

セキュリティ5high1セキュリティかどうか不明1

Channelz v2 QueryTrace のサービス妨害につながる不具合の修正

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

grpc.channelz.v2.Channelz に RPC を送信できる信頼できない呼び出し元は、サーバープロセスを停止させたり、ワーカースレッドをブロックしたりできました。QueryTrace で引数を検証するようになり、呼び出し元が RPC をキャンセルするとサーバーリソースが解放されます。

原文を表示
セキュリティアドバイザリ
Your server is affected only if both of these are true:
- Your gRPC C++ server activates Channelz with `grpc::channelz::experimental::InitChannelzService()`.
- An untrusted caller can send RPCs to the Channelz v2 service (`grpc.channelz.v2.Channelz`).
gRPC C++ did not correctly check the arguments and the state of the `QueryTrace` RPC. A remote caller can send `QueryTrace` requests that stop the server process or keep server worker threads blocked. This causes a denial of service (DoS).
The fix checks the `QueryTrace` arguments and releases server resources when the caller cancels the RPC.
- Do not call `grpc::channelz::experimental::InitChannelzService()` in production servers.
- Block access to `grpc.channelz.v2.Channelz` from untrusted callers. Use authentication, an authorization policy, or a network rule.
github.com/grpc/grpc/security/advisories/GHSA-mp3j-8555-cjpj
セキュリティアドバイザリ
A denial of service (DoS) vulnerability was found and fixed in the gRPC C++ Channelz v2 service.
github.com/grpc/grpc/security/advisories/GHSA-mp3j-8555-cjpj

xDS リソースと authority チャネルの照合

影響対象xDS クライアントの構成

xDS リソースが、その authority 用に構成されていないチャネルに届いた場合、処理されずに無視されます。

原文を表示
-  [XdsClient] check that resources are received from the right servers. ([#43695](https://github.com/grpc/grpc/pull/43695))
github.com/grpc/grpc/releases/tag/v1.86.0

gRPC リポジトリのルート証明書バンドルを Chromium のルート証明書に更新

影響対象gRPC リポジトリのルート証明書バンドルを使った証明書検証(推定)
原文を表示
-  [Security] Update repo roots to chromium roots. ([#43890](https://github.com/grpc/grpc/pull/43890))
github.com/grpc/grpc/releases/tag/v1.86.0

c-ares の DNS-over-TCP 書き込みによる SIGPIPE 終了の修正

セキュリティかどうか不明
影響対象MSG_NOSIGNAL または SO_NOSIGPIPE を使用する POSIX プラットフォーム上の c-ares DNS-over-TCP(システムの c-ares 1.34.7 以降とリンクするビルドを含む)

DNS サーバーがすでに TCP 接続を閉じているかリセットしている場合、c-ares の書き込みによって SIGPIPE が発生し、プロセスが終了することがありました。現在、c-ares は EPIPE を接続エラーとして扱い、プロセスを終了させずにクエリを再試行するか、失敗として処理します。

原文を表示
-  [EventEngine] Avoid SIGPIPE on c-ares writes to closed TCP sockets. ([#43802](https://github.com/grpc/grpc/pull/43802))
github.com/grpc/grpc/releases/tag/v1.86.0

gRPC リポジトリのルート証明書バンドルの更新

影響対象証明書チェーンの検証に gRPC リポジトリのルート証明書バンドルを使用する構成(推定)

更新後のバンドルにも emSign Root CA - G1 が含まれています。

原文を表示
-  [security] Update gRPC repo roots. ([#43699](https://github.com/grpc/grpc/pull/43699))
github.com/grpc/grpc/releases/tag/v1.86.0

破壊的変更1

InterceptedCall のメタデータ取得メソッドが空の Metadata を返す変更

影響対象InterceptedCall.initial_metadata() または InterceptedCall.trailing_metadata() を使用する Python AIO 呼び出し

以前は、呼び出しがキャンセルされた場合や、AioRpcError にメタデータがない場合、これらのメソッドが None を返すことがありました。該当する場合は空の Metadata() を返すようになり、取得可能なメタデータは引き続き返されます。

根拠“Make `InterceptedCall` method `trailing_metadata` and `initial_metadata` return `Metadata` instead of `Optional[Metadata]`.” grpc/grpc/pull/42743 ↗
原文を表示
-  [Python] AIO Part 5 - Type Hints fixes and add Pyright for all aio files. ([#42743](https://github.com/grpc/grpc/pull/42743))
github.com/grpc/grpc/releases/tag/v1.86.0

重大な修正3

  • Python AIO の非 OK 呼び出し表現の順序修正
    影響対象Python AIO の呼び出し文字列と表現の出力(推定)

    ABORTED の呼び出しでは、表現にステータスとして StatusCode.ABORTED が表示され、対応する詳細テキストも併記されます。

    -  [Python] Fix the ordering of status and details in _NON_OK_CALL_REPRESENTATION. ([#43869](https://github.com/grpc/grpc/pull/43869))
    github.com/grpc/grpc/releases/tag/v1.86.0
  • 同期 Python Channel のクローズ時のデッドロック修正
    影響対象同期 API を介した Python Channel のクローズ

    以前は、gRPC のバックグラウンドスレッドが呼び出し認証情報プラグインなどの Python コールバックを実行している間にチャネルを閉じると、Python プロセスがフリーズすることがありました。完了キューとチャネルの破棄、および gRPC のシャットダウンは、GIL を保持せずに実行されるようになりました。

    -  [Python] Fix GIL deadlocks: Release GIL during grpc_channel_destroy/grpc_shutdown in Channel close. ([#43962](https://github.com/grpc/grpc/pull/43962))
    github.com/grpc/grpc/releases/tag/v1.86.0
  • Python 認証情報ファクトリーのクラッシュ修正
    影響対象Python の認証情報ファクトリー grpc.xds_server_credentials() と ComputeEngineChannelCredentials

    grpc.xds_server_credentials() に None または空のフォールバック認証情報ラッパーを渡すと、または ComputeEngineChannelCredentials に None の呼び出し認証情報を渡すと、ネイティブコードに到達してインタープリターがクラッシュするか、プロセスが異常終了する可能性がありました。これらの入力に対しては、代わりに ValueError が発生するようになりました。

    -  [Python]  Raise ValueError instead of crashing when credential factories receive None. ([#43592](https://github.com/grpc/grpc/pull/43592))
    github.com/grpc/grpc/releases/tag/v1.86.0

機能・改善3

  • 非xDSトランスポート向けの公開 TransportFactory API
    -  [API] Channel factory for Sidechannel communication for non-xds cases. ([#43603](https://github.com/grpc/grpc/pull/43603))
    github.com/grpc/grpc/releases/tag/v1.86.0
  • grpcio_status にバージョン属性を追加
    -  [Python] Added Python API to retrieve library version of grpcio-status. ([#39037](https://github.com/grpc/grpc/pull/39037))
    github.com/grpc/grpc/releases/tag/v1.86.0
  • ChannelArgumentType の grpc.aio エクスポートへの追加
    -   [Python] AIO Part 6 - Type Hints fixes and add Pyright for all aio files #42738. ([#43608](https://github.com/grpc/grpc/pull/43608))
    github.com/grpc/grpc/releases/tag/v1.86.0

依存関係の更新1

    ほか1件(いずれもセキュリティへの言及なし)
    • - [Core] Upgrade cares to 1.34.9. ([#43958](https://github.com/grpc/grpc/pull/43958))
    その他の変更7
    • map_host_header_to_authority 実験のデフォルト有効化
      -  [chttp2] enable map_host_header_to_authority experiment. ([#43799](https://github.com/grpc/grpc/pull/43799))
      github.com/grpc/grpc/releases/tag/v1.86.0
    • setuptools 84 における Windows ARM64 コンパイラー処理の修正
      -  [Python] Fix ARM64 Windows compiler patching with setuptools 84. ([#43785](https://github.com/grpc/grpc/pull/43785))
      github.com/grpc/grpc/releases/tag/v1.86.0
    • grpcio-tools と grpcio-observability から setuptools のインストール要件を削除
      -  [Python] grpcio-tools , grpcio-observability: drop setuptools from install_requires. ([#43601](https://github.com/grpc/grpc/pull/43601))
      github.com/grpc/grpc/releases/tag/v1.86.0
    • grpc_tools.protoc と grpc_tools.command における importlib.resources の使用
      -  [Python] grpcio-tools , grpcio-observability: drop setuptools from install_requires. ([#43601](https://github.com/grpc/grpc/pull/43601))
      github.com/grpc/grpc/releases/tag/v1.86.0
    • Python AIO の型ヒントを修正
      -   [Python] AIO Part 6 - Type Hints fixes and add Pyright for all aio files #42738. ([#43608](https://github.com/grpc/grpc/pull/43608))
      github.com/grpc/grpc/releases/tag/v1.86.0
    • Pyright 設定の対象を AIO ディレクトリー内の全ファイルに拡大
      -   [Python] AIO Part 6 - Type Hints fixes and add Pyright for all aio files #42738. ([#43608](https://github.com/grpc/grpc/pull/43608))
      github.com/grpc/grpc/releases/tag/v1.86.0
    • _done_writing_flag の型チェック追加
      -   [Python] AIO Part 6 - Type Hints fixes and add Pyright for all aio files #42738. ([#43608](https://github.com/grpc/grpc/pull/43608))
      github.com/grpc/grpc/releases/tag/v1.86.0

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