RATATOSK
← リリース一覧

Daprv1.17.21

セキュリティ 36重大な修正 2

Daprの通知を受け取る

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

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

既知の問題1
コンポーネントコンテナーの環境変数値に含まれるシークレット

リテラルの env 値にシークレットを設定するのではなく、valueFrom.secretKeyRef の使用を推奨しています。

Do not put secrets in literal `env` values of `dapr.io/component-container`; use `valueFrom.secretKeyRef`.
github.com/dapr/dapr/releases/tag/v1.17.21

セキュリティ36high1

アクターコールバック URL のパストラバーサル修正

high
影響対象HTTP プロトコルで、accessControl サービス呼び出しポリシーを設定してアクターをホストするアプリ

以前は、有効な Dapr ID を持つ呼び出し元が細工したアクター IDを使うと、または 1.17 では正規化されていないアクターメソッド名を使うと、アクターコールバックを無関係なアプリのルートへのリクエストに変えられました。サイドカーは、該当する無効なアクター ID を InvalidArgument で拒否し、アプリを呼び出さなくなりました。また、別のサイドカーから受け取ったメソッド名を正規化します。1.17.16 または 1.18.6 より前に作成された、そのような ID を持つリマインダーは、発火時に失敗しますが、リマインダー登録解除 API から削除できます。

原文を表示
## Security: A sidecar could make another app's sidecar call app routes outside the actor callback path
### Problem
When a sidecar invokes an actor hosted by an app that uses the HTTP app protocol, it calls the app on `PUT /actors/<actorType>/<actorId>/method/<method>`.
The sidecar hosting the actor did not check the actor ID it received from another sidecar before placing it in that URL.
An actor ID such as `x/../../../admin/secret#` therefore turned the callback into `PUT /admin/secret`, a route of the app that has nothing to do with actors.
On 1.17, the actor method name received from another sidecar was not normalized either, so a method such as `../../../../admin/secret` had the same effect.
### Impact
You were affected if an app hosts at least one actor type, uses the HTTP app protocol, and relies on a service invocation access control policy (`accessControl`) to keep other apps away from some of its routes.
Another app with a valid Dapr identity could then send `PUT` requests to any route of that app, with a path, query string and body of its choosing, and read the response.
The access control policy was not applied, because the request arrived as an actor call and not as a service invocation.
The same actor ID on a reminder or timer delivered the reminder payload to that route, and when the sidecar later deactivated the actor it sent a `DELETE` request to the route.
Only `PUT`, and `DELETE` on deactivation, could be sent this way.
Apps that use the gRPC app protocol, or that host no actors, were not affected.
The actor APIs an app calls on its own sidecar were not affected either: they have rejected these actor IDs since 1.17.16 and 1.18.6.
### Root Cause
The fix for CVE-2026-41491 validates actor IDs on the actor APIs that an app calls on its own sidecar.
The sidecar hosting the actor builds the callback URL from the actor ID it receives on the internal sidecar-to-sidecar API, and that path had no check.
A caller that sent the internal request itself, either directly with its own Dapr identity or by proxying it through its own sidecar, skipped the validation.
### Solution
The sidecar hosting the actor now validates the actor ID at the point where it builds the callback URL for the app, for actor invocations, reminders, timers and deactivation.
The method name received from another sidecar is now normalized there as well, as it already was on 1.18 and later.
An actor ID containing `/`, `\`, `#`, `?`, a control character, a percent-encoded `/`, `\` or `.`, or equal to `.` or `..`, is rejected with `InvalidArgument` and no request is sent to the app.
Reminders created before 1.17.16 or 1.18.6 with such an actor ID now fail when they fire instead of calling the app on the wrong path.
They can still be deleted with the unregister reminder API.
github.com/dapr/dapr/releases/tag/v1.17.21

Sentry JWKS 検証器による非コンパクトトークンの拒否

影響対象jwks トークン検証器を使用する Sentry デプロイメント

従来は、JSON形式でシリアライズされたトークンの署名されていない外側のオブジェクトから ID クレームを取得できました。そのため、任意の JWKS 署名付きトークンを持つ呼び出し元が、署名付きトークンに含まれていないアプリ ID と namespace の Sentry 署名付き証明書を取得できていました。今後、非コンパクト形式のトークンは PermissionDenied で拒否されます。標準的な ID プロバイダーのトークンはコンパクト形式のため、影響を受けません。

原文を表示
## Security: Sentry JWKS validator issued certificates for identities not present in the signed token
### Problem
When Sentry is configured with the `jwks` token validator, a sidecar proves its identity with a JWT signed by a key in the configured JWKS.
Sentry also accepted that token in the JWS JSON serializations, not only in the usual compact form.
For a JSON-serialized token, the signature was verified over the embedded payload, but the claims used for the identity were read from the outer JSON object, which is not signed.
### Impact
You were affected only if Sentry uses the `jwks` token validator. The default Kubernetes validator is not affected.
A caller holding any token signed by a key in the JWKS, for any identity, could obtain a Sentry-signed certificate for any app ID and namespace.
A caller could also send a token carrying many signatures to make Sentry spend CPU verifying each of them.
### Root Cause
The token was passed to a JWT parser which accepts the compact and the JSON serializations and which, for a flattened JSON token that also has JWT claim members, reads the claims from the unsigned outer object.
### Solution
The `jwks` validator now refuses any token that is not a compact-serialized JWS, with `PermissionDenied`.
Tokens issued by standard identity providers are compact and are not affected.
github.com/dapr/dapr/releases/tag/v1.17.21

異なるネームスペース間のアクター/ワークフロー呼び出しの拒否

影響対象mTLS が有効でネームスペースベースの分離を行う、共有 Dapr コントロールプレーン上のアクターまたはワークフローアプリ

以前は、クラスターの信頼アンカーによって署名された証明書を持つ任意のサイドカーからの呼び出しをサイドカーが受け入れていました。そのため、呼び出し元が対象アプリの ID とネームスペースを知っていれば、そのアプリのアクターを呼び出し、ワークフローを操作でき、インスタンスのパージも可能でした。現在は、ネームスペースをまたぐ呼び出しは PermissionDenied で失敗します。同一ネームスペース内の呼び出しに変更はありません。

原文を表示
## Security: Actors and workflows could be invoked from another namespace through the internal actor API
### Problem
Actors are scoped to a namespace: a sidecar only receives the actor hosts of its own namespace from the Placement service, so it never routes an actor or workflow call to another namespace.
The receiving sidecar did not apply the same rule to the requests it accepted.
A sidecar in another namespace that sent an actor call straight to the target sidecar was served:
- Actors hosted by the app: any method could be invoked.
- Workflows: the caller could start the app's registered workflows and, for an instance whose ID it knew, read its input, output and status, raise events on it, terminate it, purge it or rerun it.
An app did not need a sidecar identity of its own to do this.
It could send the internal method through its own sidecar's gRPC proxy, which relayed it to the target sidecar under the calling sidecar's identity.
### Impact
You were affected if apps in more than one namespace share a Dapr control plane with mTLS enabled, you rely on namespaces to isolate them, and an app uses actors or workflows.
An app in one namespace that knew the app ID and namespace of an app in another namespace could invoke that app's actors and operate its workflows as described above.
Calls between apps in the same namespace are not changed by this fix.
With mTLS disabled, sidecars have no identity and there is no namespace isolation between them, which is unchanged.
### Root Cause
The internal `CallActor` and `CallActorStream` methods accept requests from any sidecar whose certificate is signed by the cluster's trust anchors, which includes sidecars in every namespace.
The caller's namespace was not compared with the sidecar's own namespace.
### Solution
`CallActor` and `CallActorStream` now refuse a caller whose namespace differs from the sidecar's own namespace, for every actor type.
The call fails with `PermissionDenied` and the message `actors cannot be called across namespaces`.
No valid traffic is affected, because sidecars only route actor and workflow calls within their own namespace.
github.com/dapr/dapr/releases/tag/v1.17.21

