# Dapr v1.19.3

2026-12-02 · [元のリリースノート](https://github.com/dapr/dapr/releases/tag/v1.19.3) · [全体のまとめ](https://ratatosk.io/ja/releases/dapr/v1.19.3)

セキュリティ 53 (high 1) · 重大な修正 3

## セキュリティ (53)

### [high] アクターコールバックのパストラバーサル修正

- 影響対象: HTTP アプリプロトコル経由でアクターをホストするアプリ
- [CVE-2026-41491](https://www.cve.org/CVERecord?id=CVE-2026-41491), [GHSA-85gx-3qv6-4463](https://github.com/dapr/dapr/security/advisories/GHSA-85gx-3qv6-4463)

このリリース以前は、内部サイドカー API 経由で受け取った細工されたアクター ID によって、コールバック先がアクター用ではないアプリのルートに変更され、`accessControl` がそのルートを制限している場合に、その応答が漏えいする可能性がありました。ホスティング側のサイドカーは現在、`/`、`\`、`#`、`?`、制御文字、パーセントエンコードされた `/`、`\`、`.` を含む ID、または `.` か `..` と等しい ID を `InvalidArgument` で拒否し、コールバックを送信しません。これらの ID を持つ古いリマインダーは、発火時に誤ったルートを呼び出す代わりに失敗します。

> ## 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.
> ### 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.
> 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.

### Sentry `jwks` バリデーターによる非コンパクト JWS トークンの拒否

- 影響対象: Sentry の `jwks` トークンバリデーターを使用するインストール環境

以前は、Sentry が JSON シリアライズ形式の JWS を受け取ると、埋め込まれたペイロードを検証する一方で、署名されていない外側の JSON から ID クレームを読み取っていました。そのため、設定済みの JWKS に含まれる鍵で署名されたトークンを持つ呼び出し元が、任意のアプリ ID と名前空間の証明書を取得できました。現在は、コンパクト形式でないトークンを `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.

### gRPC アクセス制御におけるメソッド名バイパスの修正

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

ドットセグメント、スラッシュの重複、またはパーセントエンコーディングにより、サイドカーが検査したメソッドとは別のメソッドにリクエストが渡ることがありました。アプリの gRPC サーバーが通常とは異なるメソッド名を受け入れる場合、一部のメソッドだけを許可された呼び出し元が、拒否対象のメソッドに到達できていました。メソッド名が正規形式でない場合、またはパーセント記号を含む場合、これらの呼び出しは `InvalidArgument` で拒否されるようになりました。通常の gRPC メソッド名には影響しません。

> ## 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.

### プロキシされた 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.

### アプリ間ワークフローの親検証の修正

- 影響対象: アプリ間のワークフローのスケジューリング

あるアプリが、別のアプリのワークフローが開始しようとしていた子ワークフローのインスタンス ID を使い、そのワークフローを親として子ワークフローを作成すると、実際の子ワークフローが実行されていないにもかかわらず、親ワークフローが呼び出し元の制御下にある出力を子の結果として受け取る可能性がありました。現在は、指定された親が呼び出し元アプリのワークフローでない限り、このような作成は `PermissionDenied` で拒否されます。また、重複検出でも親アプリが一致することが必要になりました。

> ## Security: A child workflow result could be forged by naming another workflow as parent
> ### Problem
> When a workflow is created as a child, the request names its parent, and the child sends its result to that parent when it completes.
> A request from another app to create a workflow was authorized on the workflow name only, and the parent it named was not checked.
> ### Impact
> An app allowed to schedule one workflow on another app could create it under the instance ID of a child that a workflow on that app was about to start, naming that workflow as the parent. The parent then received the caller-controlled output as the result of its child, and the real child never ran.
> ### Root Cause
> The parent of a new workflow was stored as sent. A later create for the same instance ID, parent instance ID and task was treated as a repeat of the first one, even when it came from a different app.
> ### Solution
> A create request from another app is refused with `PermissionDenied` unless the parent it names is a workflow of the calling app.
> A create is only treated as a repeat of an earlier one when the parent app matches as well.

### アクティビティアクターによるアプリ間の結果とリマインダーの遮断

- 影響対象: アプリ間のアクティビティ呼び出しまたは保存済みアクティビティリマインダーを使用するマルチアプリワークフロー

別のアプリのアクティビティを呼び出す権限を持つ呼び出し元は、以前は、その結果を同じタスク ID を待機しているワークフローに送るよう指定でき、そのワークフローは結果を自分宛てのものとして受け入れていました。現在は、宛先として別のアプリを指定するリクエストは `PermissionDenied` で拒否され、送信元として別のアプリを指定している保存済みリマインダーは破棄されます。

> ## Security: An activity result could be delivered to a workflow chosen by the caller
> ### Problem
> In a multi-app workflow, the app that runs an activity sends the result back to the app and workflow instance named in the request.
> The activity actor did not check that the workflow named as the destination belonged to the app that made the request.
> ### Impact
> An app allowed by a `WorkflowAccessPolicy` to call one activity on another app (or any app in the namespace when no policy is loaded) could have that app's sidecar deliver the activity's result to any workflow instance, on any app which trusts that sidecar. If the instance was waiting for an activity with the same task ID, it accepted the result as its own.
> ### Root Cause
> The result destination was taken from the request and was not compared with the authenticated caller.
> ### Solution
> An activity request from another app is refused with `PermissionDenied` unless the destination app is the calling app. A stored activity reminder naming another app as its source is dropped.

### `AddWorkflowEvent` による未対応ワークフローイベントの拒否

- 影響対象: 内部の `AddWorkflowEvent` メソッドを通じてイベントを受け取るワークフロー

以前は、対象サイドカーの内部 API を呼び出せるアプリが、型のないイベントを含む任意の種類のイベントを送信できました。その結果、実行中のワークフローを任意の結果で終了させたり、ワークフローの読み込み時にサイドカーをクラッシュさせたりする可能性がありました。現在は、未対応のイベントや型のないイベントはワークフローの受信箱に保存されず、`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`.

### 他アプリから転送されたアクターリマインダーの拒否

- 影響対象: 転送されたリマインダーを受信するワークフローまたはアクティビティのアクター

`WorkflowAccessPolicy` がない場合、サイドカーの内部 API を呼び出せる同じ名前空間内の別アプリが、既知のワークフローインスタンス宛てのリマインダーを偽造し、待機中のタイマーを即時に発火させる可能性がありました。受信側のサイドカーは、`WorkflowAccessPolicy` が読み込まれているかどうかにかかわらず、他のアプリから転送されたリマインダーに `PermissionDenied` を返すようになりました。

> When the replica of an app that receives a reminder does not host the target actor, it forwards the reminder to the replica that does, through the internal `CallActorReminder` method.
> For workflow and activity actors, the receiving sidecar only checked that the forwarding sidecar belonged to the same app when a `WorkflowAccessPolicy` was loaded.
> ### Impact
> On an app with no `WorkflowAccessPolicy`, another app in the same namespace able to call its sidecar's internal API could send a forged timer reminder to a workflow instance whose ID it knew, making a timer the workflow was waiting on fire immediately.
> ### Root Cause
> The same-app check for forwarded reminders on workflow and activity actors was skipped when no policy was loaded.
> ### Solution
> A forwarded reminder for a workflow or activity actor is now accepted only from a sidecar of the same app, with or without a `WorkflowAccessPolicy`. Other callers are refused with `PermissionDenied`.

### Scheduler による `||` を含むか `|` で終わる actor type のジョブとストリームの拒否

- 影響対象: `||` を含むか `|` で終わる actor type 向けの Scheduler ジョブとストリーム

以前は、有効な Dapr アプリケーションがこれらの actor type のいずれかに対するリマインダーを作成できました。そのキーが別の actor type の配信プレフィックスと一致することがあり、リマインダーが配信されないまま即時再試行を無限に繰り返し、Scheduler と別の actor type のサイドカーで CPU を消費していました。アップグレード後も、これらの actor type の下にすでに保存されているジョブは読み取りと削除が可能です。

> 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.
> 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.
> The actor type was not checked for the delimiter.
> 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.

### Scheduler によるアプリケーション間ワークフローリマインダーの制限

- 影響対象: 別アプリケーションからの Scheduler リマインダーの送信先となるワークフローアクター

これまでは、有効な Dapr ID を持つアプリケーションが Scheduler を直接呼び出すことで、別アプリケーションのワークフローアクターに対し、繰り返しリマインダーや遅延なしで再試行されるリマインダーを作成できました。読み取れないペイロードはエラーになり、無期限に再試行されていました。Scheduler は、新しいアプリケーション間リマインダーについて、1回限りであり、かつ再試行間隔がワークフローエンジンの再試行間隔以上でない限り拒否するようになりました。また、ペイロードがワークフローイベントではないリマインダーは受領を通知して破棄します。すでに保存されているリマインダーには変更はありません。

> ## A never-ending reminder could be planted on another app's workflow actor
> ### Problem
> To deliver an activity result, an application's sidecar may create an activity result reminder on the workflow actor of another application in its namespace. The Scheduler accepted such a reminder with any schedule and retry settings, and the workflow actor returned an error for one whose payload it could not read.
> ### Impact
> An application with a valid Dapr identity, calling the Scheduler directly, could create a repeating reminder, or one that is retried without delay, on another application's workflow actor. It kept firing at that application's sidecar, and only the owner could delete it.
> ### Root Cause
> The exception which lets another application create this reminder did not restrict its shape, and an unreadable payload was retried forever.
> ### Solution
> The Scheduler now only accepts such a reminder from another application when it fires once, does not repeat, and is not retried faster than the workflow engine's own retry interval. The workflow actor acknowledges and drops a reminder whose payload is not a workflow event. Reminders already stored are not removed by this change.

### サイドカーインジェクターの YAML デコード不備の修正

- 影響対象: Dapr サイドカーインジェクターの webhook サービス

webhook に到達できるワークロードが、エイリアスによって展開時にインジェクターを停止させるほどのメモリーを消費する小さな YAML ドキュメントを送信できました。その結果、新しい Pod に Dapr サイドカーが追加されない状態になっていました。Admission リクエストは JSON のみでデコードされ、YAML へのフォールバックは行われなくなりました。

> ## 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.

### 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.

### サイドカーのHTTPエラーボディ無制限バッファリングの修正

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

これまでは、失敗応答のボディが非常に大きい、または終わりがない場合、サイズ制限なしでバッファリングされるため、呼び出し元のサイドカーのメモリを使い切ることがありました。現在は、サイドカーの最大リクエストボディサイズ以下のエラーボディをバッファリングし、それを超えるボディは呼び出し元にストリーミングします。この場合、呼び出しは再試行されません。`--max-body-size 0` の場合は、引き続きサイズ制限なしでボディ全体をバッファリングします。

> ## Security: An invoked app could exhaust the calling sidecar's memory with a large error response
> ### Problem
> 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.
> ### Impact
> 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.
> ### Root Cause
> The size of the buffered error body was not limited.
> ### Solution
> 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.

### Dapr サイドカーの未定義レスポンスコードのメトリクスラベル統合

- 影響対象: サービス呼び出しレスポンスまたはリモートサイドカーからの gRPC レスポンスを受信するサイドカー

呼び出し先アプリケーションまたはリモートサイドカーが、呼び出しのたびに異なる未定義のステータスコードを返すと、値ごとにメトリクス系列が恒久的に作成され、サイドカーのメモリ使用量とメトリクス出力が際限なく増加していました。アップグレード後は、未定義の gRPC コードには `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.

### Operator による削除イベントでのシークレット解決停止

- 影響対象: `Component` または `HTTPEndpoint` リソースを通じてスコープが設定されたアプリ

以前は、参照されている Kubernetes `Secret` がローテーションした際にアプリがこれらのスコープから削除されていると、そのアプリの削除イベントで新しいシークレット値が漏れる可能性がありました。他のイベント種別では、Operator はリソースのコピー内でシークレットを解決します。

> ## The operator resolved secrets into the delete event sent to an app removed from a component's scopes
> ### Problem
> When an app is removed from the scopes of a Component or HTTPEndpoint, the operator sends that app a delete event for the resource. The event carried the resource with its secret references resolved.
> ### Impact
> If a referenced Kubernetes Secret was rotated at the same moment as the app was removed from the scopes, the app received the new secret value in the delete event. The app could not trigger or time this.
> ### Root Cause
> Secrets were resolved for every event type, and into an object shared with other watchers.
> ### Solution
> Secrets are no longer resolved for delete events, and are resolved into a copy of the resource for the others.

### ワークフロー結果の署名者検証の修正

- 影響対象: `WorkflowHistorySigning` が有効で、`WorkflowAccessPolicy` が設定されていないアプリケーション

有効な Dapr アイデンティティを持つ別のアプリケーションがサイドカーの内部 API を呼び出し、インスタンス ID、タスク、入力内容を正確に把握していれば、ワークフローが検証済みとして記録する結果を送信できました。その結果がディスパッチ先のアプリケーションからのものかどうかは確認されていませんでした。現在は、署名者がディスパッチ先のアプリケーションおよび名前空間と一致しない結果は、署名なしの結果と同様に破棄されます。

> ## Security: Workflow history signing accepted activity results attested by the wrong app
> ### Problem
> With the `WorkflowHistorySigning` preview feature, the result of an activity or child workflow carries an attestation signed by the sidecar that produced it. The workflow checked that the signature came from an identity issued by Sentry, but not that it came from the application the task was dispatched to.
> ### Impact
> This only affects applications with the `WorkflowHistorySigning` preview feature enabled and no `WorkflowAccessPolicy`. Another application with a valid Dapr identity, able to call the sidecar's internal API and knowing the instance ID, task and exact input, could deliver a result attested with its own identity, and the workflow recorded it as verified.
> ### Root Cause
> The attestation's signer was not compared with the application named in the scheduling event.
> ### Solution
> The signer of an attestation must now be the application and namespace the task was dispatched to. A result that fails this check is dropped like an unsigned one.

### 改ざんされた履歴を持つワークフローの再実行拒否

- 影響対象: `WorkflowHistorySigning` プレビュー機能を有効にしたアプリケーション

この変更前は、保存された履歴の検証に失敗したワークフローを再実行すると、その履歴が新しいインスタンスにコピーされて署名されていました。そのため、攻撃者がアクター状態ストアに書き込める場合、偽造された履歴が受け入れられる可能性がありました。現在、このような再実行リクエストは `FailedPrecondition` で失敗します。

> ## A workflow that failed history tamper detection could be rerun
> ### Problem
> With the `WorkflowHistorySigning` preview feature, a workflow whose stored history fails verification is marked as failed and its history is no longer trusted. A rerun of such a workflow copied that history into a new instance and signed it.
> ### Impact
> This only affects applications with the `WorkflowHistorySigning` preview feature enabled. An attacker able to write to the actor state store could have forged history accepted by getting the tampered instance rerun.
> ### Root Cause
> The rerun did not check for the tamper marker.
> ### Solution
> A workflow that failed history tamper detection can no longer be rerun; the request fails with `FailedPrecondition`.

### `https://` URL 呼び出しでの TLS 検証

- 影響対象: アプリプロトコルが `https` または `h2c` に設定されたサイドカー
- 追加の対応: プライベート認証局の証明書を使用するサーバーでは、`clientTLS.rootCA` を指定した `HTTPEndpoint` リソースが必要

`HTTPEndpoint` リソースではない、`https://` URL への直接呼び出しでは、これまで `https` のサイドカーは証明書の検証を省略し、`h2c` のサイドカーは TLS を使わずにリクエストを送信していました。現在はどちらも 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`.

### `QueryStateAlpha1` の結果を呼び出し元アプリケーションのキー接頭辞に制限

- 影響対象: アプリケーション間で共有されるクエリ対応ストア上の状態クエリ API。ただし、`keyPrefix` が `none`、`name`、またはカスタム値に設定されたストアを除く

この変更前は、共有ストアへのクエリで、ほかのアプリケーションが書き込んだ一致行も返されていました。今後は、次のページのトークンが含まれていても、ページ内の行数が要求数を下回ったり、行がまったく含まれなかったりすることがあります。

> ## Security: The state query API returned the state of other applications
> ### Problem
> 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.
> ### Impact
> 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.
> ### Root Cause
> The query was passed to the component without any scope for the calling application, and the results were not filtered.
> ### Solution
> 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.

### 完了済みワークフローの置き換え前にパージ権限を確認するWorkflowAccessPolicy

- 影響対象: アプリケーション間のワークフロー実行スケジューリング

以前は、作成が許可されていれば、作成元アプリケーションにそのワークフローの `purge` 権限がなくても、別のワークフローの完了済みインスタンスを置き換え、その履歴と結果を消去できました。これは、別のアプリケーションからの作成要求が、完了済みワークフローに属するインスタンス ID を指定した場合に発生していました。

> ## Security: A workflow schedule grant let an application replace instances of other workflows
> ### Problem
> Creating a workflow under the instance ID of a completed instance replaces that instance. A `WorkflowAccessPolicy` checked the create against the workflow name in the request only.
> ### Impact
> An application allowed to schedule one workflow of another application could replace completed instances of any other workflow of that application, removing their history and result, even where the policy denied it `purge` on them.
> ### Root Cause
> The policy check did not look at the instance already stored under the requested instance ID.
> ### Solution
> When a create from another application would replace a completed instance of a different workflow, the policy must also allow that application to `purge` the stored workflow.

### ワークフロー再実行と再帰的操作における子以外のインスタンスの保護

- 影響対象: ワークフローの再実行と再帰的な `purge` または `terminate`

以前は、再実行された子ワークフローが、すでに完了しているワークフローが使用中の ID を置き換えることがありました。また、再帰的な `purge` または `terminate` により、その ID のインスタンスが子ワークフローでなくても操作の影響を受けることがありました。現在は、使用中の ID を持つ子ワークフローの再実行は `AlreadyExists` で失敗し、再帰的な操作では、該当する子ワークフローとの関係チェックに失敗したインスタンスはスキップされます。

> ## Security: A workflow rerun could replace, purge or terminate workflows which are not its children
> ### 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. A recursive purge or terminate of the new instance was also applied to a workflow under that ID which was never its child.
> ### Impact
> An application allowed to rerun one workflow could replace completed instances of other workflows. With `purge` or `terminate` on that one workflow, it could also delete or terminate running instances of other workflows.
> ### Root Cause
> The child workflows of a rerun were created without requiring a new instance ID, and recursive purge and terminate did not check that an instance recorded as a child was one.
> ### Solution
> - The child workflows of a rerun are created with instance ID uniqueness enforced: if the ID is taken, the child task fails with `AlreadyExists`.
> - A recursive purge requested by another application skips an instance whose parent is not the workflow being purged.
> - A recursive terminate from the same application skips an instance which is not a child workflow. One from another application skips an instance which is not a child of the workflow being terminated.

### Operator の変換 Webhook における過大リクエストによる枯渇の修正

- 影響対象: Operator の変換 Webhook を使用する構成

以前は、Webhook ポートに到達できる誰でも未認証リクエストを送信でき、そのサイズに比例してメモリと CPU が消費され、Operator がメモリ不足で停止する可能性がありました。Webhook は現在、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.

### 名前空間をまたぐアクター呼び出しとワークフロー呼び出しの拒否

- 影響対象: mTLS が有効な共有 Dapr コントロールプレーンで、分離のために名前空間に依存し、名前空間をまたいでアクターまたはワークフローを使用するアプリ

これまでは、別の名前空間の呼び出し元が、アプリがホストするアクターの任意のメソッドを呼び出せました。また、対象アプリに `WorkflowAccessPolicy` がない場合、ワークフローを開始したり、ワークフローインスタンスにアクセスしたり操作したりできました。これらの呼び出しは現在、`PermissionDenied` と「actors cannot be called across namespaces」というメッセージで失敗します。同じ名前空間内の呼び出しに変更はありません。

> ## 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, when the target app had no `WorkflowAccessPolicy` loaded (the default): 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.
> The documentation states that a workflow or activity call from another namespace is always denied. Without a `WorkflowAccessPolicy` that was not enforced.
> 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.
> Workflows were exposed only on apps with no `WorkflowAccessPolicy` loaded. With a policy loaded, callers from another namespace were already denied.
> 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.
> For workflow and activity actors, the caller's namespace was compared with the sidecar's own namespace only after checking that a `WorkflowAccessPolicy` was loaded.
> For actors hosted by the app, the caller's namespace was not checked.
> Forwarded actor reminders (`CallActorReminder`) already refused a caller from another namespace.
> ### Solution
> `CallActor` and `CallActorStream` now refuse a caller whose namespace differs from the sidecar's own namespace, for every actor type, whether or not a `WorkflowAccessPolicy` is loaded.
> 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.

### Dapr gRPC プロキシによる内部 API 呼び出しの遮断

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

従来、これらのリクエストはサイドカーの ID を使って中継されていたため、アプリから別のアプリのサイドカーに対して、サイドカー間の内部メソッドを呼び出すことができました。現在は `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`.

### アプリ間のワークフロー認可チェックの強制

- 影響対象: 他のアプリからアクセスされるワークフロー
- 追加の対応: 追加の設定やコンポーネントは不要

`WorkflowAccessPolicy` がない場合、別のアプリが保留中のアクティビティや子ワークフローの結果を偽造したり、内部メソッドを呼び出したりできました。ポリシーで `rerun` が許可されている場合も、`RerunWorkflowInstance` に関する問題は発生していました。他のアプリは引き続き、ワークフローのスケジュール、イベントの発行、終了、一時停止、再開、削除、読み取り、再実行ができますが、内部メソッド `RerunWorkflowInstance` を呼び出せるのは同じアプリだけです。同じアプリからの呼び出しと、mTLS が無効な場合の動作に変更はありません。

> ## Security: Without a WorkflowAccessPolicy, other apps could forge activity results and call internal workflow methods
> ### Problem
> When an app has no `WorkflowAccessPolicy` loaded, other apps in the namespace are allowed to operate its workflows.
> In that mode the workflow actor skipped every check, including the ones which are not about policy: who may deliver the result of an activity or child workflow, and who may call the methods sidecars of the same app use between themselves.
> ### Impact
> On an app with no `WorkflowAccessPolicy`, another app able to call its sidecar's internal API could:
> - complete or fail a pending activity or child workflow of a running workflow with a result of its choosing;
> - call the internal `RerunWorkflowInstance` method to write a workflow history of its choosing under a new instance ID.
> The second point also applied with a policy which grants the caller the `rerun` operation.
> ### Root Cause
> The check that a result comes from the app the task was dispatched to, and the refusal of internal methods, were only reached when a policy was loaded. `RerunWorkflowInstance`, the internal second step of a rerun, was treated as the `rerun` operation itself.
> ### Solution
> With no policy loaded, calls from another app now go through the same checks as with a policy that allows every operation. Other apps can still schedule, raise events on, terminate, pause, resume, purge, read and rerun workflows. They can no longer deliver results for tasks that were not dispatched to them, or call internal methods.
> `RerunWorkflowInstance` is accepted from the same app only, with or without a policy.
> Calls from the same app, and calls when mTLS is disabled, are not changed.

### インスタンスが欠落したワークフロー開始を保存前に拒否

- 影響対象: 内部 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.

### 偽造リクエストによるプラガブルコンポーネント情報の漏えい修正

- 影響対象: `dapr.io/inject-pluggable-components` を使用し、コンポーネントコンテナにアノテーションを付けた Kubernetes 環境
- 追加の対応: インジェクターが ReplicaSet、StatefulSet、DaemonSet、Job、ReplicationController リソースに対する `get` 権限を持つようにするための、Helm chart とインジェクターイメージの同時アップグレード

この変更前は、インジェクターに到達できるワークロードがリクエストを偽造し、別の namespace にあるアノテーション付きコンポーネントコンテナの仕様を取得できました。namespace が空の場合は、すべての namespace の仕様が公開される可能性がありました。インジェクターは空の namespace を拒否するようになり、Components の読み取り前に、対応するコントローラー所有者が存在し、要求された namespace 内で UID が一致することを検証します。そのような所有者を持たない Pod も拒否されます。コンポーネントコンテナ内のリテラルな `env` 値は引き続き公開される可能性がありますが、`valueFrom.secretKeyRef` の値は解決も公開もされません。

> ## Security: Sidecar injector disclosed pluggable component container specs of other namespaces
> ### Problem
> 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.
> ### Impact
> 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.
> ### Root Cause
> 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.
> ### Solution
> 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.
> Do not put secrets in literal `env` values of `dapr.io/component-container`; use `valueFrom.secretKeyRef`.

### ワイルドカードによる pub/sub トピック制限の回避を修正

- 影響対象: ワイルドカードサブスクリプションをサポートし、`protectedTopics`、`allowedTopics`、`subscriptionScopes` のいずれかを使用する共有 pub/sub コンポーネント

以前は、保護されたトピックのスコープを持たないアプリでも、一致するワイルドカードサブスクリプション、または Pulsar の場合はサブスクリプションの `topicsPattern` メタデータを通じて、そのメッセージを受信できました。現在は、`subscriptionScopes` でアプリにトピックの文字列が完全一致で指定されていない限り、制限対象のワイルドカードサブスクリプションは拒否されます。`protectedTopics`、`allowedTopics`、`subscriptionScopes` のいずれかが設定されている場合、`topicsPattern` メタデータを持つサブスクリプションは拒否されます。また、保護されたトピックから別のトピックへのサブスクリプションに届いたメッセージは、アプリにその保護されたトピックのスコープがなければ破棄されます。コンポーネントメタデータの `topicsPattern` とパブリッシュの動作に変更はありません。

> ## 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), and the `topicsPattern` subscription metadata of the Pulsar component, which replaces the topic with a pattern.
> ### Impact
> An app which was not scoped to a protected topic could subscribe to a wildcard matching it and receive its messages. With Pulsar, an app could pass `topicsPattern` in its subscription metadata to receive from any topic matching the pattern, whatever the restrictions.
> 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. Subscription metadata was passed to the component without being checked.
> ### 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`.
> - When any of the three settings applies, a subscription with `topicsPattern` in its metadata is refused. A `topicsPattern` set in the component metadata is not affected.
> - 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.

### 呼び出し、ストリーミング、Pub/Sub 処理でのサイドカイのパニック修正

- 影響対象: 内部の呼び出しまたはアクターリクエスト、HTTP `text/event-stream` 呼び出し、または `rawPayload` 以外の Pub/Sub サブスクリプションを処理するサイドカー

以前は、呼び出しまたはアクターリクエストのメタデータ値が空の場合、HTTP プロトコルのアプリへのサービス呼び出しで `Accept: text/event-stream` を指定した際に成功レスポンスが返された場合、またはトレース情報を含む `null` の 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.

### 外部 URL エンドポイントへのアプリ API トークン送信の停止

- 影響対象: サイドカー経由で URL を指定して外部 HTTP エンドポイントを呼び出す、`APP_API_TOKEN` を設定した構成

以前は、サイドカーが URL で呼び出す Dapr 以外のホストに `dapr-api-token` を送信していました。アプリケーションのポートに接続できるホストは、このトークンを使ってサイドカーになりすますことができました。アプリケーション自体へのリクエストには、引き続きトークンが含まれます。

> ## Security: The app API token was sent to external HTTP endpoints invoked by URL
> 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`.
> 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.
> The channel used for endpoints invoked by URL was built with the same configuration as the channel to the application, including the token.
> The channel used for endpoints invoked by URL is now built without the app API token. Requests to the application itself still carry it.
> ### Problem
> ### Impact
> ### Root Cause
> ### Solution

### `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.

### ジョブなしの `ScheduleJob` リクエストによる Scheduler クラッシュの修正

- 影響対象: 有効な Dapr ID と Scheduler への直接アクセスを持つアプリケーション、および Scheduler から配信されるジョブ、アクターリマインダー、ワークフロータイマーを使用するワークロード

ジョブを含まない `ScheduleJob` リクエストによって Scheduler がクラッシュし、有効な ID と直接アクセスを持つアプリケーションがこのクラッシュを引き起こせました。Scheduler の停止中は、すべてのアプリケーションのジョブ、アクターリマインダー、ワークフロータイマーが配信されませんでした。現在はクラッシュせず、リクエストを `InvalidArgument` で拒否します。

> ## Security: The Scheduler could be crashed by a ScheduleJob request without a job
> The Scheduler service crashed when it received a `ScheduleJob` request which did not contain a job.
> 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.
> The fields of the job were read without checking that the request contained one.
> A `ScheduleJob` request without a job is refused with `InvalidArgument`.
> ### Problem
> ### Impact
> ### Root Cause
> ### Solution

### 失敗した `WatchJobs` 登録の Scheduler 内での分離

- 影響対象: 有効な Dapr アイデンティティを持つアプリケーションによる Scheduler への直接アクセス

アクターリマインダーの `WatchJobs` リクエストでアクタータイプが省略されると登録に失敗し、以前はその 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.

### Scheduler のルーティングテーブル再構築を次回使用時まで延期

- 影響対象: Scheduler 名前空間

有効な Dapr ID を持つアプリケーションが、ホストアドレスの異なる多数の Scheduler ストリームを開くと、ルーティングテーブルが即座に再構築されていました。その再構築の負荷はストリーム数の二乗に比例して増加し、同じ名前空間内の他のアプリケーションへのジョブ、リマインダー、ワークフロータイマーの配信が滞っていました。

> ## Security: Many WatchJobs streams could stall job delivery for a namespace in the Scheduler
> ### Problem
> The Scheduler keeps a routing table of the actor hosts connected in each namespace. It rebuilt this table for every actor type each time a stream with a new host address connected or disconnected.
> ### Impact
> An application with a valid Dapr identity could open many streams with different host addresses to the Scheduler. The repeated rebuilds grew with the square of the number of streams and stalled the delivery of jobs, reminders and workflow timers to the other applications of the namespace.
> ### Root Cause
> The table was rebuilt eagerly on every change of the host set, even when it was never used.
> ### Solution
> The table is now rebuilt only when it is next used after a change.

### クラスタービューの変更時にのみ保留キューを排出するスケジューラー

- 影響対象: 同時実行数の上限待ちのトリガーが多数ある名前空間

有効な Dapr ID を持つアプリケーションが `WatchJobs` ストリームを短時間に繰り返し開閉でき、それによってキューの再スキャンが発生し、ジョブ、リマインダー、ワークフロータイマーの配信が遅れていました。

> ## Security: WatchJobs connections from any namespace could stall job delivery in namespaces with a concurrency limit
> ### Problem
> The Scheduler republishes its view of the cluster to every namespace each time a sidecar connects or disconnects. For a namespace with a full concurrency gate, each republish walked the whole queue of waiting triggers.
> ### Impact
> An application with a valid Dapr identity, in any namespace, could open and close `WatchJobs` streams quickly. Namespaces with many triggers waiting on a concurrency limit then spent their time rescanning the queue, delaying the delivery of their jobs, reminders and workflow timers.
> ### Root Cause
> The pending queues were drained on every republish, even when the view had not changed.
> ### Solution
> The pending queues are now only drained when the cluster view actually changes.

### Scheduler によるアプリケーション間のアクティビティ結果リマインダーの制限

- 影響対象: 同一名前空間内のワークフローアクター上にある、アプリケーション間のアクティビティ結果リマインダー

有効な Dapr identity を持つアプリケーションが Scheduler を直接呼び出し、別のアプリケーションのワークフローアクター上に、繰り返し実行するリマインダー、または遅延なしで再試行するリマインダーを作成すると、そのアプリケーションのサイドカーで発火し続け、削除できるのは所有者だけでした。Scheduler は現在、これらのリマインダーが1回だけ発火し、繰り返さないことと、再試行間隔をワークフローエンジン自体の再試行間隔より短くしないことを要求します。

> ## A never-ending reminder could be planted on another app's workflow actor
> ### Problem
> To deliver an activity result, an application's sidecar may create an activity result reminder on the workflow actor of another application in its namespace. The Scheduler accepted such a reminder with any schedule and retry settings, and the workflow actor returned an error for one whose payload it could not read.
> ### Impact
> An application with a valid Dapr identity, calling the Scheduler directly, could create a repeating reminder, or one that is retried without delay, on another application's workflow actor. It kept firing at that application's sidecar, and only the owner could delete it.
> ### Root Cause
> ### Solution

### ワークフローアクターによるイベント以外のリマインダーの確認応答と破棄

- 影響対象: リマインダーを処理するワークフローアクター (推定)

ワークフローアクターが読み取れないペイロードのリマインダーを受信すると、エラーを返して無期限に再試行していました。現在は、ペイロードがワークフローイベントではないリマインダーに確認応答し、破棄します。

> The Scheduler now only accepts such a reminder from another application when it fires once, does not repeat, and is not retried faster than the workflow engine's own retry interval. The workflow actor acknowledges and drops a reminder whose payload is not a workflow event. Reminders already stored are not removed by this change.

### Scheduler の placement leader 通知待ち時間の上限設定

- 影響対象: `--placement-enabled` を指定した Scheduler

このリリースより前は、Scheduler がまだリーダーを通知していない場合、有効な Dapr identity を持つアプリケーションが新しい placement アドレスを報告し続けることで、Scheduler が placement leader を通知するまで待ち続ける状態にできました。現在は 2 回のリフレッシュラウンド後に待機が終了するため、新しいアドレスによって待機時間が無期限に延びることはありません。

> ## New WatchJobs addresses could keep the Scheduler from advertising its placement leader
> ### Problem
> With `--placement-enabled`, a Scheduler withholds its placement leader advertisement while newly reported placement addresses are still being probed.
> ### Impact
> An application with a valid Dapr identity could keep reporting new addresses and delay the advertisement for as long as it continued. This only applied to a Scheduler started with `--placement-enabled` that had not yet advertised a leader.
> ### Root Cause
> Each newly reported address extended the wait, with no bound.
> ### Solution
> The wait for unprobed addresses now ends after two refresh rounds.

### Scheduler のプレースメントラウンド再スキャンの削減

- 影響対象: `--placement-enabled` を指定した Dapr Scheduler

有効な Dapr ID を持つアプリケーションが、ラウンドへの応答を返さずに多数のアクタータイプを報告すると、ラウンドがまだ進行中の間に保留中のアクタータイプが新しいラウンドのたびに再スキャンされ、CPU とメモリの使用量が増加していました。今後はラウンドの開始時に、次のラウンドに進めるアクタータイプのみを処理します。

> ## Unacknowledged reports made the Scheduler's placement rounds slower with each actor type
> With `--placement-enabled`, the Scheduler scanned every pending actor type each time it started a dissemination round, including the types held by rounds still in flight.
> An application with a valid Dapr identity could report many actor types and not acknowledge the rounds, making each new round more expensive in CPU and memory.
> Types locked by rounds in flight were rescanned on every round.
> The Scheduler now keeps the types that are ready for the next round separately, so starting a round costs only those.
> ### Problem
> ### Impact
> ### Root Cause
> ### Solution

### サイドカーインジェクターのボリューム検索と警告出力の上限制御

- 影響対象: `dapr.io/volume-mounts` または `dapr.io/volume-mounts-rw` の注釈を使用する Pod

注釈エントリーやボリュームが非常に多い場合、Pod に存在しないボリューム名も含め、以前は各エントリーごとにボリューム一覧を検索し、個別に警告を出力していました。そのため、1回のリクエストで数秒分の CPU を消費し、非常に大量のログが出力される可能性がありました。インジェクターは Pod ごとに一度だけ作成したセットを使って検索するようになり、不足しているボリュームのうち最初のものとその件数を示す、出力量を制限した警告を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.

### 無制限リクエストによるサイドカーインジェクターのメモリ枯渇を修正

- 影響対象: サイドカーインジェクターサービスに接続できるワークロードまたはクライアント

以前は、接続可能な送信元が非常に大きなリクエストを送信したり、リクエストの開始を通知したまま処理を停滞させたりすると、インジェクターのメモリを枯渇させる可能性がありました。インジェクターが停止している間、新しい Pod に Dapr サイドカーが追加されない状態になっていました。現在、インジェクターは 7 MiB を超えるリクエストボディをステータスコード 413 で拒否し、リクエストの受信に 30 秒の制限を設けています。Kubernetes API サーバーからのアドミッションリクエストは、このサイズ制限を大幅に下回ります。

> ## 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.

### Sentry の Kubernetes クライアント側レート制限の削除

- 影響対象: Kubernetes 上の Sentry デプロイメント

Sentry の gRPC ポートに到達できるワークロードが、無効なトークンで証明書要求を継続的に送信すると、認証前にクライアント側の制限を使い切る可能性がありました。その結果、起動時や更新時に、正当なサイドカーやコントロールプレーンからの要求が拒否されることがありました。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.

### HTTP サーバーのシャットダウンがタイムアウトしても続行するコントロールプレーンの認証情報再読み込み

- 影響対象: healthz、メトリクス、または Sentry OIDC の HTTP サーバーを使用するコントロールプレーンサービス

認証情報のローテーション中に、リクエストを開いたままにするクライアントがいると、グレースフルシャットダウンがタイムアウトすることがありました。以前は、その場合サービスが終了していました。タイムアウト時に残りの接続を閉じ、再読み込みが続行されるようになりました。

> ## 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.

### Placement の名前空間終了処理による他名前空間のブロック解消

- 影響対象: 最後のサイドカーが切断する可能性のある Placement サービスの名前空間 (推定)

以前は、有効な Dapr ID を持つアプリケーションが名前空間の唯一のメンバーとして直接接続し、多数のレポートをキューに入れてから切断すると、他の名前空間へのサービスが数秒以上滞ることがありました。これを繰り返すと、アクターの配置変更が配信されなくなる可能性もありました。終了処理はバックグラウンドで行われるようになり、同じ名前空間の新しいインスタンスは、前のインスタンスの処理が完了するまで待機します。

> ## 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.

### raftへの接続引き渡し前にmTLSを要求するPlacementと10秒の期限

- 影響対象: mTLSを使用する高可用性モードのPlacement

raft ポートに到達できるワークロードは、多数の未認証接続をアイドル状態のまま残せる可能性があります。各接続は約256 KiBを保持し、Placement のメモリーを枯渇させるおそれがあります。

> ## 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.

### 終了済み Pod による旧 Configuration の読み取り可能状態維持の防止

- 影響対象: 別の Configuration に移行したアプリ

古い Configuration の注釈が付いた終了済み Pod が残っていると、その Configuration と参照先のシークレットをアプリ ID が読み取り可能な状態に保つことがありました。Operator は、アプリが読み取り可能な Configuration を判断する際、フェーズが `Succeeded` または `Failed` の Pod を除外するようになりました。

> ## A terminated pod kept a Configuration assigned to its app ID in the operator
> ### Problem
> The operator serves a Configuration only to the app IDs whose pods reference it. Pods that had run to completion or failed were still counted.
> ### Impact
> After an app was moved to another Configuration, a leftover terminated pod with the old annotation kept the old Configuration, including the secrets it references, readable by that app ID.
> ### Root Cause
> The pod lookup did not exclude pods in the `Succeeded` or `Failed` phase.
> ### Solution
> Terminated pods are no longer counted when the operator decides which Configuration an app may read.

### 配置変更時のワークフローアクティビティ再スキャンの修正

- 影響対象: `WorkflowsFastPath` プレビュー機能を使用する構成

以前はアクターの配置が変わると、サイドカーは移動したアクターごとに、実行中の各アクティビティをスキャンしていました。移動先で多数のアクティビティアクターが有効化されている場合、スキャンに時間がかかり、Placement サービスがサイドカーのストリームを切断することがありました。現在は、配置変更ごとに実行中のアクティビティを一度だけスキャンします。

> ## A placement change rescanned all in-flight activities once per moved actor
> ### Problem
> With the `WorkflowsFastPath` preview feature, when actor placement changed the sidecar looked through every in-flight activity once for each activity actor that moved.
> ### Impact
> Another application in the namespace could activate many activity actors on the target, so that a placement change took long enough for the Placement service to drop the sidecar's stream.
> ### Root Cause
> The in-flight activities were scanned per moved actor.
> ### Solution
> They are now scanned once per placement change.

### ストリーミングサブスクリプションにおける重複 ID の配信順序修正

- 影響対象: 並行配信を行うコンポーネントのストリーミングサブスクリプション（`SubscribeTopicEventsAlpha1`）

パブリッシャーが重複するイベント ID を指定し、同じ ID の 2 件のイベントが 1 つのストリーム上で並行して配信されると、後の配信が先のイベントの保留中の確認応答を引き継ぐことがありました。その結果、先のイベントが確認応答されないまま残り、コンポーネントのワーカーが占有された状態で、タイムアウトまで配信が待たされることがありました。後のイベントは、先のイベントの処理が完了してから送信されるようになりました。

> ## 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.

### gRPC プロキシのコールバックアクセス制御回避の修正

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

以前は、アプリケーションがサイドカーの gRPC プロキシを使って別のアプリケーションのコールバックサービスを呼び出せました。その結果、呼び出し先のアクセス制御ポリシーで拒否される操作を実行したり、コンポーネントへのアクセス権がなくても、トリガーされていないトピックイベント、バインディングイベント、ジョブトリガーを配信したりできました。現在、こうしたコールバックの呼び出しは `PermissionDenied` で失敗します。サービス呼び出しや、アプリケーション自身の gRPC サービスのプロキシは引き続き利用できます。

> ## Security: An app could call another app's callback API through the gRPC proxy
> ### Problem
> 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.
> ### Impact
> 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.
> ### Root Cause
> 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.
> ### Solution
> 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.

### Dapr サイドカーの不正なステータスコード処理の修正

- 影響対象: URL または `HTTPEndpoint` リソース経由の HTTP 呼び出し、ジョブトリガーへの応答、gRPC アプリケーションを呼び出す HTTP クライアント

このリリース以前は、`http://` または `https://` の URL、`HTTPEndpoint`、またはジョブトリガーに対するアプリケーションの応答を通じて、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.

### 公開 HTTP ポートでのリクエストボディサイズ制限の適用

- 影響対象: 公開 HTTP ポートを使用するサイドカー

そのポートに送信されたリクエストボディは、`GET /v1.0/metadata` の場合も含め、以前はサイズ制限なくメモリに読み込まれる可能性がありました。そのため、ポートにアクセスできる人なら誰でもメモリを使い果たしてサイドカーを停止させることができました。現在、このポートでは API ポートと同様に、リクエストボディに `--max-body-size` が適用され、デフォルトは 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.

### 不正なトレースコンテキストによるワークフローエンジンのクラッシュ解消

- 影響対象: トレースコンテキストを伴うワークフローの開始およびアクティビティのディスパッチ

末尾のトレースフラグフィールドが空の `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.

### 他アプリケーションからのサイドカーワークフロー実行の制限

- 影響対象: `MCPServer` のツール呼び出しワークフロー、および同一名前空間内の別アプリケーションからアクセス可能なサイドカー実装アクティビティ

`WorkflowAccessPolicy` が存在する場合、そこで許可された別のアプリケーションは、組み込みのツール呼び出しアクティビティを直接呼び出したり、完了済みの `CallTool` ワークフローを新しい入力で再実行したりできました。その結果、フックが拒否した、またはフックに渡されなかった引数でツールを呼び出せる状態でした。サイドカーは、別のアプリケーションによる自身の `dapr.internal.` アクティビティの実行と、自身が実装するワークフローの再実行をブロックするようになりました。ただし、別のアプリケーションによる `CallTool` ワークフローのスケジュール登録は引き続き許可されます。

> ## Security: Another application could run MCPServer tool calls without their hooks
> ### Problem
> The `beforeCallTool` and `afterCallTool` hooks of an `MCPServer` run inside its built-in `CallTool` workflow. Another application could run the built-in activity which makes the tool call directly, or rerun a finished `CallTool` workflow with a new input.
> ### Impact
> Another application in the namespace, allowed by the `WorkflowAccessPolicy` if there is one, could have a tool called with arguments the hooks refused or never saw.
> ### Root Cause
> Nothing tied the built-in activities to the workflows which wrap them, and a rerun did not check the workflow it was rerunning.
> ### Solution
> A sidecar now refuses another application executing an activity it implements itself (`dapr.internal.` names), and rerunning a workflow it implements itself. Scheduling the `CallTool` workflow from another application is unchanged.

## 重大な修正 (3)

### Redis pub/sub の接続リーク修正

- 影響対象: Redis pub/sub コンポーネントで `readTimeout` が未設定の場合

Redis 7 以降では、トピックがアイドル状態の間に購読を停止して再開すると、読み取り処理が接続を保持し続け、接続プールが満杯になることがありました。その結果、購読とパブリッシュが `redis: connection pool timeout` で失敗していました。現在は、`readTimeout` が未設定の場合は 3s がデフォルトになり、停止した購読は接続を解放します。また、ブロッキング読み取りは、タイムアウトするまで要求されたブロック時間に `readTimeout` を加えた時間だけ待機できます。

> ## 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.

### Anthropic 会話コンポーネントによる空のアシスタントテキストパートの省略

- 影響対象: ツール呼び出しを使用する Anthropic 会話コンポーネント

アシスタントの履歴に、空のテキストパートの後にツール呼び出しが続く、ツールのみのターンが含まれていると、リクエストは400エラーで失敗していました。このコンポーネントは空のパートを省略し、ほかにパートがない場合はアシスタントメッセージ自体も含めなくなりました。

> ## Anthropic conversation component rejected assistant turns that only call tools
> ### Problem
> A Conversation API request to a `conversation.anthropic` component failed when its history held an assistant message with tool calls and empty text.
> The request returned `failed to create message: API returned unexpected status code: 400: messages: text content blocks must be non-empty`.
> ### Impact
> You were affected if you use the Anthropic conversation component with tool calling and your client sends an assistant turn that only calls tools as an empty text part followed by the calls.
> Dapr Agents does this, so an agent failed on the request that followed its first tool call.
> The same requests succeeded on the OpenAI conversation component.
> ### Root Cause
> Anthropic does not accept a text block with no text.
> The component sent every part of an assistant message to Anthropic as it received it, including an empty text part.
> ### Solution
> The Anthropic conversation component now leaves empty text parts out of assistant messages, and leaves out an assistant message that has no other part.

### サーキットブレーカーの検索時にテーブルの読み取りロックを保持

- 影響対象: デフォルトのサーキットブレーカーと、特定のアプリまたはアクター種別向けのブレーカーを定義した `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.

---

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