보안53(high1)
액터 콜백 경로 순회 취약점 수정
high영향 대상HTTP 앱 프로토콜로 액터를 호스팅하는 앱
이전 릴리스에서는 내부 사이드카 API로 전달된 조작된 액터 ID가 콜백을 비액터 앱 라우트로 리디렉션할 수 있었으며, accessControl이 해당 라우트를 제한하는 경우 그 응답이 노출될 수 있었습니다. 호스팅 사이드카는 이제 /, \, #, ?, 제어 문자, 퍼센트 인코딩된 /, \, .를 포함하거나 값이 . 또는 ..인 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.
github.com/dapr/dapr/releases/tag/v1.19.3Sentry jwks 검증기의 비컴팩트 JWS 토큰 거부
영향 대상jwks 토큰 검증기를 사용하는 Sentry 설치 환경
이전에는 Sentry가 JSON으로 직렬화된 JWS를 받으면 내부 페이로드는 검증했지만, 아이덴티티 클레임은 서명되지 않은 바깥 JSON에서 읽었습니다. 이 때문에 설정된 JWKS의 키로 서명된 토큰을 가진 호출자가 어떤 앱 ID와 네임스페이스에 대해서든 인증서를 발급받을 수 있었습니다. 이제 비컴팩트 토큰은 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.
github.com/dapr/dapr/releases/tag/v1.19.3gRPC 접근 제어 메서드 이름 우회 수정
영향 대상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.
github.com/dapr/dapr/releases/tag/v1.19.3프록시된 gRPC 메트릭 메모리 증가 수정
영향 대상메트릭이 활성화된(기본값) 상태에서 다른 사이드카로부터 프록시된 gRPC 호출을 받는 사이드카
수신 측은 호출자가 설정한 dapr-app-id를 목적지 라벨로 신뢰했습니다. 그 결과 호출자가 임의로 만든 앱 ID를 사용해 해제되지 않는 메트릭 시계열을 생성하고 메모리 사용량을 늘릴 수 있었습니다. mTLS를 사용하는 경우 호출자에게는 Sentry가 발급한 인증서가 필요했지만, 어떤 앱 ID와 네임스페이스든 사용할 수 있었습니다. 업그레이드 후에는 수신 사이드카가 이러한 호출에 대해 dapr_runtime_service_invocation_* 메트릭을 기록하지 않지만, 호출 사이드카는 계속 기록합니다.
원문 보기
## Security: A remote sidecar could grow another sidecar's metrics without bound with made-up app IDs
### Problem
For a gRPC call proxied from another sidecar, the receiving sidecar read the `dapr-app-id` header set by the caller and used it as the destination app ID label of its service invocation metrics.
### Impact
You were affected only if a sidecar has metrics enabled, which is the default, and receives proxied gRPC calls from other sidecars.
With mTLS enabled, the caller needs a certificate issued by Sentry, for any app ID and namespace.
Such a caller could send proxied calls with a different made-up app ID each time.
Each value added metric series in the receiving sidecar that were never released, growing its memory.
### Root Cause
The header describes the destination chosen by the local app, but it was also trusted on calls arriving from other sidecars.
### Solution
The header is now only used for calls made by the local app.
The receiving sidecar no longer records the `dapr_runtime_service_invocation_*` metrics for proxied gRPC calls that arrive from another sidecar. The calling sidecar still records them.
github.com/dapr/dapr/releases/tag/v1.19.3앱 간 워크플로 부모 검증 수정
한 앱이 다른 앱에서 시작될 예정인 자식 워크플로의 인스턴스 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.
github.com/dapr/dapr/releases/tag/v1.19.3Activity actor의 앱 간 결과와 reminder 차단
영향 대상앱 간 activity 호출 또는 저장된 activity reminder를 사용하는 멀티 앱 워크플로
이전에는 다른 앱의 activity를 호출할 수 있는 호출자가 그 결과를 같은 task ID를 기다리는 워크플로에 보낼 수 있었고, 워크플로는 해당 결과를 자체 결과로 받아들였습니다. 이제 목적지를 다른 앱으로 지정한 요청은 PermissionDenied로 거부하고, 출처를 다른 앱으로 지정한 저장된 reminder는 폐기합니다.
원문 보기
## 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.
github.com/dapr/dapr/releases/tag/v1.19.3AddWorkflowEvent에서 지원되지 않는 워크플로 이벤트 거부
영향 대상내부 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`.
github.com/dapr/dapr/releases/tag/v1.19.3다른 앱에서 전달된 액터 리마인더 거부
영향 대상전달된 리마인더를 받는 워크플로 또는 액티비티 액터
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`.
github.com/dapr/dapr/releases/tag/v1.19.3특정 actor 유형에 대한 Scheduler의 job 및 stream 거부
영향 대상||를 포함하거나 |로 끝나는 actor 유형의 Scheduler job 및 stream
이전에는 유효한 Dapr 애플리케이션이 이러한 actor 유형에 reminder를 만들 수 있었습니다. 이때 reminder의 키가 다른 actor 유형의 전달 접두사와 일치하면 reminder가 전달되지 않은 채 즉시 무한 재시도되어 Scheduler와 해당 actor 유형의 다른 사이드카에서 CPU를 계속 소모했습니다. 업그레이드 후에도 이러한 유형으로 이미 저장된 job은 계속 읽고 삭제할 수 있습니다.
원문 보기
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.
github.com/dapr/dapr/releases/tag/v1.19.3Scheduler의 애플리케이션 간 워크플로 리마인더 제한
영향 대상애플리케이션 간 Scheduler 리마인더의 대상인 워크플로 액터
이전에는 유효한 Dapr 아이덴티티를 가진 애플리케이션이 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.
github.com/dapr/dapr/releases/tag/v1.19.3사이드카 인젝터의 YAML 디코딩 결함 수정
영향 대상Dapr 사이드카 인젝터 웹훅 서비스
웹훅에 접근할 수 있는 워크로드는 앨리어스가 포함된 작은 YAML 문서를 보내 앨리어스를 확장시킬 수 있었습니다. 이 확장으로 인젝터가 중단될 만큼 메모리가 소모되어 새 파드에 Dapr 사이드카가 제공되지 않을 수 있었습니다. 이제 어드미션 요청은 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.
github.com/dapr/dapr/releases/tag/v1.19.3Placement의 스트림 종료 전 스트림 호출 취소
영향 대상사이드카가 연결된 Placement 서비스 배포
유효한 Dapr 아이덴티티를 가진 애플리케이션이 Placement에 직접 연결해 대규모 테이블 업데이트가 발생할 만큼 많은 actor 유형을 등록한 뒤 읽기를 멈추면, 애플리케이션이 스트림을 닫을 때 Placement가 완료될 수 없는 전송 작업을 기다리며 무기한 대기할 수 있었습니다. 그러면 모든 네임스페이스의 테이블 업데이트가 중단되어 actor 배치 변경 사항이 전파되지 않았습니다.
원문 보기
## Security: A sidecar that stopped reading could hang the Placement service for every namespace
### Problem
The Placement service sends placement table updates to each connected sidecar. When it closed the stream of a sidecar that had stopped reading, it waited for a send that could not complete.
### Impact
An application with a valid Dapr identity could connect to the Placement service directly, register enough actor types to make the table update large, and stop reading. When its stream was closed, the Placement service stopped processing table updates for all namespaces until the connection went away, so actor placement changes were not disseminated.
### Root Cause
The stream's loop was closed before the underlying call was cancelled, so a send blocked on flow control was never interrupted.
### Solution
The Placement service now cancels a stream's call before closing it.
github.com/dapr/dapr/releases/tag/v1.19.3HTTP 오류 응답 본문의 무제한 버퍼링 수정
영향 대상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.
github.com/dapr/dapr/releases/tag/v1.19.3정의되지 않은 응답 코드에 대한 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.
github.com/dapr/dapr/releases/tag/v1.19.3삭제 이벤트에서 시크릿을 더 이상 해석하지 않는 오퍼레이터
영향 대상Component 또는 HTTPEndpoint 리소스로 스코프를 지정한 앱
이전에는 참조하는 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.
github.com/dapr/dapr/releases/tag/v1.19.3워크플로 결과 서명자 검증 수정
영향 대상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.
github.com/dapr/dapr/releases/tag/v1.19.3변조된 이력이 있는 워크플로 재실행 차단
영향 대상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`.
github.com/dapr/dapr/releases/tag/v1.19.3https:// URL 직접 호출의 TLS 인증서 검증
영향 대상앱 프로토콜이 https 또는 h2c로 설정된 사이드카
추가 조치사설 인증 기관을 사용하는 서버의 경우 clientTLS.rootCA를 설정한 HTTPEndpoint 리소스
직접 https:// URL을 호출할 때(HTTPEndpoint 리소스는 제외), 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`.
github.com/dapr/dapr/releases/tag/v1.19.3QueryStateAlpha1 결과를 호출 애플리케이션의 키 접두사로 제한
영향 대상keyPrefix가 none, name 또는 사용자 지정 값으로 설정된 스토어는 제외하고, 여러 애플리케이션이 공유하는 쿼리 지원 스토어의 상태 쿼리 API
이 변경 전에는 공유 스토어에 쿼리를 실행하면 다른 애플리케이션이 기록한 일치하는 행도 반환됐습니다. 이제 페이지에 요청한 수보다 적은 행이 들어가거나 행이 하나도 없을 수 있지만, 다음 페이지를 가리키는 토큰은 계속 포함될 수 있습니다.
원문 보기
## 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.github.com/dapr/dapr/releases/tag/v1.19.3이제 완료된 워크플로 대체 전에 purge 권한을 확인하는 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.
github.com/dapr/dapr/releases/tag/v1.19.3워크플로 재실행 및 재귀 작업의 비자식 인스턴스 보호
영향 대상워크플로 재실행 및 재귀 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.
github.com/dapr/dapr/releases/tag/v1.19.3오퍼레이터 변환 웹훅의 대용량 요청으로 인한 자원 고갈 수정
영향 대상오퍼레이터의 변환 웹훅을 사용하는 설정
웹훅 포트에 접근할 수 있는 누구나 인증 없이 요청을 보낼 수 있었으며, 요청 크기에 비례해 메모리와 CPU를 소모해 오퍼레이터가 메모리 부족으로 중단될 수 있었습니다. 이제 웹훅은 7 MiB를 초과하는 요청 본문을 거부합니다.
원문 보기
## Security: The operator's conversion webhook read request bodies of any size
### Problem
The operator's conversion webhook, which takes requests without client authentication, read request bodies without a size limit.
### Impact
Anyone able to reach the webhook port of the operator could make it use memory and CPU in proportion to what they sent, until it was stopped for running out of memory. The operator serves every namespace.
### Root Cause
The size limit added to the sidecar injector's webhook was not applied to the operator's.
### Solution
The conversion webhook now refuses a request body over 7 MiB.
github.com/dapr/dapr/releases/tag/v1.19.3네임스페이스 간 액터 및 워크플로 호출 차단
영향 대상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.
github.com/dapr/dapr/releases/tag/v1.19.3Dapr gRPC 프록시의 내부 API 호출 차단
영향 대상자체 사이드카로 gRPC 요청을 보낼 수 있는 앱
이전에는 이런 요청을 사이드카의 아이덴티티로 릴레이했기 때문에 앱이 다른 앱의 사이드카에서 사이드카 간 내부 메서드를 호출할 수 있었습니다. 이제 이런 요청은 PermissionDenied로 실패합니다. 다른 앱의 gRPC 서비스로 프록시하는 호출에는 변경이 없습니다.
원문 보기
## Security: An app could send Dapr internal API calls through its sidecar's gRPC proxy
### Problem
An app can ask its sidecar to proxy a gRPC call to another app by setting the `dapr-app-id` header.
The sidecar relayed any method this way, including the methods of the internal API that sidecars use to talk to each other (`/dapr.proto.internals.*`).
The relayed call was made with the sidecar's own identity.
### Impact
You were affected only if an app can send gRPC requests to its own sidecar, which is the default.
An app could send an internal sidecar-to-sidecar call of its choosing to the sidecar of another app, as if its own sidecar had made it.
This is what made the two actor issues above reachable by an app that holds no Dapr identity of its own.
Proxied calls to the gRPC services of other apps are not changed by this fix.
### Root Cause
The gRPC proxy did not tell the internal API apart from the gRPC services of an app.
### Solution
The sidecar now refuses to proxy a method of the internal API for its app.
The call fails with `PermissionDenied` and the message `the Dapr internal API cannot be called through the gRPC proxy`.
github.com/dapr/dapr/releases/tag/v1.19.3앱 간 워크플로 인가 검사 적용
영향 대상다른 앱이 액세스하는 워크플로
추가 조치추가 설정 또는 구성 요소 없음
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.
github.com/dapr/dapr/releases/tag/v1.19.3인스턴스가 없는 워크플로 시작 이벤트의 저장 전 거부
영향 대상내부 API를 다른 앱이 호출할 수 있는 사이드카
이전에는 워크플로 인스턴스가 없는 시작 이벤트나 인스턴스가 없는 부모를 둔 시작 이벤트가 저장될 수 있었습니다. 저장된 워크플로를 제거할 때까지, 이를 실행하거나 사이드카를 재시작할 때마다 사이드카가 충돌할 수 있었습니다.
원문 보기
## Security: A malformed workflow start request could crash the sidecar hosting the workflow
### Problem
A request to start a workflow carries a start event which names the workflow instance.
The workflow actor stored a start event which did not name an instance, or which named a parent workflow without an instance.
### Impact
Another app able to call the target sidecar's internal API could send such a request. The target sidecar crashed when it ran the stored workflow, and crashed again each time it restarted and picked the workflow up, until the stored workflow was removed.
### Root Cause
The start event was only checked for its type before it was stored. The workflow engine reads the missing instance without checking for it.
### Solution
A start request whose start event has no workflow instance, or whose parent has none, is now refused before anything is stored.
github.com/dapr/dapr/releases/tag/v1.19.3위조 요청을 이용한 플러그형 컴포넌트 정보 노출 수정
영향 대상어노테이션된 컴포넌트 컨테이너에 dapr.io/inject-pluggable-components를 사용하는 Kubernetes 구성
추가 조치인젝터가 ReplicaSet, StatefulSet, DaemonSet, Job, ReplicationController 리소스에 대한 get 권한을 갖도록 Helm 차트와 인젝터 이미지를 함께 업그레이드해야 합니다.
이 변경 전에는 인젝터에 접근할 수 있는 워크로드가 요청을 위조해 다른 네임스페이스의 어노테이션된 컴포넌트 컨테이너 spec을 받아볼 수 있었습니다. 네임스페이스를 비워 두면 모든 네임스페이스의 spec이 노출될 수도 있었습니다. 이제 인젝터는 빈 네임스페이스를 거부하고, Components를 읽기 전에 지원되는 컨트롤러 소유자가 존재하는지 확인한 뒤 요청된 네임스페이스에서 UID가 일치하는지 검증합니다. 그런 소유자가 없는 파드도 거부합니다. 컴포넌트 컨테이너의 리터럴 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`.
github.com/dapr/dapr/releases/tag/v1.19.3와일드카드 pub/sub 토픽 제한 우회 수정
영향 대상와일드카드 구독을 지원하고 protectedTopics, allowedTopics 또는 subscriptionScopes를 사용하는 공유 pub/sub 컴포넌트
이전에는 보호된 토픽에 대한 scope가 없는 앱도 일치하는 와일드카드 구독을 통해 메시지를 받거나, Pulsar에서는 구독의 topicsPattern 메타데이터를 통해 메시지를 받을 수 있었습니다. 이제 세 설정 중 하나가 적용되면 topicsPattern 메타데이터가 있는 구독은 거부됩니다. 제한 대상 와일드카드 구독도 해당 앱의 subscriptionScopes에 정확히 일치하는 토픽 문자열이 등록되어 있지 않으면 거부됩니다. 보호된 토픽에서 온 메시지가 다른 토픽을 구독하는 곳에 도달하면, 해당 앱에 보호된 토픽에 대한 scope가 없는 한 메시지를 버립니다. 컴포넌트 메타데이터의 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.
github.com/dapr/dapr/releases/tag/v1.19.3서비스 호출, 스트리밍, pub/sub 처리 중 사이드카 패닉 수정
영향 대상내부 서비스 호출 또는 actor 요청, HTTP text/event-stream 서비스 호출, 또는 rawPayload가 아닌 pub/sub 구독을 처리하는 사이드카
이전에는 서비스 호출이나 actor 요청의 메타데이터 값이 비어 있는 경우, Accept: text/event-stream을 사용한 서비스 호출에 HTTP 프로토콜 앱이 성공 응답을 반환하는 경우, 트레이싱 메타데이터가 있는 pub/sub 본문이 null인 경우에 패닉이 발생해 사이드카가 중단될 수 있었습니다. 이제 이러한 입력으로 설명한 패닉이 발생하지 않습니다. 빈 메타데이터 항목은 건너뛰고, 응답이 누락됐는지 확인하며, null 본문은 트레이싱 필드와 함께 전달합니다.
원문 보기
## Security: A sidecar could be crashed by another sidecar or by a published message
### Problem
Three inputs that a sidecar receives from outside made it panic, which stops the process:
- a service invocation or actor request from another sidecar whose metadata had an entry with no values (for example an empty `content-type`);
- a service invocation request from another sidecar with the header `Accept: text/event-stream`, for an app that uses the HTTP protocol and answered with a success status;
- a pub/sub message whose body is the JSON value `null` and which carries tracing metadata, delivered to a subscription that does not use `rawPayload`.
### Impact
Another application with a valid Dapr identity, calling the target sidecar's internal API directly, could stop the target sidecar with a single request and repeat it after each restart. An application allowed to publish to a topic could stop the sidecars subscribed to that topic the same way, with components that carry publish metadata to the subscriber.
### Root Cause
The first element of a metadata value list was read without checking that the list was not empty. The HTTP app channel returned no response for a server-sent events request even when the caller had not asked to receive a stream, and callers used the missing response. A `null` message body decodes to an empty value into which the tracing fields were then written.
### Solution
Metadata entries with no values are skipped. The app channel only returns no response when it has streamed the body to the caller, and the internal invocation handler checks for a missing response. A `null` message body is delivered as before, with its tracing fields.
github.com/dapr/dapr/releases/tag/v1.19.3외부 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
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
github.com/dapr/dapr/releases/tag/v1.19.3교차 출처 HTTPEndpoint 리디렉션에서 설정된 헤더 제거
영향 대상HTTPEndpoint를 사용하는 설정(추정)
이전에는 사이드카의 HTTP 클라이언트가 Authorization과 Cookie만 제거했기 때문에, 리디렉션된 요청이 설정된 헤더를 다른 호스트로 보낼 수 있었습니다. 이제 리디렉션으로 엔드포인트 기본 URL의 스킴이나 호스트를 벗어나면 사이드카가 설정된 헤더를 제거합니다.
원문 보기
## HTTPEndpoint headers were sent to other hosts on a redirect
### Problem
The headers configured on an `HTTPEndpoint` resource, which often carry credentials for the endpoint, are added to every request to it. When the endpoint answered with a redirect to another host, the sidecar followed it and sent the same headers there.
### Impact
If the endpoint's host redirects to a different origin on an invoked path, that origin received the endpoint's configured headers.
### Root Cause
The HTTP client's default redirect handling only removes the `Authorization` and `Cookie` headers.
### Solution
The headers configured on an `HTTPEndpoint` are now removed when a redirect leaves the scheme and host of the endpoint's base URL.
github.com/dapr/dapr/releases/tag/v1.19.3빈 ScheduleJob 요청으로 인한 Scheduler 크래시 수정
영향 대상유효한 Dapr 아이덴티티와 Scheduler 직접 액세스 권한이 있는 애플리케이션 및 Scheduler가 전달하는 잡, 액터 리마인더 또는 워크플로 타이머를 사용하는 워크로드
잡이 없는 ScheduleJob 요청으로 Scheduler가 크래시했으며, 유효한 아이덴티티와 Scheduler 직접 액세스 권한이 있는 애플리케이션이 이 크래시를 유발할 수 있었습니다. Scheduler가 중단된 동안에는 모든 애플리케이션의 잡, 액터 리마인더, 워크플로 타이머가 전달되지 않았습니다. 이제 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
github.com/dapr/dapr/releases/tag/v1.19.3Scheduler의 실패한 WatchJobs 등록 격리
영향 대상유효한 Dapr identity로 Scheduler에 직접 접근하는 애플리케이션
actor-reminder WatchJobs 요청에 actor type이 없으면 등록이 실패했고, 이전에는 해당 Scheduler 인스턴스의 모든 스트림이 폐기되어 job, reminder, workflow timer 전달이 중단됐습니다. 이제 등록 실패는 해당 스트림에만 영향을 줍니다. 전달할 수 있는 job type을 하나도 허용하지 않는 요청은 설명이 포함된 오류와 함께 거부됩니다.
원문 보기
## Security: One invalid WatchJobs request restarted the Scheduler server for every namespace
### Problem
A sidecar opens a `WatchJobs` stream to the Scheduler to receive its jobs and reminders.
A stream which asked for actor reminders without naming any actor type could not be registered, and that failure stopped the whole connection pool of the Scheduler instance rather than the one stream.
### Impact
Any application with a valid Dapr identity that could reach the Scheduler directly could send such a request. Every stream of every namespace on that Scheduler instance was dropped and had to reconnect, and repeating the request kept job, reminder and workflow timer delivery interrupted. Sidecars never send such a request themselves.
### Root Cause
An error while registering one stream was returned from the loop which serves all the streams of its namespace, and the loop treated it as fatal for the pool.
### Solution
A stream which fails to register is now closed on its own, and the other streams are not affected. A `WatchJobs` request which accepts no deliverable job type is refused with an error that says why.
github.com/dapr/dapr/releases/tag/v1.19.3Scheduler 라우팅 테이블 재구성을 다음 사용 시점까지 지연
유효한 Dapr 아이덴티티를 가진 애플리케이션이 호스트 주소가 서로 다른 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.
github.com/dapr/dapr/releases/tag/v1.19.3클러스터 뷰 변경 시에만 대기 큐를 비우는 Scheduler
영향 대상동시성 제한을 기다리는 트리거가 많은 네임스페이스
유효한 Dapr 아이덴티티를 가진 애플리케이션이 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.
github.com/dapr/dapr/releases/tag/v1.19.3Scheduler의 애플리케이션 간 액티비티 결과 리마인더 제한
영향 대상같은 네임스페이스의 워크플로 액터에 설정된 애플리케이션 간 액티비티 결과 리마인더
유효한 Dapr 아이덴티티를 가진 애플리케이션이 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
### Solution
github.com/dapr/dapr/releases/tag/v1.19.3워크플로 이벤트가 아닌 리마인더 확인 응답 및 폐기
영향 대상리마인더를 처리하는 워크플로 액터(추정)
워크플로 액터가 읽을 수 없는 페이로드가 담긴 리마인더를 받으면 오류를 반환했고, 해당 리마인더는 무한히 재시도됐습니다. 이제 페이로드가 워크플로 이벤트가 아닌 리마인더는 확인 응답한 뒤 폐기합니다.
원문 보기
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.
github.com/dapr/dapr/releases/tag/v1.19.3Scheduler의 placement 리더 광고 대기 시간 제한
영향 대상--placement-enabled를 사용하는 Scheduler
이전 릴리스에서는 유효한 Dapr 아이덴티티를 가진 애플리케이션이 새 placement 주소를 계속 보고하면, 아직 리더를 광고하지 않은 Scheduler가 placement 리더를 광고할 때까지 계속 기다리게 할 수 있었습니다. 이제 대기는 두 차례의 refresh 라운드 후 종료되므로, 새 주소를 보고해도 대기 시간이 무한정 늘어나지 않습니다.
원문 보기
## 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.
github.com/dapr/dapr/releases/tag/v1.19.3Scheduler placement 라운드 재스캔 감소
영향 대상--placement-enabled가 설정된 Dapr Scheduler
유효한 Dapr 아이덴티티를 가진 애플리케이션이 라운드에 확인 응답하지 않은 채 액터 유형을 많이 보고하면, 새 라운드가 시작될 때마다 아직 진행 중인 라운드에 포함된 대기 중 액터 유형을 다시 스캔해 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
github.com/dapr/dapr/releases/tag/v1.19.3사이드카 인젝터의 볼륨 조회 및 경고 출력 제한
영향 대상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.
github.com/dapr/dapr/releases/tag/v1.19.3무제한 요청으로 인한 사이드카 인젝터 메모리 고갈 수정
영향 대상사이드카 인젝터 서비스에 연결할 수 있는 워크로드 또는 클라이언트
이전에는 인젝터에 연결할 수 있는 발신자가 매우 큰 요청을 보내거나 요청을 시작한 뒤 전송을 멈춰 인젝터 메모리를 고갈시킬 수 있었습니다. 이때 인젝터가 중단되면 새 파드에 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.
github.com/dapr/dapr/releases/tag/v1.19.3Sentry Kubernetes 클라이언트 측 rate limit 제거
영향 대상Kubernetes에서 실행되는 Sentry 배포
Sentry의 gRPC 포트에 접근할 수 있는 워크로드는 잘못된 토큰으로 인증서 요청을 지속적으로 보내 인증 전에 클라이언트 측 rate limit을 소진할 수 있었습니다. 이로 인해 정상적인 사이드카 및 컨트롤 플레인 요청이 시작 시와 갱신 시 거부될 수 있었습니다. Kubernetes API 서버 자체의 요청 제한은 계속 적용됩니다.
원문 보기
## Security: Sentry certificate issuance could be delayed by unauthenticated requests on Kubernetes
### Problem
On Kubernetes, Sentry validates the token of each certificate request with a `TokenReview` call to the Kubernetes API server.
The Kubernetes client Sentry uses for these calls was limited to 5 requests per second, and every incoming certificate request took a slot of that limit before the request was authenticated.
### Impact
Any workload able to reach the Sentry gRPC port could send a steady stream of certificate requests with invalid tokens and use up the limit. Certificate requests from legitimate sidecars and control plane services were then refused, at startup and at renewal, for as long as the stream of requests continued.
### Root Cause
The setting which removes the client-side rate limit was applied after the `TokenReview` client had been created, so that client kept the default limit.
### Solution
The client-side rate limit is now removed before any Kubernetes client is created. The Kubernetes API server's own request limits still apply.
github.com/dapr/dapr/releases/tag/v1.19.3HTTP 서버 셧다운 시간 초과 후에도 계속되는 컨트롤 플레인 자격 증명 리로드
영향 대상healthz, metrics 또는 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.
github.com/dapr/dapr/releases/tag/v1.19.3Placement 네임스페이스 종료 처리로 다른 네임스페이스가 더는 지연되지 않음
영향 대상마지막 사이드카가 연결을 끊을 수 있는 Placement 서비스 네임스페이스(추정)
이전에는 유효한 Dapr 아이덴티티를 가진 애플리케이션이 네임스페이스의 유일한 멤버로 직접 연결해 많은 보고를 큐에 넣은 뒤 연결을 끊을 수 있었습니다. 이로 인해 다른 네임스페이스에 대한 서비스가 몇 초 이상 지연될 수 있었고, 이를 반복하면 actor placement 변경 사항이 전파되지 않을 수 있었습니다. 이제 종료 처리는 백그라운드에서 진행되며, 같은 네임스페이스의 새 인스턴스는 이전 인스턴스의 처리가 끝날 때까지 기다립니다.
원문 보기
## Security: Removing one namespace could stall the Placement service for every namespace
### Problem
When the last sidecar of a namespace disconnects, the Placement service removes that namespace's state. It did so while holding up the processing of all other namespaces until every queued event of the removed namespace had been handled.
### Impact
An application with a valid Dapr identity could connect to the Placement service directly as the only member of its namespace, queue a large number of reports, and disconnect. The Placement service then stopped serving the other namespaces for seconds or longer, and repeating this kept actor placement changes from being disseminated.
### Root Cause
The teardown of a namespace ran on the loop which serves all namespaces.
### Solution
A namespace is now torn down in the background. A new instance for the same namespace waits for the previous one to finish.
github.com/dapr/dapr/releases/tag/v1.19.3raft에 연결을 넘기기 전 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.
github.com/dapr/dapr/releases/tag/v1.19.3종료 Pod로 인해 이전 Configuration이 계속 읽히는 문제 방지
영향 대상다른 Configuration으로 옮긴 앱
이전 Configuration을 어노테이션으로 가진 채 남은 종료 Pod가 있으면, 앱 ID가 해당 Configuration과 그 Configuration이 참조하는 시크릿을 계속 읽을 수 있었습니다. 오퍼레이터는 이제 앱이 읽을 수 있는 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.
github.com/dapr/dapr/releases/tag/v1.19.3배치 변경 중 워크플로 액티비티 재스캔 수정
영향 대상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.
github.com/dapr/dapr/releases/tag/v1.19.3스트리밍 구독의 중복 ID 이벤트 전달 순서 수정
영향 대상이벤트를 동시에 전달하는 컴포넌트의 스트리밍 구독 (SubscribeTopicEventsAlpha1)
퍼블리셔가 중복 이벤트 ID를 선택하고, 같은 ID를 가진 이벤트 두 개가 한 스트림에서 동시에 전달되면 나중 이벤트가 먼저 전달된 이벤트의 대기 중인 확인 응답을 가로챌 수 있었습니다. 그 결과 먼저 전달된 이벤트는 확인되지 않은 상태로 남고, 컴포넌트 워커가 점유된 채 다른 전달이 타임아웃까지 대기할 수 있었습니다. 이제 나중 이벤트는 먼저 전달된 이벤트 처리가 끝날 때까지 기다린 뒤 전송됩니다.
원문 보기
## Two streaming subscription deliveries with the same event ID could leave one stuck
### Problem
With streaming subscriptions (`SubscribeTopicEventsAlpha1`), the application acknowledges an event by its ID. When two events with the same ID were being delivered on one stream at the same time, the second took over the first one's place and the first never received its acknowledgement.
### Impact
A publisher choosing duplicate event IDs could leave deliveries waiting until their timeout, holding the component's workers for that time. This affected components which deliver concurrently.
### Root Cause
Pending acknowledgements were tracked per event ID with no handling for two in flight at once.
### Solution
A delivery now waits for an earlier delivery with the same ID on the same stream to finish before it is sent.
github.com/dapr/dapr/releases/tag/v1.19.3gRPC 프록시 콜백 접근 우회 수정
영향 대상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.
github.com/dapr/dapr/releases/tag/v1.19.3Dapr 사이드카의 잘못된 상태 코드 처리 수정
영향 대상URL 또는 HTTPEndpoint 리소스를 통한 HTTP 호출, 잡 트리거 응답, gRPC 애플리케이션을 호출하는 HTTP 클라이언트
이번 릴리스 전에는 HTTP/2에서 100 미만 또는 999 초과 상태 코드가 http:// 또는 https:// URL, HTTPEndpoint 리소스, 또는 애플리케이션의 잡 트리거 응답으로 반환되면 사이드카가 중단될 수 있었습니다. gRPC 애플리케이션이 999 초과 상태 코드로 호출을 실패시키면 HTTP 호출자의 연결이 끊길 수 있었습니다. 이제 이러한 응답은 거부되고 호출자에게 500 오류가 반환됩니다.
원문 보기
## Security: A sidecar could be crashed by a response with an invalid status code
### Problem
A sidecar stopped when a server it called answered with a status code that cannot be written to an HTTP response.
### Impact
- A server invoked by `http://` or `https://` URL, or through an `HTTPEndpoint` resource, could stop the calling sidecar by answering with a status code below 100 (or above 999 over HTTP/2). The server needs no Dapr identity. The same applied to the application's own response to a job trigger.
- A gRPC application failing an invocation with a status code above 999 dropped the connection of an HTTP caller instead of returning an error.
### Root Cause
The status code received was written to the response without checking it. Writing a code outside 100 to 999 panics.
### Solution
A response with such a status code is now refused, and the caller receives a `500` error.
github.com/dapr/dapr/releases/tag/v1.19.3퍼블릭 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.
github.com/dapr/dapr/releases/tag/v1.19.3잘못된 트레이스 컨텍스트로 인한 워크플로 엔진 중단 방지
영향 대상트레이스 컨텍스트가 포함된 워크플로 시작 및 액티비티 디스패치
빈 트레이스 플래그 필드로 끝나는 traceparent가 포함된 요청을 처리하면 사이드카가 중단됐고, 저장된 요청 때문에 재시작할 때마다 사이드카가 다시 중단됐습니다. 이제 트레이스 컨텍스트를 파싱할 수 없으면 워크플로 또는 액티비티가 부모 트레이스 없이 실행됩니다.
원문 보기
## Security: A workflow start with an empty trace flags field could crash the sidecar
### Problem
A workflow start request, or an activity dispatch, whose `traceparent` ended in an empty trace flags field (`00-<trace-id>-<span-id>-`) stopped the sidecar when it was processed.
### Impact
Another application allowed to schedule a workflow or activity on the target could stop its sidecar. The request was stored before it was processed, so the sidecar stopped again on each restart.
### Root Cause
The workflow engine read the first byte of the decoded trace flags without checking that there was one.
### Solution
A trace context the workflow engine cannot parse is now dropped when the workflow or activity is received, and it runs without a parent trace.
github.com/dapr/dapr/releases/tag/v1.19.3애플리케이션 간 사이드카 워크플로 실행 제한
영향 대상같은 네임스페이스의 다른 애플리케이션이 접근할 수 있는 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.
github.com/dapr/dapr/releases/tag/v1.19.3