非正規 gRPC メソッド名の拒否

影響対象gRPC アプリプロトコルで accessControl を使用し、一部のメソッドを許可して他のメソッドを拒否するポリシーを設定したアプリ

以前は、アプリの gRPC サーバーがそのメソッド名を受け入れる場合、一部のメソッドが許可された呼び出し元が、ドットセグメント、連続するスラッシュ、パーセントエンコーディングを使って拒否対象のメソッドに到達できました。こうしたプロキシ経由の呼び出しは、現在 InvalidArgument で失敗します。

原文を表示
## Security: Access control policies for gRPC apps could be bypassed with a non-canonical method name
### Problem
For a gRPC call proxied to an app, the sidecar evaluated the access control policy (`accessControl`) on a cleaned-up form of the method name, but forwarded the name to the app as it was received.
A name with dot segments or doubled slashes was therefore checked as one method and delivered as another.
A percent-encoded name was checked as received. An encoded `/`, `\` or `.` was already rejected, but any other percent escape was passed on.
### Impact
You were affected only if an app uses `accessControl` with the gRPC app protocol, and the policy denies some of the app's methods while allowing others.
Apps that use the HTTP app protocol, or that have no access control policy, were not affected.
A caller allowed some methods of the app could reach a denied one by writing its name with dot segments, doubled slashes or percent-encoding, if the app's gRPC server accepts such a name.
### Root Cause
The policy check used the cleaned-up method name and the proxy forwarded the original one.
### Solution
A proxied gRPC call to an app is now refused with `InvalidArgument` when its method name is not in canonical form or contains a percent sign.
Real gRPC method names are never affected.
github.com/dapr/dapr/releases/tag/v1.17.21

プロキシ経由の gRPC メトリクス系列によるメモリ増加の修正

影響対象メトリクスが有効なサイドカー(デフォルト)

サイドカーがプロキシ経由の gRPC 呼び出しを受け取る際、呼び出し元が指定した dapr-app-id の値をメトリクスのラベルとして信頼していました。そのため、呼び出しごとに架空の ID を変えると、解放されないメトリクス系列が作成され、メモリが増加する可能性がありました。mTLS が有効な場合、呼び出し元には Sentry が発行した証明書が必要でしたが、その証明書は任意のアプリ ID と名前空間のものでも構いません。現在、呼び出しを受け取る側のサイドカーは、これらの呼び出しについて dapr_runtime_service_invocation_* メトリクスを記録しなくなりました。呼び出し元のサイドカーは引き続き記録します。

原文を表示
## Security: A remote sidecar could grow another sidecar's metrics without bound with made-up app IDs
### Problem
For a gRPC call proxied from another sidecar, the receiving sidecar read the `dapr-app-id` header set by the caller and used it as the destination app ID label of its service invocation metrics.
### Impact
You were affected only if a sidecar has metrics enabled, which is the default, and receives proxied gRPC calls from other sidecars.
With mTLS enabled, the caller needs a certificate issued by Sentry, for any app ID and namespace.
Such a caller could send proxied calls with a different made-up app ID each time.
Each value added metric series in the receiving sidecar that were never released, growing its memory.
### Root Cause
The header describes the destination chosen by the local app, but it was also trusted on calls arriving from other sidecars.
### Solution
The header is now only used for calls made by the local app.
The receiving sidecar no longer records the `dapr_runtime_service_invocation_*` metrics for proxied gRPC calls that arrive from another sidecar. The calling sidecar still records them.
github.com/dapr/dapr/releases/tag/v1.17.21

AddWorkflowEvent によるワークフローイベント種別の検証追加

影響対象対象サイドカーの内部 AddWorkflowEvent メソッド経由でイベントを受信するワークフロー

以前は、イベント種別が検証されていなかったため、呼び出し元が指定した結果で実行中のワークフローを終了できました。また、種別のないイベントを受け取ると、サイドカーがワークフローを読み込む際にクラッシュする可能性がありました。現在、このメソッドが受け付けるのは、発生、終了、一時停止、再開、タスクの完了または失敗、子ワークフローの完了または失敗を表すイベントのみです。それ以外の種別には InvalidArgument が返されます。

原文を表示
## Security: Workflow actors accepted history events of any type from other apps
### Problem
Other sidecars deliver events to a workflow through the internal `AddWorkflowEvent` method: raised events, terminate, pause and resume requests, and the results of activities and child workflows.
The method put an event of any type, or of no type, into the workflow's inbox.
### Impact
Another app able to call the target sidecar's internal API could:
- end a running workflow with a result of its choosing, by sending an event type which only the workflow itself should record, such as `ExecutionCompleted`;
- make the target sidecar crash every time it loaded the workflow, by sending an event with no type.
### Root Cause
The event type was not checked before the event was stored.
### Solution
`AddWorkflowEvent` now accepts only the event types a caller legitimately delivers (raised event, terminate, suspend, resume, task completed or failed, child workflow completed or failed) and refuses anything else with `InvalidArgument`.
github.com/dapr/dapr/releases/tag/v1.17.21

クロスオリジンリダイレクト時の HTTPEndpoint ヘッダー転送の修正

影響対象ヘッダーを設定した HTTPEndpoint リソース(推定)

このリリース以前は、別のホストにリダイレクトされたリクエストにも設定済みのヘッダーが送信されていました。HTTP クライアントが削除していたのは Authorization と Cookie だけでした。エンドポイントのベース URL とスキームまたはホストが異なる宛先へのリダイレクトでは、設定済みのヘッダーが送信されなくなりました。

原文を表示
## HTTPEndpoint headers were sent to other hosts on a redirect
### Problem
The headers configured on an `HTTPEndpoint` resource, which often carry credentials for the endpoint, are added to every request to it. When the endpoint answered with a redirect to another host, the sidecar followed it and sent the same headers there.
### Impact
If the endpoint's host redirects to a different origin on an invoked path, that origin received the endpoint's configured headers.
### Root Cause
The HTTP client's default redirect handling only removes the `Authorization` and `Cookie` headers.
### Solution
The headers configured on an `HTTPEndpoint` are now removed when a redirect leaves the scheme and host of the endpoint's base URL.
github.com/dapr/dapr/releases/tag/v1.17.21

Placement のテーブル更新停止の修正

影響対象Placement サービスへの直接接続を介したアクター配置

有効な Dapr ID を持つアプリケーションが Placement に直接接続し、テーブル更新が大きくなるほどのアクタータイプを登録した後、データの読み取りを停止すると、フロー制御によって送信処理がブロックされることがありました。その結果、すべての名前空間でテーブル更新が停止し、アクター配置の変更が配布されない状態になっていました。Placement はストリームを閉じる前に、その基盤となる呼び出しをキャンセルするようになり、ブロックされた送信処理を中断します。

原文を表示
## Security: A sidecar that stopped reading could hang the Placement service for every namespace
### Problem
The Placement service sends placement table updates to each connected sidecar. When it closed the stream of a sidecar that had stopped reading, it waited for a send that could not complete.
### Impact
An application with a valid Dapr identity could connect to the Placement service directly, register enough actor types to make the table update large, and stop reading. When its stream was closed, the Placement service stopped processing table updates for all namespaces until the connection went away, so actor placement changes were not disseminated.
### Root Cause
The stream's loop was closed before the underlying call was cancelled, so a send blocked on flow control was never interrupted.
### Solution
The Placement service now cancels a stream's call before closing it.
github.com/dapr/dapr/releases/tag/v1.17.21

Dapr サイドカーの HTTP エラー応答バッファーサイズ制限

影響対象アプリケーションまたは外部エンドポイントへの HTTP サービス呼び出し

従来、呼び出し元サイドカーは再試行に備えて、成功以外の応答全体をバッファーしていました。そのため、非常に大きな本文や終わらない本文によってメモリーが枯渇するおそれがありました。現在はリクエスト本文の最大サイズまでだけバッファーし、それを超える本文は再試行せずにストリーミングします。--max-body-size 0 の場合は、引き続き無制限にバッファーします。

原文を表示
## Security: An invoked app could exhaust the calling sidecar's memory with a large error response
For a service invocation over HTTP, the calling sidecar read the whole body of a non-successful response into memory so that the call could be retried.
An application that is invoked by others, or an external endpoint invoked by URL, could answer with an error status and a very large or endless body, exhausting the memory of the calling sidecar.
The size of the buffered error body was not limited.
An error body is now buffered only up to the sidecar's maximum request body size. A larger one is streamed to the caller as it arrives and the call is not retried. With `--max-body-size 0` there is no limit and the body is buffered in full as before.
### Problem
### Impact
### Root Cause
### Solution
github.com/dapr/dapr/releases/tag/v1.17.21

サービス呼び出しと gRPC メトリクスの無制限な増加を修正

影響対象サービス呼び出しまたは gRPC メトリクスを報告するサイドカー

以前は、gRPC 経由で呼び出したアプリケーションやリモートサイドカーから返される未定義のステータスコードが異なるたびに、メトリクス系列が恒久的に作成される可能性があり、呼び出し元サイドカーのメモリ使用量とメトリクス出力が際限なく増加していました。現在は、定義済みの gRPC および HTTP の範囲外のコードには、個別の値ではなく共通の Unknown または invalid ラベルが使用されます。有効なコードのラベル付けは従来どおりです。

原文を表示
## Security: Status codes chosen by an invoked app created unlimited metric series
### Problem
The service invocation and gRPC metrics of a sidecar are labelled with the status code of each response. The value was used as received from the invoked application or the remote sidecar.
### Impact
An application that is invoked by others over gRPC, or a remote sidecar, could answer with a different undefined status code each time. Every new value added permanent metric series in the calling sidecar, growing its memory and the size of its metrics output without bound.
### Root Cause
The status label was not limited to the status codes gRPC and HTTP define.
### Solution
Status codes gRPC or HTTP do not define (anything other than 0 to 16 and 100 to 599) now share a single label value (`Unknown` for the gRPC metrics, `invalid` for the service invocation metrics). Valid codes are labelled as before.
github.com/dapr/dapr/releases/tag/v1.17.21

gRPC プロキシ経由のアプリコールバック呼び出しの遮断

影響対象gRPC アプリプロトコルを使用するアプリケーション

あるアプリケーションがサイドカーの gRPC プロキシ経由で別のアプリケーションのコールバックサービスを呼び出す際、プロキシは OnInvoke リクエストで指定された操作名ではなく、コールバックのメソッド名を検査していました。そのため、呼び出し先のポリシーで拒否されている操作が実行されたり、公開もトリガーもされていないイベントやジョブのトリガーが配信されたりする可能性がありました。これらの呼び出しは PermissionDenied で失敗するようになりました。それ以外の gRPC サービスは引き続きプロキシ経由で呼び出せます。

原文を表示
Dapr calls an application over gRPC through the app callback services (`AppCallback`, `AppCallbackAlpha` and `AppCallbackHealthCheck`) to deliver service invocations, topic events, binding events and job triggers. An application could call those services on another application through its sidecar's gRPC proxy.
This affects applications using the gRPC app protocol. Another application with a Dapr identity could:
- run an operation the target's access control policy denies, when that policy allows the callback method name itself (a default allow action, or a `/**` rule), by naming the operation inside an `OnInvoke` request;
- deliver topic events, binding events and job triggers that were never published or triggered, without access to the component.
The gRPC proxy treated the app callback services like any gRPC service of the application. The access control policy was evaluated on the callback method name, not on the operation carried in the request.
The gRPC proxy no longer proxies the app callback services. The call fails with `PermissionDenied` and the message `the Dapr app callback API cannot be called through the gRPC proxy`.
**This is a breaking change.** An application that calls another application's `AppCallback`, `AppCallbackAlpha` or `AppCallbackHealthCheck` methods through gRPC proxying (for example `OnInvoke` with the `dapr-app-id` metadata) is now refused. Use service invocation (`InvokeService`, or the HTTP invoke API), or proxy one of the application's own gRPC services instead. Other gRPC services of the application are proxied as before.
## Security: An app could call another app's callback API through the gRPC proxy
### Problem
### Impact
### Root Cause
### Solution
github.com/dapr/dapr/releases/tag/v1.17.21

呼び出し元アプリケーションのキー接頭辞によるステートクエリ結果の限定

影響対象呼び出し元アプリケーションのプレフィックスを keyPrefix に使用する、クエリ対応ストアでのステートクエリ
追加の対応別途の保護手順は不要

修正前は、共有ストアへのクエリ結果に他のアプリケーションが書き込んだ行が含まれることがありました。修正後、結果は呼び出し元アプリケーションの行に限定されます。ページに含まれる行が要求件数より少ない場合や、行が一件もない場合でも、次ページトークンが付与されることがあります。keyPrefix が none、name、またはカスタム値に設定されたストアは、引き続き共有状態のままで、変更されません。

原文を表示
## Security: The state query API returned the state of other applications
The state query API (`QueryStateAlpha1`, `POST /v1.0-alpha1/state/{store}/query`) returned every row the state store matched, including rows written by other applications using the same store.
An application sharing a query-capable state store component with other applications could read their state, which the key/value API keeps apart with the application ID key prefix.
The query was passed to the component without any scope for the calling application, and the results were not filtered.
The query API now returns only the rows under the key prefix of the calling application, following the store's `keyPrefix` setting. A page of results can hold fewer rows than the requested limit, or none, while the response still carries a token for the next page. Stores with `keyPrefix` set to `none`, `name` or a custom value are shared by design and unchanged.
### Problem
### Impact
### Root Cause
### Solution
github.com/dapr/dapr/releases/tag/v1.17.21

アドレス、アプリ ID、名前空間をキーとする mTLS 接続プール

影響対象攻撃者が名前解決を制御でき、mTLS 接続プールを使用するセルフホスト型デプロイ

以前は、あるアプリ ID 宛ての呼び出しで、同じアドレスにある別のアプリ ID 用として検証済みのプール接続が使われ、指定したものとは異なるアプリケーションに到達する可能性がありました。

原文を表示
## Security: A sidecar reused a connection verified for one app ID to call another app
### Problem
A sidecar keeps a pool of mTLS connections to other sidecars, keyed by address. The identity a connection accepts from its peer is fixed when the connection is opened, for the app ID it was opened for.
### Impact
In self-hosted mode with attacker-controlled name resolution, a call to one app ID could be sent over a pooled connection that had been verified for a different app ID at the same address, and so reach an application other than the one named. This was fixed in 1.19.2 and 1.18.11; this release brings the same fix to 1.17.
### Root Cause
The pool key did not include the app ID and namespace the connection was verified for.
### Solution
Pooled connections are now keyed by address, app ID and namespace.
github.com/dapr/dapr/releases/tag/v1.17.21

使用済みの子インスタンス ID によるワークフロー再実行の拒否

影響対象ワークフローの再実行

以前は、派生したインスタンス ID がすでに使用されている場合、子ワークフローによって無関係な完了済みワークフローの履歴と結果が置き換えられる可能性がありました。現在は、何も保存される前に、そのような再実行は AlreadyExists で拒否されます。

原文を表示
## A workflow rerun could replace a completed workflow which is not its child
### Problem
A rerun gives the child workflows of the new instance instance IDs derived from the new instance ID, which the caller chooses. A child created by the rerun replaced a completed workflow already under that ID.
### Impact
Rerunning a workflow under a chosen instance ID could silently replace the history and result of an unrelated completed workflow.
### Root Cause
The child workflows of a rerun were created without requiring a new instance ID.
### Solution
A rerun is refused with `AlreadyExists`, before anything is saved, when a workflow already exists under an instance ID one of its child workflows would get.
github.com/dapr/dapr/releases/tag/v1.17.21

gRPC プロキシ経由の内部 API 呼び出しの遮断

影響対象自身のサイドカーに gRPC リクエストを送信できるアプリ

以前は、プロキシがサイドカーの ID を使って内部 API メソッドを中継していたため、アプリから別のアプリのサイドカーへ、サイドカー間の内部呼び出しを行えました。現在はこうした呼び出しは PermissionDenied で失敗します。他のアプリの gRPC サービスへのプロキシ経由の呼び出しに変更はありません。

原文を表示
## Security: An app could send Dapr internal API calls through its sidecar's gRPC proxy
### Problem
An app can ask its sidecar to proxy a gRPC call to another app by setting the `dapr-app-id` header.
The sidecar relayed any method this way, including the methods of the internal API that sidecars use to talk to each other (`/dapr.proto.internals.*`).
The relayed call was made with the sidecar's own identity.
### Impact
You were affected only if an app can send gRPC requests to its own sidecar, which is the default.
An app could send an internal sidecar-to-sidecar call of its choosing to the sidecar of another app, as if its own sidecar had made it.
This is what made the two actor issues above reachable by an app that holds no Dapr identity of its own.
Proxied calls to the gRPC services of other apps are not changed by this fix.
### Root Cause
The gRPC proxy did not tell the internal API apart from the gRPC services of an app.
### Solution
The sidecar now refuses to proxy a method of the internal API for its app.
The call fails with `PermissionDenied` and the message `the Dapr internal API cannot be called through the gRPC proxy`.
github.com/dapr/dapr/releases/tag/v1.17.21

不正なワークフロー開始リクエストの保存前拒否

影響対象サイドカーの内部 API 経由で送信されるワークフロー開始リクエスト

以前は、ワークフローアクターがワークフローインスタンスのない開始イベントや、インスタンスのない親ワークフローを含む開始イベントを保存できました。そのイベントを実行したときと、削除されるまでの再起動のたびにサイドカーがクラッシュしていました。こうした不正なリクエストは、保存前に拒否されるようになりました。

原文を表示
## Security: A malformed workflow start request could crash the sidecar hosting the workflow
### Problem
A request to start a workflow carries a start event which names the workflow instance.
The workflow actor stored a start event which did not name an instance, or which named a parent workflow without an instance.
### Impact
Another app able to call the target sidecar's internal API could send such a request. The target sidecar crashed when it ran the stored workflow, and crashed again each time it restarted and picked the workflow up, until the stored workflow was removed.
### Root Cause
The start event was only checked for its type before it was stored. The workflow engine reads the missing instance without checking for it.
### Solution
A start request whose start event has no workflow instance, or whose parent has none, is now refused before anything is stored.
github.com/dapr/dapr/releases/tag/v1.17.21

プラガブルコンポーネント情報の漏えい修正

影響対象dapr.io/inject-pluggable-components: "true" を注釈に持つ Pod
追加の対応Helm チャートで ReplicaSets、StatefulSets、DaemonSets、Jobs、ReplicationControllers の get 権限を付与し、インジェクターイメージと同時にアップグレードすること

インジェクターに到達できるワークロードは、別の namespace、または空の namespace を指定した admission リクエストを偽造し、宣言済みコンポーネントのコンテナ仕様(環境変数のリテラル値を含む)を取得できました。インジェクターは空の namespace を拒否し、対応するコントローラー所有者と namespace UID が一致することを検証した後にのみ Components を読み取ります。そのような所有者を持たない Pod は拒否されます。

原文を表示
For a pod with the `dapr.io/inject-pluggable-components: "true"` annotation, the sidecar injector adds the containers declared by the `dapr.io/component-container` annotation of the Components in the pod's namespace, and returns them in its admission response.
The injector's webhook endpoint cannot authenticate the Kubernetes API server and trusted the user and the namespace named inside the request.
Any workload able to reach the injector service could send a forged admission request naming another namespace, and receive the container specs (image, command, arguments, literal environment variable values, volume mounts) declared on that namespace's Components. With an empty namespace it received those of every namespace.
Only Components with the `dapr.io/component-container` annotation were exposed. Values referenced with `valueFrom.secretKeyRef` were not resolved and not exposed.
The injector listed the Components of the namespace named in the request without any proof that the request came from the API server for a real pod in that namespace.
The injector now refuses a request with an empty namespace. Before reading Components it requires the pod to have a controller owner (ReplicaSet, StatefulSet, DaemonSet, Job or ReplicationController) and checks with the API server that this owner exists in the namespace with the same UID, which can only be known with read access to that namespace.
Two things change for users of pluggable component injection:
- The injector needs permission to `get` those five resource kinds. The Helm chart grants it; upgrade the chart together with the injector image.
- A pod with no controller owner, or owned by another kind of resource, can no longer use `dapr.io/inject-pluggable-components`; its creation is refused with a message saying so.
github.com/dapr/dapr/releases/tag/v1.17.21

保護トピックに対するワイルドカードサブスクリプションのアクセス制御修正

影響対象ワイルドカードサブスクリプションに対応し、protectedTopics、allowedTopics、または subscriptionScopes を使用する共有 pub/sub コンポーネント
追加の対応protectedTopics の設定

このリリース以前は、保護トピックがスコープに含まれていないアプリでも、そのトピックに一致するワイルドカードを使ってサブスクライブし、メッセージを受信できました。現在は、トピック文字列がアプリの subscriptionScopes に完全一致で登録されていない限り、ワイルドカードおよび $share/ サブスクリプションは拒否されます。また、別のトピックへのサブスクリプションに届いた保護トピックのメッセージは、その保護トピックがアプリのスコープ対象でない限り破棄されます。パブリッシュの動作に変更はありません。

原文を表示
## Security: Pub/sub topic restrictions could be bypassed with wildcard subscriptions
### Problem
The `protectedTopics`, `allowedTopics` and `subscriptionScopes` settings of a pub/sub component were compared with the topic of a subscription as an exact string.
Several components expand a subscription to more than one topic: wildcard topics (for example `*` with the in-memory component, `a/#` or `a/+/b` with MQTT).
### Impact
An app which was not scoped to a protected topic could subscribe to a wildcard matching it and receive its messages.
You were affected if you rely on these settings to keep apps from reading each other's topics on a shared pub/sub component which supports wildcard subscriptions.
### Root Cause
A wildcard is never equal to the name of a protected topic, so it was treated as an unprotected topic.
### Solution
- When `protectedTopics` is set, a subscription to a topic containing `*`, `#`, `+` or `>`, or starting with `$share/`, is refused unless that exact topic string is listed for the app in `subscriptionScopes`.
- A message from a protected topic which reaches a subscription to a different topic is dropped, unless the app is scoped to that protected topic.
Publishing is not changed.
github.com/dapr/dapr/releases/tag/v1.17.21

サービス呼び出しと pub/sub 処理におけるサイドカーのパニック修正

影響対象サービス呼び出しおよびアクターリクエストの処理と、rawPayload を使用しない pub/sub サブスクリプション

サービス呼び出しまたはアクターリクエストで値が空のメタデータがある場合、Accept: text/event-stream を指定したサービス呼び出しに HTTP プロトコルのアプリが成功レスポンスを返した場合、またはトレースメタデータ付きの null JSON pub/sub メッセージを受信した場合に、パニックが発生してサイドカーが停止することがありました。これらの入力によるパニックは発生しなくなりました。値が空のメタデータ項目はスキップされ、レスポンスがない場合は処理され、null メッセージはトレースフィールドとともに配信されます。

原文を表示
## Security: A sidecar could be crashed by another sidecar or by a published message
### Problem
Three inputs that a sidecar receives from outside made it panic, which stops the process:
- a service invocation or actor request from another sidecar whose metadata had an entry with no values (for example an empty `content-type`);
- a service invocation request from another sidecar with the header `Accept: text/event-stream`, for an app that uses the HTTP protocol and answered with a success status;
- a pub/sub message whose body is the JSON value `null` and which carries tracing metadata, delivered to a subscription that does not use `rawPayload`.
### Impact
Another application with a valid Dapr identity, calling the target sidecar's internal API directly, could stop the target sidecar with a single request and repeat it after each restart. An application allowed to publish to a topic could stop the sidecars subscribed to that topic the same way, with components that carry publish metadata to the subscriber.
### Root Cause
The first element of a metadata value list was read without checking that the list was not empty. The HTTP app channel returned no response for a server-sent events request even when the caller had not asked to receive a stream, and callers used the missing response. A `null` message body decodes to an empty value into which the tracing fields were then written.
### Solution
Metadata entries with no values are skipped. The app channel only returns no response when it has streamed the body to the caller, and the internal invocation handler checks for a missing response. A `null` message body is delivered as before, with its tracing fields.
github.com/dapr/dapr/releases/tag/v1.17.21

URLで呼び出す外部エンドポイントへのApp APIトークン露出の修正

影響対象サイドカー経由でURL指定により外部HTTPエンドポイントを呼び出す、APP_API_TOKEN を使用するアプリケーション

サイドカーは dapr-api-token ヘッダーをアプリケーションと、URLで呼び出す外部エンドポイントの両方に送信していました。外部ホストがアプリケーションのポートに到達できる場合、このトークンを使ってサイドカーになりすますことができました。外部エンドポイントにはトークンが送信されなくなりましたが、アプリケーション宛てのリクエストには引き続き送信されます。

原文を表示
## Security: The app API token was sent to external HTTP endpoints invoked by URL
### Problem
When `APP_API_TOKEN` is set, the sidecar sends it to the application in the `dapr-api-token` header so the application can check that a request comes from its sidecar.
The sidecar also sent this header when the application invoked a non-Dapr endpoint by URL, for example `/v1.0/invoke/https://example.com/method/path`.
### Impact
You were affected if `APP_API_TOKEN` is set and your application invokes external HTTP endpoints through its sidecar by URL. The owner of the invoked host received the app API token, and could use it to pass as the sidecar to the application if it could reach the application's port.
### Root Cause
The channel used for endpoints invoked by URL was built with the same configuration as the channel to the application, including the token.
### Solution
The channel used for endpoints invoked by URL is now built without the app API token. Requests to the application itself still carry it.
github.com/dapr/dapr/releases/tag/v1.17.21

ジョブのない ScheduleJob リクエストの Scheduler による拒否

影響対象有効な Dapr アイデンティティを使用した Scheduler への直接アクセス

以前は、ジョブを含まない ScheduleJob リクエストによって Scheduler がクラッシュし、停止中はすべてのアプリケーションでジョブ、アクターリマインダー、ワークフロータイマーの配信が中断されていました。現在は、そのリクエストを InvalidArgument で拒否します。

原文を表示
## Security: The Scheduler could be crashed by a ScheduleJob request without a job
### Problem
The Scheduler service crashed when it received a `ScheduleJob` request which did not contain a job.
### Impact
Any application with a valid Dapr identity that could reach the Scheduler directly could stop a Scheduler instance with one request, and repeat it after each restart. Jobs, actor reminders and workflow timers of every application are not delivered while the Scheduler is down. Sidecars never send such a request themselves.
### Root Cause
The fields of the job were read without checking that the request contained one.
### Solution
A `ScheduleJob` request without a job is refused with `InvalidArgument`.
github.com/dapr/dapr/releases/tag/v1.17.21

Scheduler の WatchJobs 登録失敗の分離

影響対象有効な Dapr アイデンティティを持つアプリケーションから直接到達可能な Scheduler インスタンス

アクターの種類を指定せずにアクターリマインダーを要求するストリームでは、以前は登録に失敗すると Scheduler インスタンス上のすべてのストリームが切断され、これが繰り返されるとジョブ、リマインダー、ワークフロータイマーの配信が中断されていました。現在は失敗したストリームだけが閉じられます。また、配信可能なジョブの種類を一つも受け付けないリクエストは、説明付きのエラーで拒否されます。

原文を表示
## Security: One invalid WatchJobs request restarted the Scheduler server for every namespace
### Problem
A sidecar opens a `WatchJobs` stream to the Scheduler to receive its jobs and reminders.
A stream which asked for actor reminders without naming any actor type could not be registered, and that failure stopped the whole connection pool of the Scheduler instance rather than the one stream.
### Impact
Any application with a valid Dapr identity that could reach the Scheduler directly could send such a request. Every stream of every namespace on that Scheduler instance was dropped and had to reconnect, and repeating the request kept job, reminder and workflow timer delivery interrupted. Sidecars never send such a request themselves.
### Root Cause
An error while registering one stream was returned from the loop which serves all the streams of its namespace, and the loop treated it as fatal for the pool.
### Solution
A stream which fails to register is now closed on its own, and the other streams are not affected. A `WatchJobs` request which accepts no deliverable job type is refused with an error that says why.
github.com/dapr/dapr/releases/tag/v1.17.21

特定のアクタータイプに対する Scheduler のジョブとストリームの拒否

影響対象アクタータイプに || を含むか | で終わる場合の Scheduler のジョブとストリーム

このようなタイプのリマインダーは、別のアクタータイプの配信プレフィックスに一致する可能性があり、配信されないまま無期限に再試行され、Scheduler ともう一方のアクターのサイドカーで CPU を消費することがありました。これらのタイプで既に保存されているジョブは、引き続き読み取りと削除が可能です。

原文を表示
## An actor type containing the key delimiter caused a reminder to be retried forever in the Scheduler
### Problem
The Scheduler stores an actor reminder under a key built from its namespace, actor type, actor ID and name, separated by `||`. An actor type that itself contained `||`, or ended in `|`, produced a key that matched the delivery prefix of a different actor type.
### Impact
An application with a valid Dapr identity could create such a reminder. It could never be delivered, but was retried immediately and forever, using CPU on the Scheduler and on the sidecar hosting the other actor type.
### Root Cause
The actor type was not checked for the delimiter.
### Solution
The Scheduler now refuses to schedule a job, or to register a stream, for an actor type that contains `||` or ends in `|`. Jobs already stored under such a type can still be read and deleted.
github.com/dapr/dapr/releases/tag/v1.17.21

サイドカーインジェクターの YAML エイリアスによるメモリ枯渇の修正

影響対象サイドカーインジェクターの Webhook エンドポイント

以前は、インジェクターに到達できるワークロードが、エイリアスによって非常に大量のメモリを消費する小さな YAML ドキュメントを送信できました。その結果、インジェクターが停止し、新しい Pod に Dapr サイドカーが追加されなくなる可能性がありました。現在、Admission リクエストは JSON としてのみデコードされます。

原文を表示
## Security: The sidecar injector could be made to run out of memory with a YAML request body
### Problem
The sidecar injector's webhook endpoint decoded its request body with a decoder which accepts YAML as well as JSON, even though the endpoint requires a JSON content type and the Kubernetes API server only sends JSON.
### Impact
Any workload able to reach the injector service could send a small YAML document whose aliases expand to a very large amount of memory, making the injector run out of memory. While the injector is down, new pods are created without the Dapr sidecar.
### Root Cause
The decoder sniffed the body and fell back to YAML for input that is not JSON.
### Solution
The injector now decodes admission requests as JSON only.
github.com/dapr/dapr/releases/tag/v1.17.21

サイドカーインジェクターのボリュームマウント検索と警告ログの過剰処理の修正

影響対象dapr.io/volume-mounts または dapr.io/volume-mounts-rw アノテーションを使用するサイドカーインジェクター対象のポッド

偽造された Admission リクエスト、または認可されたユーザーが作成したポッドに、大量のアノテーション項目とボリュームが含まれている場合、従来はインジェクターがボリュームの検索に過剰な CPU を消費し、不足しているボリュームについて大量の警告ログを出力することがありました。現在はポッドごとに一度だけボリュームセットを構築し、不足しているボリュームの先頭の項目と件数を示す、出力を制限した警告を1件出力します。

原文を表示
## Security: The sidecar injector spent excessive CPU and log volume on the volume mounts annotations
### Problem
For the `dapr.io/volume-mounts` and `dapr.io/volume-mounts-rw` annotations, the sidecar injector searched the pod's volume list once for every entry of the annotation, and logged one warning for every entry naming a volume the pod does not have.
### Impact
A workload able to reach the injector service with a forged admission request, or a user allowed to create pods, could submit a pod with very many annotation entries and volumes, making the injector spend seconds of CPU on one request and write a very large amount of log output.
### Root Cause
The lookup cost grew with the number of annotation entries multiplied by the number of volumes, and the log output with the number of entries multiplied by the length of the pod name.
### Solution
The injector now looks volumes up in a set built once per pod, and logs a single bounded warning per pod listing the first missing volumes and their count.
github.com/dapr/dapr/releases/tag/v1.17.21

サイドカーインジェクターのリクエスト制限の追加

影響対象サイドカーインジェクターサービスに到達できるワークロード

以前は、インジェクターがリクエストボディのサイズや受信時間を制限せずに読み込んでいたため、インジェクターに到達できるワークロードが、非常に大きなリクエストを送信したり、リクエストを送ると通知した後に送信を停滞させたりして、メモリを枯渇させる可能性がありました。現在は、7 MiB を超えるボディをステータス 413 で拒否し、各リクエストを 30 秒以内に受信することを求めます。

原文を表示
## Security: The sidecar injector buffered request bodies of any size
### Problem
The sidecar injector's webhook endpoint read the whole body of every request into memory before any check, with no size limit and no time limit for receiving it.
### Impact
Any workload able to reach the injector service could send very large requests, or announce a large request and then stall, to exhaust the injector's memory. While the injector is down, new pods are created without the Dapr sidecar.
### Root Cause
The request body was read without a limit, and the server only had a timeout for request headers.
### Solution
The injector now refuses request bodies larger than 7 MiB with status 413, and allows 30 seconds to receive a request. Admission requests from the Kubernetes API server are far below this size.
github.com/dapr/dapr/releases/tag/v1.17.21

Sentry TokenReview クライアントのレート制限の削除

影響対象証明書要求に Sentry TokenReview を使用する Kubernetes デプロイメント

Sentry の gRPC ポートに到達できるワークロードは、無効なトークンによる証明書要求を十分な速さで送信し、クライアントの毎秒 5 件の制限に達することができました。その結果、ストリームが継続している間、正当なサイドカーおよびコントロールプレーンからの証明書要求が、起動時や更新時に拒否される可能性がありました。Sentry はこのクライアント側の制限を適用しなくなりましたが、Kubernetes API サーバーの要求制限は引き続き適用されます。

原文を表示
## Security: Sentry certificate issuance could be delayed by unauthenticated requests on Kubernetes
### Problem
On Kubernetes, Sentry validates the token of each certificate request with a `TokenReview` call to the Kubernetes API server.
The Kubernetes client Sentry uses for these calls was limited to 5 requests per second, and every incoming certificate request took a slot of that limit before the request was authenticated.
### Impact
Any workload able to reach the Sentry gRPC port could send a steady stream of certificate requests with invalid tokens and use up the limit. Certificate requests from legitimate sidecars and control plane services were then refused, at startup and at renewal, for as long as the stream of requests continued.
### Root Cause
The setting which removes the client-side rate limit was applied after the `TokenReview` client had been created, so that client kept the default limit.
### Solution
The client-side rate limit is now removed before any Kubernetes client is created. The Kubernetes API server's own request limits still apply.
github.com/dapr/dapr/releases/tag/v1.17.21

認証情報の再読み込み時に停止タイムアウトを超えても稼働するコントロールプレーン HTTP サーバー

影響対象コントロールプレーンの healthz、メトリクス、Sentry OIDC の HTTP サーバー

これらのポートのいずれかに到達できるワークロードが、認証情報のローテーション中にリクエストを未完了のまま残す可能性があり、グレースフルシャットダウンがタイムアウトするとサービスが停止していました。現在は残っている接続を閉じて、再読み込みを続行します。影響を受けたサービスは Kubernetes では数秒以内に再起動されましたが、セルフホストの Sentry は再起動されるまで停止したままでした。

原文を表示
## A stalled HTTP request could make a control plane service exit when its credentials reloaded
### Problem
The healthz, metrics and Sentry OIDC HTTP servers of the control plane services are restarted when the service reloads its credentials. If a client kept a request open on one of them, the server did not shut down within its deadline, and the failure was treated as fatal.
### Impact
A workload able to reach one of these ports could open a request and leave it unfinished. At the next credentials rotation the service exited. On Kubernetes it was restarted within seconds; a self-hosted Sentry stayed down until restarted.
### Root Cause
A graceful shutdown that timed out returned an error which stopped the service.
### Solution
When a graceful shutdown times out, the remaining connections are now closed and the reload continues.
github.com/dapr/dapr/releases/tag/v1.17.21

Placement の名前空間の終了処理をバックグラウンドに移行

影響対象Placement サービスに登録された名前空間

キューにレポートが残った状態で最後のサイドカーが切断されると、終了処理によって他の名前空間が数秒以上にわたって待たされていました。この状態が繰り返されると、アクター配置の変更が配信されなくなっていました。終了処理はバックグラウンドで実行されるようになり、その名前空間の新しいインスタンスは、前回の終了処理が完了するまで待機します。

原文を表示
## Security: Removing one namespace could stall the Placement service for every namespace
### Problem
When the last sidecar of a namespace disconnects, the Placement service removes that namespace's state. It did so while holding up the processing of all other namespaces until every queued event of the removed namespace had been handled.
### Impact
An application with a valid Dapr identity could connect to the Placement service directly as the only member of its namespace, queue a large number of reports, and disconnect. The Placement service then stopped serving the other namespaces for seconds or longer, and repeating this kept actor placement changes from being disseminated.
### Root Cause
The teardown of a namespace ran on the loop which serves all namespaces.
### Solution
A namespace is now torn down in the background. A new instance for the same namespace waits for the previous one to finish.
github.com/dapr/dapr/releases/tag/v1.17.21

PlacementのRaft接続でmTLS完了を必須化

影響対象高可用性モードで、mTLSを使用し、ワークロードからRaftポートに到達できるPlacementインスタンス

以前は、Raftポートに到達できるワークロードがデータを送信せずに多数のアイドル接続を維持でき、各接続が約256 KiBを使用するため、Placementのメモリを使い果たすおそれがありました。今後は、mTLSが10秒以内に完了した接続のみがRaftに引き渡されます。ループバックでリッスンする単一インスタンス構成には影響しません。

原文を表示
## Security: Idle connections to the Placement raft port could exhaust its memory
### Problem
In high availability mode with mTLS, Placement instances talk to each other on the raft port. A connection was handed to the raft library, which allocates a large buffer for it, before the peer had proven its identity.
### Impact
Any workload able to reach the raft port of a Placement instance could open many connections and send nothing. Each held about 256 KiB of memory for as long as it stayed open, which could exhaust the memory of the Placement service. Single-instance installations only listen on the loopback address and are not affected.
### Root Cause
The TLS handshake, which authenticates the peer, only ran when the raft library first read from the connection, and that read had no deadline.
### Solution
A connection is now handed to raft only after it completes the mTLS handshake, which must happen within 10 seconds.
github.com/dapr/dapr/releases/tag/v1.17.21

重複 ID のストリーミングサブスクリプションにおける確認応答の修正

影響対象並行してイベントを配信するコンポーネントを使うストリーミングサブスクリプション(SubscribeTopicEventsAlpha1)

パブリッシャーが重複するイベント ID を選び、1 つのストリームで 2 件のイベントが処理中の場合、後から届いたイベントが先のイベントの処理枠を引き継ぐことがありました。その結果、先のイベントに確認応答が返されず、タイムアウトまでコンポーネントのワーカーが占有されていました。現在は、同じ ID のイベントが後から届いた場合、先のイベントの処理が終わるまで待機します。

原文を表示
## Two streaming subscription deliveries with the same event ID could leave one stuck
### Problem
With streaming subscriptions (`SubscribeTopicEventsAlpha1`), the application acknowledges an event by its ID. When two events with the same ID were being delivered on one stream at the same time, the second took over the first one's place and the first never received its acknowledgement.
### Impact
A publisher choosing duplicate event IDs could leave deliveries waiting until their timeout, holding the component's workers for that time. This affected components which deliver concurrently.
### Root Cause
Pending acknowledgements were tracked per event ID with no handling for two in flight at once.
### Solution
A delivery now waits for an earlier delivery with the same ID on the same stream to finish before it is sent.
github.com/dapr/dapr/releases/tag/v1.17.21

不正なステータスコード応答に対する 500 エラーの返却

影響対象HTTP URL および HTTPEndpoint の呼び出し、ジョブトリガーのハンドラー、gRPC アプリケーション

以前は、HTTP/2 で呼び出し先サーバーが 100 未満または 999 を超えるステータスコードを返すと、サイドカーが停止することがありました。アプリケーションがジョブトリガーに応答した場合も同様です。また、gRPC 呼び出しで 999 を超えるステータスコードが返されると、HTTP 呼び出し元の接続が切断されていました。これらの不正な応答は拒否され、呼び出し元には 500 エラーが返されます。

原文を表示
## Security: A sidecar could be crashed by a response with an invalid status code
### Problem
A sidecar stopped when a server it called answered with a status code that cannot be written to an HTTP response.
### Impact
- A server invoked by `http://` or `https://` URL, or through an `HTTPEndpoint` resource, could stop the calling sidecar by answering with a status code below 100 (or above 999 over HTTP/2). The server needs no Dapr identity. The same applied to the application's own response to a job trigger.
- A gRPC application failing an invocation with a status code above 999 dropped the connection of an HTTP caller instead of returning an error.
### Root Cause
The status code received was written to the response without checking it. Writing a code outside 100 to 999 panics.
### Solution
A response with such a status code is now refused, and the caller receives a `500` error.
github.com/dapr/dapr/releases/tag/v1.17.21

HTTPS サービス呼び出しでのサーバー証明書検証

影響対象HTTPEndpoint リソース以外で https:// URL を呼び出す際に、アプリプロトコルとして https または h2c を使用するサイドカー
追加の対応プライベート認証局の証明書を使用するサーバー向けに clientTLS.rootCA を設定した HTTPEndpoint リソース

以前は、アプリプロトコルに https を使用するサイドカーでは証明書検証が省略され、h2c を使用するサイドカーでは https:// URL に対しても平文の HTTP/2 が使われていました。現在は、アプリプロトコルにかかわらず、URL を使った呼び出しでは TLS を使用し、システムの信頼ストアに基づいてサーバー証明書を検証します。

原文を表示
## Security: Service invocation by URL did not verify the server certificate with app protocol https or h2c
### Problem
With the application protocol set to `https`, Dapr does not verify the certificate of the local application. With `h2c` it talks cleartext HTTP/2 to it. Both settings were also applied to service invocation of an `https://` URL, which names another host.
### Impact
This affects sidecars with app protocol `https` or `h2c` whose application invokes `https://` URLs (not `HTTPEndpoint` resources). With `https`, the certificate of the server was not verified, so someone on the network path could read and alter the requests and responses. With `h2c`, the request was sent without TLS.
### Root Cause
The channel for URL targets used the HTTP client of the local application.
### Solution
An `https://` URL is now invoked over TLS with the server certificate verified against the system trust store, whatever the app protocol. To invoke a server with a private certificate authority, use an `HTTPEndpoint` resource with `clientTLS.rootCA`.
github.com/dapr/dapr/releases/tag/v1.17.21

公開 HTTP ポートでメタデータリクエストのボディサイズを制限

影響対象呼び出し元から到達可能な公開 HTTP ポートを持つサイドカー

GET /v1.0/metadata にリクエストボディがある場合、サイズ制限なしでメモリに読み込まれていました。そのため、公開ポートに到達できる呼び出し元がメモリを使い果たし、サイドカーを停止させる可能性がありました。現在はポートで設定済みの最大ボディサイズが適用されます。デフォルトは 4Mi です。

原文を表示
## Security: The public HTTP port read request bodies of any size
### Problem
The sidecar's public HTTP port, which takes requests without an API token, read the request body of `GET /v1.0/metadata` into memory without a size limit.
### Impact
Anyone able to reach the public port of a sidecar (port 3501 on the pod IP in Kubernetes) could make it hold as much memory as they sent, until it was stopped for running out of memory.
### Root Cause
The max body size was applied to the API port only.
### Solution
The public port now applies the max body size (`--max-body-size`, 4Mi by default) like the API port.
github.com/dapr/dapr/releases/tag/v1.17.21

不正なトレースコンテキストによる停止を防ぐワークフローエンジン

影響対象ワークフローの開始とアクティビティのディスパッチ

トレースフラグフィールドが空のまま終わる traceparent を含むリクエストによってサイドカーが停止し、そのリクエストはすでに保存されていたため、再起動のたびに再び停止していました。エンジンは解析できないトレースコンテキストを破棄し、親トレースなしでワークフローまたはアクティビティを実行するようになりました。

原文を表示
## Security: A workflow start with an empty trace flags field could crash the sidecar
### Problem
A workflow start request, or an activity dispatch, whose `traceparent` ended in an empty trace flags field (`00-<trace-id>-<span-id>-`) stopped the sidecar when it was processed.
### Impact
Another application allowed to schedule a workflow or activity on the target could stop its sidecar. The request was stored before it was processed, so the sidecar stopped again on each restart.
### Root Cause
The workflow engine read the first byte of the decoded trace flags without checking that there was one.
### Solution
A trace context the workflow engine cannot parse is now dropped when the workflow or activity is received, and it runs without a parent trace.
github.com/dapr/dapr/releases/tag/v1.17.21

Dapr operator の変換Webhookで過大なリクエストボディを拒否

影響対象Dapr operator の変換Webhookを使用する構成

認証されていない送信者がオペレーターのWebhookポートに到達できる場合、大きなリクエストボディを送信することで、ボディサイズに比例してメモリとCPUが消費され、オペレーターがメモリ不足に陥って停止する可能性がありました。現在は7 MiBを超えるボディが拒否されます。

原文を表示
## Security: The operator's conversion webhook read request bodies of any size
### Problem
The operator's conversion webhook, which takes requests without client authentication, read request bodies without a size limit.
### Impact
Anyone able to reach the webhook port of the operator could make it use memory and CPU in proportion to what they sent, until it was stopped for running out of memory. The operator serves every namespace.
### Root Cause
The size limit added to the sidecar injector's webhook was not applied to the operator's.
### Solution
The conversion webhook now refuses a request body over 7 MiB.
github.com/dapr/dapr/releases/tag/v1.17.21

重大な修正2

  • Redis pub/sub のブロッキング読み取りに3秒のデフォルトタイムアウトを適用
    影響対象Redis 7 以降を使用し、readTimeout が未設定の Redis pub/sub コンポーネント

    新しいメッセージがないトピックでサブスクリプションを停止して再開すると、ブロッキング読み取りが接続を保持したままになっていました。再起動を繰り返すと接続プールがいっぱいになり、サイドカーを再起動するまでサブスクライブやパブリッシュに失敗することがありました。停止したサブスクリプションは接続を返すようになり、ブロッキング読み取りはブロック時間に readTimeout を加えた時間だけ待機します。そのため、メッセージのないトピックで i/o timeout がログに記録されなくなりました。

    ## Redis pub/sub leaked connections when subscriptions restarted
    ### Problem
    With `readTimeout` unset, the Redis pub/sub component sent `XREADGROUP` with `BLOCK 0` (wait forever) instead of using the documented 3s default.
    ### Impact
    On Redis 7 and later, each time the sidecar stopped and restarted subscriptions, for example when the app's health check failed and recovered, readers on topics with no new messages kept their connections. After enough restarts the connection pool was full, and subscribing and publishing on that component failed with `redis: connection pool timeout` until the sidecar was restarted. Redis versions below 7 were not affected.
    ### Root Cause
    The component passed `readTimeout` as the `XREADGROUP` block time, so an unset value meant no limit. The go-redis client used for Redis 7 and later does not interrupt a blocked read when its subscription is cancelled, so the read kept its connection until a message arrived on that topic.
    ### Solution
    Redis pub/sub now defaults `readTimeout` to 3s, so `XREADGROUP` returns at least every 3 seconds and a stopped subscription gives its connection back. Blocking reads now wait for the block time plus `readTimeout` before timing out, so idle topics no longer log `i/o timeout`. Components that set `readTimeout` explicitly keep their value.
    github.com/dapr/dapr/releases/tag/v1.17.21
  • サーキットブレーカーの検索時にテーブルの読み取りロックを保持
    影響対象デフォルトのサーキットブレーカーと、特定のアプリまたはアクター種別向けのサーキットブレーカーを定義する Resiliency リソースを持つサイドカー

    以前は、他のリクエストがサーキットブレーカーのマップにエントリーを追加している間に、異なるターゲットへのアプリケーション呼び出しが同時に行われると、並行マップアクセスエラーによってサイドカーがクラッシュすることがありました。

    ## A data race in the resiliency circuit breaker lookup could crash the sidecar
    ### Problem
    A sidecar with a `Resiliency` resource that defines a default circuit breaker and a circuit breaker for specific apps or actor types read its table of circuit breakers without holding the lock that protects it.
    ### Impact
    Under concurrent calls from the application to different targets, the sidecar could crash with a concurrent map access error.
    ### Root Cause
    Two lookups read the map while other requests could add to it.
    ### Solution
    The lookups now hold the read lock.
    github.com/dapr/dapr/releases/tag/v1.17.21

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