Cloud upstreams dial the Cloud control plane implicitly, and the config keys that control it are undocumented
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đá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
- 58/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ệ
- go
- Lĩnh vực
- documentation, observability
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- 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
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của temporalio/temporal-proxy
-
Reject unknown config keys at startupCó thể đã có người làm @pseudomuto đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
temporalio/temporal-proxy#330 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 71/100
temporalio/temporal-proxy#329 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Reject requests when translated Namespace is not a valid Cloud NamespaceCó thể làm lại được @kriyanshii đã nhận 17 ngày trước và không có pull request nào đang mở. Đang mởenhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
temporalio/temporal-proxy#281 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Don't seal compute provider and scaler details on worker deployment callsCó thể đã có người làm @rahulsjha đã nhận hôm nay. Đang mởenhancement good first issue
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
temporalio/temporal-proxy#334 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của temporalio/temporal-proxy
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
seriousm4x/UpSnap#1786 ·
-
bug feedback ui/ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
peasant-labs/peasant#1307 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Reformat test names for single-protocol tests to start with Protocol/, i.e. gRPC/ or Websocket/Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
connectrpc/conformance#1211 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug effort:s impact:med raised-by:desk risk:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
medici-finance/assay#8342 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
hardening
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
inference-sim/inference-sim#2821 ·
Maintainer thường phản hồi trong vòng 1 ngày