Clarify Principal Attribution vs application identity propagation and execution authorization

オープン 初心者向け
#5,451 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Duncanma がすでに取り組んでいます。

2026年11月23日 から。

  • #5796 @Duncanma による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript
領域
documentation

調査の方向性

まず Principal Attribution と Context Propagation のドキュメントページを読み、次にアイデンティティと認可スコープに関する説明を比較してください。履歴上の帰属と伝播されたアプリケーションアイデンティティは、後続の Activity の副作用に対する現在の認可を保証しないことを明確にする、簡潔な注記または相互リンクを追加してください。両方のトピックでこの違いが明確になり、Temporal が Activities を自動的に再認可すると誤解させない状態になれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Temporal now documents several adjacent identity/security mechanisms that are easy to mentally collapse:

  • Authorizer / ClaimMapper decide whether incoming Temporal API calls are allowed.
  • Principal Attribution can stamp the Principal returned by the Authorizer onto Event History events.
  • Context Propagation / Interceptors can carry application metadata such as user/tenant/auth values across Client -> Workflow -> Activity boundaries.

For long-running workflows and agent-style execution, I think it would help to document one explicit non-equivalence:

Principal Attribution
!= application identity propagation
!= current authorization for an external Activity side effect

Example:

user U starts a workflow at t1
-> history is attributed to U
-> U is propagated in app context
-> workflow waits/retries
-> U loses permission at t2
-> a side-effecting Activity attempt runs at t3

The historical Principal and propagated application identity can both remain U, while the application's current authorization at t3 may have changed.

I am not suggesting Temporal should automatically re-authorize every Activity or that current behavior is insecure. This is mainly a scope/documentation question: does Principal Attribution intentionally mean only audit attribution of Temporal API/history events, with business/tool authorization continuity remaining application-defined?

If yes, a short cross-link/note near Principal Attribution and Context Propagation could prevent users building durable agents from treating an attributed Principal as an end-to-end authorization guarantee.

I wrote the distinction out in a source/docs-reviewed note here:

https://github.com/hippoley/ClawManager/blob/main/docs/notes/temporal-principal-attribution-vs-execution-authority.md

Given the recent focus on agent security / identity propagation, this seems like a useful boundary to make explicit before stronger execution-authorization semantics are added.

主要言語
JavaScript
スター
177
フォーク
339
平均マージ
2日 8時間
マージ済み PR(30日)
194

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

temporalio/documentation のほかの issue

temporalio/documentation の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。