Don't seal compute provider and scaler details on worker deployment calls

Đang mở
#334 1 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

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

Từ ngày 3/12/2026.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
backend, security

Hướng nghiên cứu

Start in internal/proxy/codec.go, where request payloads are sealed and search attributes are exempted. Trace how the codec identifies payload fields and their parent messages, then check the proto definitions for ComputeProvider.details and ComputeScaler.details. Add the field-specific exemption and document it; done means those details pass through unsealed in both directions while other payload fields remain sealed.

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

Mô tả

enhancement good first issue

Problem

temporal.api.compute.v1.ComputeProvider.details and ComputeScaler.details are payloads the server has to read. The proto docs say so directly:

For server-implemented providers, use the SDK's default content converter to ensure the server can understand it.

(ComputeScaler.details says the same for server-implemented scalers.)

Temporal proxy, with encryption enabled, seals every payload in a request except search attributes (SkipSearchAttributes: true in internal/proxy/codec.go). So when a worker deployment version's compute config goes through the proxy, these fields reach the server sealed. The server's worker deployment workflows then hand them to the worker controller, which can't decode them. Auto-scaled (serverless) workers stop working, with no error at the proxy.

Some examples of calls with a ComputeConfig:

  • CreateWorkerDeploymentVersion (compute_config)
  • UpdateWorkerDeploymentVersionComputeConfig
  • ValidateWorkerDeploymentVersionComputeConfig

Proposal

Leave ComputeProvider.details and ComputeScaler.details unsealed on the way to the server, and leave them alone on the way back.

  • Make the exemption field-specific (match the parent message), not type-wide, so other Payload fields stay sealed.
  • Document it alongside the search attribute exemption.
Ngôn ngữ chính
Go
Star
32
Fork
14
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
62

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

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/temporal-proxy

Tất cả issue của temporalio/temporal-proxy

Issue tương tự

Thêm issue về Go

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.