Cloud upstreams dial the Cloud control plane implicitly, and the config keys that control it are undocumented
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 58/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- documentation, observability
Direzione di ricerca
Start with README, examples/listnamespace/config.yaml, internal/config/upstream.go, internal/cloud/endpoint.go, and the existing cloudAPIConn startup log. Document upstreams[].cloud, apiTranslations.cloudAPI, the control-plane egress and API-key reuse, link the example from Get started, update the configure page, and make the startup log expose the resolved control-plane host.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Version: v0.7.0
I hit this setting the proxy up against a Temporal Cloud namespace from a network with an egress allowlist. The behavior itself seems reasonable, but I think the documentation gap around it is worth closing.
What happens
When an upstream resolves as Temporal Cloud, the proxy installs a method-translation layer that answers WorkflowService/ListNamespaces by dialling saas-api.tmprl.cloud:443 and calling CloudService/GetNamespaces there, reusing the upstream's API key.
internal/config/upstream.go turns this on if any of three things is true, two of which are inferred rather than declared:
if u.Cloud || cloud.IsEndpoint(u.Listen.HostPort) {
return true
}
return u.Listen.TLS != nil && cloud.IsEndpoint(u.Listen.TLS.ServerName)
where cloud.IsEndpoint is a strings.HasSuffix(host, ".tmprl.cloud"). examples/listnamespace/config.yaml demonstrates exactly this: no cloud flag, apiTranslations commented out entirely, and translation happens anyway.
Why it is hard to find out
- The README never mentions method translation,
CloudService,apiTranslations, or theupstreams[].cloudflag. The feature list stops at routing, allowlist, namespace translation, TLS, encryption, key management, auth, codec transparency and deployment. - "Get started" links
examples/cloud,examples/kmsandexamples/authz, but notexamples/listnamespace, which is the only place this is shown. - The configure page on docs.temporal.io lists eight top-level config keys and none of
apiTranslations,cloudAPI, or the upstreamcloudflag. cloudAPIConndoes log"translating methods to the Cloud API"at startup, but it tags the methods, not the endpoint, so the log never reveals thatsaas-api.tmprl.cloud:443is now an egress dependency.
The sentence that made me file this
The README says:
Service allowlist. Forward only the gRPC services you name, defaulting to
WorkflowServiceandOperatorService. Server reflection is opt-in, and a service you leave out is never forwarded.
CloudService is not in the default allowlist and cannot be named by an operator, yet on a Cloud upstream the proxy speaks it outbound to a host the operator never configured. The allowlist being inbound-only is fine, but that sentence reads as though it is not.
Why it bites
- Behind an egress allowlist scoped to the namespace frontend,
ListNamespacesfails opaquely. The Temporal UI calls it on load, so the symptom is a broken UI rather than an obvious network error. - A security review told "the proxy talks to our Cloud namespace" is not being told it also talks to the control plane with the same key.
internal/cloud/endpoint.goexplicitly calls out private-link endpoints as the reasoncloud: trueexists, but an operator who needs that escape hatch cannot discover it from any document.
What I think would fix it
- Document
upstreams[].cloudandapiTranslations.cloudAPIin the README and on the configure page. - State the
saas-api.tmprl.cloud:443egress requirement, and that the upstream API key is reused against the control plane. - Link
examples/listnamespacefrom "Get started". - Include the resolved control-plane host in the existing startup log line, so the egress dependency is visible without reading the source.
Happy to open a PR for the README and the log line if that is useful. The translation subsystem shipped in v0.6.0 eleven days ago, so if docs are already in flight, feel free to close this.
- Lingua principale
- Go
- Stelle
- 32
- Fork
- 14
- Merge medio
- 1g 10h
- PR unite (30g)
- 62
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di temporalio/temporal-proxy
-
Reject unknown config keys at startupForse già presa @pseudomuto l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
temporalio/temporal-proxy#330 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 71/100
temporalio/temporal-proxy#329 ·
I maintainer di solito rispondono entro 1 giorno
-
Reject requests when translated Namespace is not a valid Cloud NamespaceForse di nuovo libera @kriyanshii l’ha presa 17 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
temporalio/temporal-proxy#281 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Don't seal compute provider and scaler details on worker deployment callsForse già presa @rahulsjha l’ha presa oggi. Apertaenhancement good first issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
temporalio/temporal-proxy#334 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di temporalio/temporal-proxy
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
seriousm4x/UpSnap#1786 ·
-
bug feedback ui/ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
peasant-labs/peasant#1307 ·
I maintainer di solito rispondono entro 1 giorno
-
Reformat test names for single-protocol tests to start with Protocol/, i.e. gRPC/ or Websocket/Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
connectrpc/conformance#1211 ·
I maintainer di solito rispondono entro 1 giorno
-
bug effort:s impact:med raised-by:desk risk:low
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
medici-finance/assay#8342 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
hardening
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
inference-sim/inference-sim#2821 ·
I maintainer di solito rispondono entro 1 giorno