Clarify Principal Attribution vs application identity propagation and execution authorization
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- documentation
Research direction
Start by reading the Principal Attribution and Context Propagation documentation pages, then compare their descriptions of identity and authorization scope. Add a concise note or cross-link clarifying that historical attribution and propagated application identity do not guarantee current authorization for a later Activity side effect. Done when both topics make this distinction clear without implying Temporal automatically re-authorizes Activities.
Written by the indexing model from the issue text.
Description
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:
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.
- Dominant language
- JavaScript
- Stars
- 177
- Forks
- 339
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 194
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from temporalio/documentation
-
Document that Search Attributes on Standalone Activity start are not billed as additional ActionsOpen
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
temporalio/documentation#5883 ·
Maintainers usually reply within 1 day
-
Add automated TRU management to the Temporary Rate Limit Increases guidePossibly taken @Duncanma claimed this 10 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
temporalio/documentation#5764 ·
Maintainers usually reply within 1 day
-
User lifecycle management clarificationsPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
temporalio/documentation#5702 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
temporalio/documentation#5274 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
temporalio/documentation#5817 · 1 comment ·
Maintainers usually reply within 1 day
All issues in temporalio/documentation
Similar issues
-
area-integrations
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Trac-Systems/main_settlement_bus#1071 ·
Maintainers usually reply within 1 day
-
Bug kind/bug pulumi/pulumi R1 S1
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Stanley03-arch/Rabbit#15 ·
Maintainers usually reply within 1 day