Clarify Principal Attribution vs application identity propagation and execution authorization

Abierto Apto para principiantes
#5,451 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@Duncanma ya está trabajando en esto.

Desde el 23/11/2026.

  • #5796 de @Duncanma — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
70/100
Tipo de issue
Documentación
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript

Línea de trabajo

Empieza leyendo las páginas de documentación de Principal Attribution y Context Propagation y, después, compara sus descripciones de la identidad y el alcance de la autorización. Añade una nota concisa o un enlace cruzado que aclare que la atribución histórica y la identidad de aplicación propagada no garantizan una autorización vigente para un efecto secundario posterior de una Activity. La tarea estará terminada cuando ambos temas dejen clara esta distinción sin dar a entender que Temporal vuelve a autorizar automáticamente las Activities.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
JavaScript
Estrellas
177
Forks
339
Merge medio
2 d 8 h
PR fusionados (30 d)
194

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de temporalio/documentation

Todos los issues de temporalio/documentation

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.