Clarify Principal Attribution vs application identity propagation and execution authorization

Đang mở Phù hợp với người mới
#5,451 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Duncanma đang làm issue này rồi.

Từ ngày 23/11/2026.

  • #5796 của @Duncanma — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
70/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
documentation

Hướng nghiên cứu

Bắt đầu bằng cách đọc các trang tài liệu Principal Attribution và Context Propagation, sau đó so sánh mô tả của chúng về danh tính và phạm vi ủy quyền. Thêm một ghi chú ngắn gọn hoặc liên kết chéo để làm rõ rằng việc quy thuộc lịch sử và danh tính ứng dụng được truyền tải không đảm bảo quyền ủy quyền hiện tại cho một tác dụng phụ của Activity xảy ra sau đó. Hoàn thành khi cả hai chủ đề đều làm rõ sự khác biệt này mà không ngụ ý Temporal tự động cấp quyền lại cho Activities.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
JavaScript
Star
177
Fork
339
Merge trung bình
2 ngày 8 giờ
Pull request đã merge (30 ngày)
194

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của temporalio/documentation

Tất cả issue của temporalio/documentation

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.