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

Aperta
#334 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@rahulsjha ci sta già lavorando.

Dal 3/12/2026.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go
Ambito
backend, security

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Go
Stelle
32
Fork
14
Merge medio
1g 10h
PR unite (30g)
62

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di temporalio/temporal-proxy

Tutte le issue di temporalio/temporal-proxy

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.