Kubernetes 오퍼레이터의 리소스 스코프 검사 수정
highHTTPEndpoint, MCPServer 또는 Configuration 리소스가 참조하는 Kubernetes 시크릿 로테이션Kubernetes 네임스페이스의 Dapr 사용 설정 Pod는 해당 네임스페이스의 앱 ID에 대한 워크로드 아이덴티티로 오퍼레이터에 직접 접근해 다른 앱의 스코프 적용 리소스를 읽을 수 있었습니다. 여기에는 Kubernetes 시크릿에 저장된 값도 포함됩니다. 이제 오퍼레이터는 시크릿을 해석하기 전에 스코프를 검사하고, 스코프 밖의 resiliency 리소스는 찾을 수 없음으로 반환합니다. 또한 GetConfiguration은 호출 Pod의 dapr.io/config 어노테이션에 지정된 구성으로 제한됩니다. 인젝터를 사용하지 않고 --config를 지정하는 daprd는 enabled, 앱 ID, config 어노테이션과 앱 ID 레이블이 지정되어 있고 daprd 컨테이너를 포함한 Pod에서 실행해야 합니다.
원문 보기
In Kubernetes mode, the Dapr operator returned HTTPEndpoint and MCPServer resources to every Dapr-enabled pod in the namespace, with their Kubernetes secret references resolved to plaintext, regardless of the resources' `scopes`. `GetConfiguration` returned any Configuration in the namespace by name, with secret OpenTelemetry headers resolved. `ListResiliency`, `GetResiliency`, `ListSubscriptions` and `ListWorkflowAccessPolicy` also ignored `scopes`, although they carry no secrets. Any workload that can obtain a Dapr workload identity for an app ID in a namespace, which includes every Dapr-enabled pod in that namespace, could call the operator directly and read: Only values stored in the Kubernetes secret store (the default) were disclosed, because the operator resolves only those. Resources in other namespaces were not exposed. Sidecars already ignored resources not scoped to their app ID, so applications behaved correctly; the problem was what the operator sent to them. If untrusted workloads share a namespace with scoped HTTPEndpoint, MCPServer or Configuration resources, rotate the Kubernetes secrets those resources reference. The operator now skips resources whose `scopes` do not include the calling app ID before resolving any secret, and `GetResiliency` reports them as not found. `GetConfiguration` only serves the configuration named in the `dapr.io/config` annotation of one of the calling app's pods. A daprd run in Kubernetes mode without the injector, with `--config`, must now be in a pod with the `dapr.io/enabled: "true"`, `dapr.io/app-id` and `dapr.io/config` annotations and the `dapr.io/app-id` label, and its container must be named `daprd`.github.com/dapr/dapr/security/advisories/GHSA-99h8-29cw-6j59
Users running Dapr on Kubernetes are encouraged to upgrade to `1.19.0`, `1.18.9` or `1.17.18`.github.com/dapr/dapr/security/advisories/GHSA-99h8-29cw-6j59