# Dapr v1.18.12

2026-12-02 · [릴리스 노트 원문](https://github.com/dapr/dapr/releases/tag/v1.18.12) · [전체 정리](https://ratatosk.io/ko/releases/dapr/v1.18.12)

보안 50 (high 1) · 중요 수정 2

## 업그레이드 전 확인

### 알려진 문제

- **컴포넌트 컨테이너 환경 변수 값의 시크릿 처리**: 릴리스 노트에서는 직접 지정한 `env` 값 대신 `valueFrom.secretKeyRef`를 사용할 것을 권장합니다.
  > Do not put secrets in literal `env` values of `dapr.io/component-container`; use `valueFrom.secretKeyRef`.

## 보안 (50)

### [high] 액터 콜백 URL 경로 순회 수정

- 영향 대상: 하나 이상의 액터 타입을 호스팅하고 HTTP 앱 프로토콜을 사용하며, `accessControl`로 라우트를 제한하는 앱
- [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로 인해 액터 콜백, reminder, timer 또는 비활성화 요청이 `accessControl`을 적용하지 않은 채 관련 없는 앱 라우트로 전달될 수 있었습니다. 이제 사이드카는 `/`, `\`, `#`, `?`, 제어 문자, 퍼센트 인코딩된 `/`, `\` 또는 `.`이 포함된 ID와 `.` 또는 `..`인 ID를 거부합니다. 이 경우 앱에 요청을 보내지 않고 `InvalidArgument`를 반환합니다. 1.17.16 또는 1.18.6 이전에 생성된 reminder 중 이러한 ID를 사용하는 것은 실행 시 실패하지만, reminder 등록 해제 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.
> ### 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.

### 컴팩트 형식이 아닌 JWS 토큰을 거부하는 Sentry `jwks` 검증기

- 영향 대상: `jwks` 토큰 검증기를 사용하는 Sentry 설치 환경; 기본 Kubernetes 검증기는 영향받지 않음

JSON 직렬화된 JWS 토큰의 경우 Sentry는 내장된 페이로드를 검증했지만, 서명되지 않은 외부 JSON 객체의 아이덴티티 클레임을 사용했습니다. 따라서 어떤 JWKS 키로 서명된 토큰이든 어떤 app ID와 namespace에 대해서든 인증서를 받을 수 있었고, 서명이 많은 토큰은 CPU를 많이 사용할 수도 있었습니다. 이제 거부 응답은 `PermissionDenied`를 반환합니다.

> ## 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`가 반환됩니다.

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

### gRPC 접근 제어 메서드 우회 수정

- 영향 대상: `accessControl`을 사용해 허용 메서드와 거부 메서드를 모두 설정한 gRPC 앱

일부 메서드의 호출을 허용받은 호출자도 앱의 gRPC 서버가 해당 이름을 받아들이면 점 세그먼트, 중복 슬래시 또는 퍼센트 인코딩을 사용해 거부된 메서드에 접근할 수 있었습니다. 이제 사이드카는 표준 형식이 아닌 메서드 이름이나 퍼센트 기호가 포함된 프록시 호출을 거부하고 `InvalidArgument`를 반환합니다.

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

### 프록시 gRPC 호출로 인한 수신 측 메트릭 시리즈 증가 수정

- 영향 대상: 메트릭이 활성화되어 있고 다른 사이드카에서 프록시를 통해 전달된 gRPC 호출을 받는 사이드카

이 변경 전에는 호출자가 임의로 만든 `dapr-app-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.

### 앱 간 워크플로 태스크 결과 및 내부 메서드 검사 수정

- 영향 대상: 사이드카 내부 API에 앱 간 접근이 가능한 워크플로 앱

`WorkflowAccessPolicy`가 없으면 다른 앱이 대기 중인 액티비티 태스크나 자식 워크플로 태스크를 자신이 지정한 결과로 완료하거나 실패 처리하고, 내부 워크플로 메서드를 호출할 수 있었습니다. `rerun`을 허용하는 정책이 있는 호출자도 `RerunWorkflowInstance`를 호출할 수 있었습니다. 이제 다른 앱은 자신에게 디스패치되지 않은 태스크의 결과를 전달하거나 내부 메서드를 호출할 수 없으며, `RerunWorkflowInstance`는 같은 앱에서 온 요청만 허용됩니다.

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

### 앱 간 워크플로 부모 검증 수정

- 영향 대상: 앱 간 워크플로 스케줄링

한 앱이 다른 앱에서 워크플로를 스케줄링하도록 허용된 경우, 다른 앱의 워크플로가 시작하려던 자식의 인스턴스 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.

### 액티비티 액터의 앱 간 요청 거부

- 영향 대상: 앱 간 액티비티 호출 또는 저장된 액티비티 리마인더를 사용하는 멀티 앱 워크플로

이전에는 다른 앱의 액티비티 호출이 허용된 앱이, 정책이 로드되지 않은 경우에는 네임스페이스의 모든 앱이, 같은 task 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` 없이 포워딩된 리마인더를 받는 워크플로 또는 액티비티 액터 (추정)

`WorkflowAccessPolicy`가 로드되지 않은 상태에서는, 사이드카의 내부 API를 호출할 수 있고 워크플로 인스턴스 ID를 알고 있는 같은 네임스페이스의 다른 앱이 타이머 리마인더를 위조해 대기 중인 타이머를 즉시 실행시킬 수 있었습니다. 이제 리마인더를 받는 사이드카는 다른 앱에서 포워딩된 리마인더를 `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.
> 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.
> The same-app check for forwarded reminders on workflow and activity actors was skipped when no policy was loaded.
> 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의 애플리케이션 간 워크플로 리마인더 제한

- 영향 대상: 같은 네임스페이스에서 애플리케이션 간 워크플로 액터 리마인더를 위해 Scheduler를 직접 호출하는 경우

이전에는 Scheduler가 반복 리마인더와 지연 없이 재시도되는 리마인더를 허용했고, 페이로드를 읽을 수 없는 리마인더는 오류가 발생한 뒤 무한 재시도했습니다. 이제 애플리케이션 간 리마인더는 한 번만 실행되어야 하며 반복할 수 없고, 워크플로 엔진의 재시도 간격보다 짧은 간격으로 재시도할 수 없습니다. 워크플로 이벤트가 아닌 페이로드를 가진 리마인더는 확인 처리된 뒤 폐기되지만, 이미 저장된 리마인더는 그대로 남습니다.

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

### Placement 스트림 종료 시 기반 호출 취소

- 영향 대상: Placement가 처리하는 actor placement 스트림

유효한 Dapr 아이덴티티를 가진 사이드카나 애플리케이션은 Placement에 직접 연결해 테이블 업데이트가 커질 만큼 많은 actor 유형을 등록한 뒤 읽기를 중단할 수 있었습니다. 스트림이 닫힌 뒤에도 연결이 끊어질 때까지 모든 네임스페이스의 테이블 업데이트가 중단됐으며, actor 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 서비스 호출 오류 본문 버퍼링 크기 제한

- 영향 대상: 사이드카를 통한 HTTP 서비스 호출

이전에는 호출된 애플리케이션이나 외부 엔드포인트가 매우 크거나 끝없이 이어지는 본문과 함께 오류 상태 코드를 반환하면, 호출 측 사이드카가 재시도를 위해 응답을 버퍼링하다 메모리를 모두 소진할 수 있었습니다. 본문 크기 제한이 0이 아니면 제한을 초과하는 오류 본문은 호출자에게 스트리밍되고 해당 호출은 재시도되지 않습니다. `--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.

### 서비스 호출 및 gRPC 메트릭에서 정의되지 않은 상태 코드 통합

- 영향 대상: 서비스 호출 및 gRPC 메트릭

호출된 애플리케이션이나 원격 사이드카가 서로 다른 정의되지 않은 상태 코드를 반환하면, 각 코드값마다 호출 측 사이드카에 메트릭 시리즈가 영구적으로 생성되어 메모리 사용량과 메트릭 출력이 제한 없이 증가했습니다. 이제 서비스 호출 메트릭에서는 이 코드들이 `invalid`를, gRPC 메트릭에서는 `Unknown`을 공유하며, 유효한 코드는 기존 레이블을 유지합니다.

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

### Dapr 오퍼레이터 삭제 이벤트에서 해석된 시크릿 값 제외

- 영향 대상: 시크릿 참조가 있는 Component 또는 HTTPEndpoint

앱이 Component 또는 HTTPEndpoint의 scope에서 제외되는 동안 참조된 Kubernetes Secret이 교체되면, 앱이 이벤트를 발생시키거나 발생 시점을 조정할 수 없었는데도 삭제 이벤트에 새 시크릿 값이 노출될 수 있었습니다. 이제 삭제 이벤트에는 해석된 시크릿 값이 포함되지 않습니다. 다른 이벤트 유형에서는 오퍼레이터가 리소스 복사본에 시크릿 값을 해석해 넣습니다.

> ## 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 아이덴티티를 가진 다른 애플리케이션은 인스턴스 ID, 태스크, 정확한 입력값을 알고 있으면 사이드카의 내부 API를 통해 어테스테이션된 결과를 제출할 수 있었고, 워크플로는 해당 결과를 검증된 것으로 기록했습니다. 이제 태스크의 디스패치 대상이 아닌 애플리케이션이나 네임스페이스가 서명한 결과는 서명되지 않은 결과와 마찬가지로 폐기됩니다.

> ## 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`으로 실패합니다.

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

### URL 대상 서비스 호출의 TLS 및 인증서 검증

- 영향 대상: 앱 프로토콜이 `https` 또는 `h2c`인 사이드카의 URL 대상 서비스 호출. 단, `HTTPEndpoint` 리소스는 제외

이전에는 `https` 사이드카에서 보내는 `https://` URL 호출이 서버 인증서 검증을 건너뛸 수 있었고, `h2c` 사이드카에서 보내는 호출은 TLS 없이 전송됐습니다. 사설 인증 기관을 사용하는 서버는 `clientTLS.rootCA`가 있는 `HTTPEndpoint` 리소스를 통해 호출할 수 있습니다.

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

### 호출 애플리케이션으로 범위가 제한된 상태 쿼리 결과

- 영향 대상: keyPrefix가 none, name 또는 사용자 지정 값으로 설정되지 않은 쿼리 지원 상태 스토어를 공유하는 애플리케이션

이전에는 공유 스토어에 대한 쿼리 결과를 호출한 애플리케이션에 맞춰 필터링하지 않아 다른 애플리케이션이 기록한 행이 반환될 수 있었습니다. `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.

### 워크플로 대체 시 저장된 워크플로의 `purge` 권한 확인

- 영향 대상: `WorkflowAccessPolicy`의 적용을 받는 애플리케이션 간 워크플로 스케줄링

이전에는 다른 애플리케이션에서 생성 요청을 하면 완료된 다른 워크플로 인스턴스를 대체할 수 있었습니다. 해당 애플리케이션의 정책이 그 워크플로에 대한 `purge`를 허용하지 않더라도 대체가 가능해, 인스턴스의 기록과 결과가 삭제되었습니다. 이제 대체하려면 요청된 인스턴스 ID로 저장된 워크플로에 대해 정책이 `purge`를 허용해야 합니다.

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

### 재귀 워크플로 퍼지에서 관련 없는 인스턴스 제외

- 영향 대상: 재귀 워크플로 퍼지

다른 애플리케이션이 재귀 퍼지를 요청했을 때, 퍼지 대상 워크플로가 부모가 아닌 인스턴스에 도달하면 관련 없는 워크플로에도 영향을 줄 수 있었습니다.

> - A recursive purge requested by another application skips an instance whose parent is not the workflow being purged.

### 재귀 종료 시 자식 워크플로가 아닌 워크플로 건너뛰기

- 영향 대상: 호출자가 인스턴스 ID를 지정한 워크플로 재실행

재실행으로 생성된 자식 워크플로의 파생 ID를 무관한 워크플로가 이미 사용 중이면, 재귀 purge 또는 종료가 해당 워크플로에도 영향을 줄 수 있었습니다. 이로 인해 완료된 워크플로가 대체되고 기록과 결과가 제거될 수도 있었습니다. 이제 재귀 종료는 요청이 같은 애플리케이션에서 왔든 다른 애플리케이션에서 왔든 자식 워크플로가 아닌 워크플로를 건너뜁니다.

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

### 네임스페이스 간 액터 호출 차단

- 영향 대상: 공유 Dapr 컨트롤 플레인을 사용하는 다중 네임스페이스 배포에서 mTLS를 활성화하고 네임스페이스 격리에 의존하는 액터 또는 워크플로 앱

다른 네임스페이스의 사이드카가 대상 앱의 액터 메서드를 임의로 호출할 수 있었고, `WorkflowAccessPolicy`가 로드되지 않은 경우에는 워크플로를 시작하거나 알려진 인스턴스에서 작업을 수행할 수도 있었습니다. 이제 `CallActor` 및 `CallActorStream` 요청은 `PermissionDenied` 오류로 실패합니다. 같은 네임스페이스에서 보내는 호출과 mTLS를 사용하지 않는 배포에는 변경 사항이 없습니다.

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

### gRPC 프록시를 통한 Dapr 내부 API 호출 차단

- 영향 대상: 자체 사이드카로 gRPC 요청을 보낼 수 있는 앱

이전에는 사이드카의 프록시가 `dapr-app-id` 헤더와 함께 요청된 모든 메서드를 자체 아이덴티티로 중계했습니다. 여기에는 `/dapr.proto.internals.*` 메서드도 포함됐습니다. 이제 이러한 호출은 `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`.

### Dapr 프록시 gRPC 접근 제어 우회 수정

- 영향 대상: gRPC 앱 프로토콜을 사용하고, 일부 메서드는 허용하면서 다른 메서드는 거부하는 정책으로 `accessControl`을 사용하는 앱

이전에는 일부 메서드 호출이 허용된 호출자가 메서드 이름에 점 경로 요소, 연속된 슬래시 또는 퍼센트 인코딩을 사용해 거부된 메서드에 접근할 수 있었습니다. 단, 앱의 gRPC 서버가 해당 이름을 받아들이는 경우에 한합니다. 이제 정규 형식이 아닌 메서드 이름과 퍼센트 기호가 포함된 이름은 `InvalidArgument`로 거부됩니다. 실제 gRPC 메서드 이름은 계속 사용할 수 있습니다.

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

### 잘못된 시작 이벤트로 인한 워크플로 액터 크래시 수정

- 영향 대상: 다른 앱에서 호출할 수 있는 사이드카 내부 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.

### 플러거블 컴포넌트 인젝션의 Pod 소유자 검증

- 영향 대상: `dapr.io/inject-pluggable-components`를 사용하는 설정
- 추가 조치: 인젝터에 `ReplicaSet`, `StatefulSet`, `DaemonSet`, `Job`, `ReplicationController`에 대한 get 권한 필요; Helm 차트에서 해당 권한을 부여하며 인젝터 이미지와 함께 업그레이드해야 함

이전에는 인젝터가 실제 Pod나 컨트롤러 소유자인지 확인하지 않고 요청에서 컴포넌트를 읽을 수 있었습니다. 그 결과 다른 네임스페이스의 어노테이션이 붙은 컨테이너 spec이 노출될 수 있었고, 네임스페이스가 비어 있으면 모든 네임스페이스의 spec이 노출될 수도 있었습니다. 이제 인젝터는 네임스페이스가 비어 있는 요청을 거부하고, 컴포넌트를 읽기 전에 소유자가 API를 통해 검증된 `ReplicaSet`, `StatefulSet`, `DaemonSet`, `Job` 또는 `ReplicationController`인지 확인합니다.

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

### 보호 토픽 구독 격리 강제

- 영향 대상: 와일드카드 구독을 지원하고 토픽 격리 설정을 사용하는 공유 pub/sub 컴포넌트
- 추가 조치: `protectedTopics` 설정

이전에는 정확한 문자열만 확인했기 때문에 보호 토픽으로 범위가 지정되지 않은 앱도 해당 토픽과 일치하는 와일드카드 구독을 만들고 메시지를 받을 수 있었습니다. `protectedTopics`를 설정하면 `*`, `#`, `+` 또는 `>`를 포함하거나 `$share/`로 시작하는 구독은 앱의 `subscriptionScopes`에 구독 문자열이 정확히 등록되어 있지 않으면 거부됩니다. 보호 토픽의 메시지가 다른 토픽을 구독하는 구독에 도달하면, 앱이 해당 보호 토픽으로 범위가 지정되지 않은 경우 메시지를 삭제합니다. 메시지 발행 동작은 바뀌지 않습니다.

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

### 빈 메타데이터, 스트리밍 HTTP 응답, null pub/sub 메시지로 인한 사이드카 패닉 수정

- 영향 대상: 유효한 Dapr 아이덴티티를 가진 애플리케이션의 요청을 받는 사이드카와, 허용된 퍼블리셔의 메시지를 받으며 `rawPayload`를 설정하지 않은 구독

값이 빈 메타데이터가 포함된 호출이나 액터 요청을 받았을 때, `Accept: text/event-stream` 헤더가 포함된 HTTP 앱 호출이 성공했을 때, 또는 tracing 메타데이터가 포함된 `null` pub/sub 본문이 `rawPayload`를 설정하지 않은 구독에 전달됐을 때 사이드카가 패닉을 일으켜 중단될 수 있었습니다. 이제 사이드카는 빈 메타데이터 항목을 건너뛰고, 본문을 스트리밍한 뒤 앱 채널 응답을 반환하지 않습니다. 또한 내부 호출 핸들러에서 응답이 없는 경우를 확인하고, tracing 필드가 포함된 `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 토큰을 보내지 않는 사이드카

- 영향 대상: `APP_API_TOKEN`이 설정된 상태에서 사이드카가 URL로 호출하는 외부 HTTP 엔드포인트

이전에는 애플리케이션 호출과 설정을 공유했기 때문에, 사이드카가 URL로 호출한 비-Dapr 엔드포인트에도 `dapr-api-token` 헤더를 보냈습니다. 애플리케이션 자체로 보내는 요청에는 여전히 토큰이 포함됩니다.

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

### 다른 스킴 또는 호스트로 리디렉션할 때 `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 아이덴티티로 Scheduler에 직접 접근하는 경우

이전에는 작업이 없는 `ScheduleJob` 요청으로 Scheduler가 크래시했습니다. Scheduler가 중단된 동안 모든 애플리케이션의 작업, 액터 리마인더, 워크플로 타이머가 전달되지 않았습니다.

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

### 잘못된 `WatchJobs` 요청 후에도 다른 스트림을 열어 두는 Scheduler

- 영향 대상: 유효한 Dapr 아이덴티티가 있고 Scheduler에 직접 접근하는 애플리케이션

애플리케이션이 액터 유형을 지정하지 않고 액터 리마인더용 `WatchJobs` 요청을 보내면, 등록 실패로 네임스페이스를 가리지 않고 모든 스트림이 끊겨 잡, 리마인더, 워크플로 타이머 전달이 중단됐습니다. 이제 잘못된 요청은 설명이 포함된 오류와 함께 거부되고 해당 스트림만 닫힙니다.

> ## 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 job 및 stream 거부

- 영향 대상: Scheduler job 또는 stream에 사용하는 `||`가 포함되거나 `|`로 끝나는 액터 타입 (추정)

이전에는 유효한 Dapr 아이덴티티를 가진 애플리케이션이 이런 타입에 리마인더를 만들 수 있었습니다. 하지만 리마인더 키가 다른 액터 타입의 전달 프리픽스와 일치할 수 있어 리마인더가 전달되지 않고 즉시 무한 재시도됐습니다. 그 결과 Scheduler와 다른 타입의 사이드카에서 CPU를 소모했습니다. 이런 타입으로 이미 저장된 job은 계속 읽고 삭제할 수 있습니다.

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

### 어드미션 요청을 JSON으로만 디코딩하는 사이드카 인젝터

- 영향 대상: 사이드카 인젝터 서비스에 연결할 수 있는 워크로드

이 변경 전에는 별칭이 포함된 작은 YAML 문서가 메모리를 매우 많이 사용하도록 확장될 수 있었습니다. 이로 인해 인젝터가 중단되고, Dapr 사이드카 없이 새 Pod가 생성될 수도 있었습니다.

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

### Dapr 사이드카 인젝터의 볼륨 어노테이션 처리 및 경고량 제한

- 영향 대상: `dapr.io/volume-mounts` 또는 `dapr.io/volume-mounts-rw`를 사용하는 파드

어노테이션 항목과 볼륨이 많은 경우, 인젝터는 이전에는 각 항목마다 볼륨 목록을 검색했습니다. 볼륨이 없는 항목마다 경고를 출력할 수도 있어 CPU 시간을 몇 초씩 소모하고 로그가 과도하게 늘어날 수 있었습니다. 이제 볼륨 집합을 한 번만 만들고, 파드마다 누락된 볼륨 목록의 앞부분과 전체 개수를 나열하는 길이가 제한된 경고를 하나만 출력합니다.

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

### 사이드카 인젝터 요청 크기 및 수신 시간 제한

- 영향 대상: 사이드카 인젝터 서비스에 접근할 수 있는 워크로드

이전에는 접근 가능한 워크로드가 크기가 지나치게 큰 본문을 보내거나 큰 본문을 보낸다고 알린 뒤 전송을 지연해 인젝터 메모리를 소진시킬 수 있었습니다. 인젝터가 중단되면 새 파드에 Dapr 사이드카가 없는 상태가 됐습니다. 이제 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.

### Sentry `TokenReview` 요청 한도 소진 문제 수정

- 영향 대상: Kubernetes에서 `TokenReview`로 인증서 요청을 검증하는 Sentry 배포

Sentry의 gRPC 포트에 접근할 수 있는 워크로드에서 유효하지 않은 토큰을 사용한 인증서 요청이 지속적으로 들어오면 클라이언트 측 한도가 소진되어, 시작 시와 갱신 시 정상적인 사이드카 및 컨트롤 플레인 인증서 요청이 거부될 수 있었습니다. 이제 클라이언트 측 한도는 `TokenReview` 호출에 적용되지 않지만, 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, metrics, 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.

### Placement 네임스페이스 정리의 백그라운드 처리

- 영향 대상: Placement 서비스가 관리하는 네임스페이스

네임스페이스의 마지막 사이드카 연결이 끊기면, 유효한 Dapr 아이덴티티를 가진 직접 연결 애플리케이션이 많은 리포트를 큐에 넣은 뒤 연결을 끊을 수 있었습니다. 이로 인해 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.

### 유휴 연결로 인한 Placement raft 포트 메모리 고갈 수정

- 영향 대상: mTLS가 적용되고 워크로드가 raft 포트에 연결할 수 있는 고가용성 Placement

이전에는 raft 포트에 연결할 수 있는 워크로드가 데이터를 보내지 않은 채 연결을 유휴 상태로 둘 수 있었습니다. 연결 하나가 약 256 KiB를 계속 점유해 Placement의 메모리를 고갈시킬 수 있었습니다. 이제 Placement는 연결을 raft에 넘기기 전에 피어 아이덴티티를 확인하며, mTLS 핸드셰이크 시간은 10초로 제한합니다.

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

### 오퍼레이터의 `Configuration` 접근 확인에서 종료된 Pod 제외

- 영향 대상: `Configuration`을 참조하는 `Succeeded` 또는 `Failed` 상태의 Pod가 있는 앱 (추정)

앱이 다른 `Configuration`으로 이동한 뒤에도 이전 어노테이션이 남은 종료된 Pod가 있으면, 해당 앱 ID가 이전 `Configuration`과 그 `Configuration`이 참조하는 시크릿을 계속 읽을 수 있었습니다.

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

### Dapr 스트리밍 구독에서 중복 이벤트 ID 전달 직렬화

- 영향 대상: `SubscribeTopicEventsAlpha1`을 사용하는 스트리밍 구독

퍼블리셔가 중복 이벤트 ID를 사용하고 컴포넌트가 한 스트림에서 해당 이벤트 두 개를 동시에 전달하면, 두 번째 이벤트가 첫 번째 이벤트의 자리를 차지했습니다. 그 결과 첫 번째 이벤트는 타임아웃이 발생할 때까지 ACK를 받지 못했고 컴포넌트 워커도 계속 점유했습니다. 이제 나중에 전달된 이벤트는 먼저 전달된 이벤트 처리가 끝날 때까지 대기합니다.

> ## 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 프록시를 이용해 대상 애플리케이션의 정책에서 거부하는 작업을 호출하거나 게시되지 않은 토픽 이벤트, 트리거되지 않은 바인딩 이벤트, 트리거되지 않은 작업 트리거를 전달할 수 있었습니다. 이제 프록시를 통한 `AppCallback`, `AppCallbackAlpha`, `AppCallbackHealthCheck` 호출은 `PermissionDenied`와 `the Dapr app callback API cannot be called through the gRPC proxy` 메시지로 실패합니다. 다른 gRPC 서비스는 계속 프록시할 수 있으며, 서비스 호출이나 애플리케이션 자체의 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.

### 범위를 벗어난 응답 상태 코드 거부

- 영향 대상: `http://` 또는 `https://` URL이나 `HTTPEndpoint` 리소스를 통한 호출, 작업 트리거, gRPC 애플리케이션으로 보내는 HTTP 호출

이전 릴리스에서는 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` 요청을 크기 제한 없이 메모리에 읽어들일 수 있어, 포트에 접근할 수 있는 누구나 메모리를 고갈시켜 사이드카를 중단시킬 수 있었습니다. 이제 해당 포트는 이러한 요청에 기본값이 4Mi인 `--max-body-size`를 적용합니다.

> ## 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`가 비어 있는 trace flags 필드로 끝나는 워크플로 시작 요청이나 액티비티 디스패치를 처리하면 사이드카가 중단됐고, 저장된 요청은 재시작할 때마다 사이드카를 다시 중단시켰습니다. 이제 엔진은 파싱할 수 없는 트레이스 컨텍스트를 버리고, 부모 트레이스 없이 워크플로나 액티비티를 실행합니다.

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

### 애플리케이션 간 `CallTool` 실행 및 재실행 거부

- 영향 대상: 기본 제공 `CallTool` 워크플로를 사용하는 `MCPServer` 인스턴스

이전에는 다른 애플리케이션이 소유권 확인 없이 기본 제공 도구 호출 액티비티를 직접 실행할 수 있었습니다. 여기에는 `dapr.internal.` 이름도 포함됩니다. 또한 완료된 `CallTool` 워크플로를 새 입력으로 다시 실행할 수도 있었습니다. 이제 사이드카가 이러한 요청을 거부하므로, 훅이 거부했거나 애초에 보지 못한 인수를 사용하는 도구 호출을 방지합니다. 다른 애플리케이션은 여전히 `CallTool`을 스케줄링할 수 있습니다.

> ## Security: Another application could run MCPServer tool calls without their hooks
> 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.
> 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.
> Nothing tied the built-in activities to the workflows which wrap them, and a rerun did not check the workflow it was rerunning.
> 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.
> ### Problem
> ### Impact
> ### Root Cause
> ### Solution

### 재실행 자식 워크플로 ID 충돌로 인한 워크플로 대체 방지

- 영향 대상: 워크플로를 재실행하는 애플리케이션

재실행으로 생성할 자식 ID를 다른 워크플로가 이미 사용 중이면, 해당 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`.

### Dapr 오퍼레이터 변환 웹훅 요청 본문 크기 제한

- 영향 대상: Dapr 오퍼레이터의 변환 웹훅을 사용하는 배포

이전에는 웹훅이 인증되지 않은 요청을 본문 크기 제한 없이 받아들였습니다. 따라서 웹훅 포트에 접근할 수 있는 누구나 제출한 본문 크기에 비례해 메모리와 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.

## 중요 수정 (2)

### Redis pub/sub 유휴 읽기 및 연결 정리 수정

- 영향 대상: `readTimeout`을 설정하지 않고 Redis 7 이상을 사용하는 Redis pub/sub 컴포넌트

토픽에 새 메시지가 없는 동안 구독을 중지했다가 다시 시작하면, 리더가 연결을 계속 점유해 커넥션 풀이 가득 찰 수 있습니다. 그러면 구독과 퍼블리싱이 `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.

### 서킷 브레이커 조회 시 테이블 읽기 잠금 적용

- 영향 대상: 기본 서킷 브레이커와 특정 앱 또는 액터 유형용 서킷 브레이커를 정의한 `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가 작성하므로 틀릴 수 있으며, 보증 없이 제공합니다.
