RATATOSK
← リリース一覧

Daprv1.17.18

セキュリティ 5

Daprの通知を受け取る

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

セキュリティ5high1

Kubernetes オペレーターのリソーススコープ適用の修正

high
影響対象リリースノートに記載なし
追加の対応信頼されていないワークロードが同じ名前空間を共有する場合における、スコープ付き HTTPEndpoint、MCPServer、または Configuration リソースが参照する Kubernetes シークレットのローテーション

Kubernetes 名前空間内の Dapr を有効にしたポッドは、その名前空間内のアプリ ID に対応するワークロード IDを使ってオペレーターに直接アクセスし、Kubernetes シークレットに保存された値を含む、他のアプリのスコープ付きリソースを読み取ることができました。オペレーターはシークレットを解決する前にスコープを確認するようになり、スコープ外の回復性リソースは見つからないものとして返します。また、GetConfiguration で取得できるのは、呼び出し元ポッドの dapr.io/config アノテーションで指定された構成に限られます。インジェクターを使わず --config を指定する daprd は、指定された有効化、アプリ ID、構成の各アノテーションとアプリ ID ラベルがあり、daprd コンテナーを含むポッドで実行する必要があります。

原文を表示
セキュリティアドバイザリ
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

呼び出し元アプリに対する Kubernetes GetConfiguration アクセス制限

影響対象Kubernetes モードの GetConfiguration 呼び出し元、および Injector を使用せず --config を指定して実行する daprd プロセス

以前は、アプリに割り当てられていない構成を名前で要求すると取得でき、その OpenTelemetry ヘッダー内のシークレット参照も平文に解決された状態で返されることがありました。現在は、その構成がアプリのいずれかの Pod の dapr.io/config アノテーションに指定されていない限り、要求は PermissionDenied を返します。Injector を使用せず --config を指定して実行する daprd の場合、Pod に dapr.io/enabled: "true"、dapr.io/app-id、dapr.io/config の各アノテーションと dapr.io/app-id ラベルが必要です。また、コンテナ名は daprd でなければなりません。これらの条件を満たさない場合、起動に失敗します。

原文を表示
`GetConfiguration` returned any Configuration in the namespace by name, with secret references in its OpenTelemetry headers resolved, whichever configuration the calling app was assigned.
It could also read secret OpenTelemetry headers of Configurations assigned to other apps.
`GetConfiguration` trusted the configuration name sent by the sidecar.
`GetConfiguration` only returns the configuration named in the `dapr.io/config` annotation of one of the calling app's pods, and returns `PermissionDenied` otherwise. The operator reads the app's pods from the Kubernetes API, selected by the `dapr.io/app-id` label.
A daprd you run in Kubernetes mode without the injector, with `--config`, must 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` so the injector does not add a second one.
Otherwise the operator refuses the configuration and daprd fails to start.
github.com/dapr/dapr/releases/tag/v1.17.18

Operator API のリソーススコープによるフィルタリングの修正

影響対象Kubernetes モードの Dapr

これまでは、呼び出し元のアプリ ID がリソースの scopes に含まれていない場合でも、ListResiliency、GetResiliency、ListSubscriptions がリソース定義を返していました。今後はそのようなリソースはスキップされ、GetResiliency では見つからないものとして報告されます。

原文を表示
`ListResiliency`, `GetResiliency` and `ListSubscriptions` also ignored `scopes`. These APIs do not resolve or return secrets, so only the resource definitions were exposed.
These operator APIs checked that the caller's identity was in the requested namespace, but did not compare the caller's app ID with each resource's `scopes`, as `ListComponents` and the resource update streams already did.
The operator now skips resources whose `scopes` do not include the calling app ID before it resolves any secret, and `GetResiliency` reports them as not found.
github.com/dapr/dapr/releases/tag/v1.17.18

Kubernetes HTTPEndpoint のシークレット漏えい修正

影響対象他のアプリにスコープされた HTTPEndpoint リソースを含む Kubernetes 名前空間の Dapr

以前は、ListHTTPEndpoints が呼び出し元の名前空間にあるすべての HTTPEndpoint リソースを返し、他のアプリの Kubernetes シークレット参照を平文に解決していました。その結果、認証トークンや TLS マテリアルなどの認証情報が漏えいする可能性がありました。現在、オペレーターはシークレットを解決する前に、呼び出し元のアプリ ID にスコープされていないリソースを除外します。

原文を表示
In Kubernetes mode, the operator's `ListHTTPEndpoints` API returned every HTTPEndpoint in the caller's namespace, including those scoped to other apps, with their Kubernetes secret references resolved to plaintext values.
Any workload able to get a Dapr workload identity for an app ID in a namespace, which includes every Dapr-enabled pod, could call the operator directly and read the credentials of HTTPEndpoint resources scoped to other apps in that namespace.
This covers header values such as `Authorization` tokens, and client TLS certificates, private keys and root CAs.
Only values from the Kubernetes secret store (the default) were disclosed, because the operator resolves only those. 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.
github.com/dapr/dapr/releases/tag/v1.17.18

Kubernetes の GetConfiguration をアプリに割り当てられた設定に制限

影響対象GetConfiguration を使用する Kubernetes デプロイメント

以前は、オペレーターがサイドカーから渡された名前を信頼していたため、別のアプリの設定を返す可能性がありました。これには、OpenTelemetry ヘッダー内で解決されたシークレット参照も含まれます。現在は、呼び出し元アプリの Pod の dapr.io/config アノテーションで指定された設定のみを返し、それ以外の設定へのリクエストには PermissionDenied を返します。

原文を表示
`GetConfiguration` returned any Configuration in the namespace by name, with secret references in its OpenTelemetry headers resolved, whichever configuration the calling app was assigned.
It could also read secret OpenTelemetry headers of Configurations assigned to other apps.
`GetConfiguration` trusted the configuration name sent by the sidecar.
### Solution
`GetConfiguration` only returns the configuration named in the `dapr.io/config` annotation of one of the calling app's pods, and returns `PermissionDenied` otherwise. The operator reads the app's pods from the Kubernetes API, selected by the `dapr.io/app-id` label.
github.com/dapr/dapr/releases/tag/v1.17.18

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