Clarify Principal Attribution vs application identity propagation and execution authorization

Open Beginner friendly
#5,451 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Duncanma is already working on this.

Since Nov 23, 2026.

  • #5796 by @Duncanma — open

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:

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.

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from temporalio/documentation

All issues in temporalio/documentation

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.