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

未关闭
#334 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@rahulsjha 已经在做这个了。

开始于 2026年12月3日。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
go
领域
backend, security

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.
主要语言
Go
星标
32
派生
14
平均合并
1 天 10 小时
30 天内合并 PR
62

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

temporalio/temporal-proxy 的其他 Issue

查看 temporalio/temporal-proxy 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。