Reject requests when translated Namespace is not a valid Cloud Namespace
メンテナーはふだん 1 日以内に返信
@kriyanshii がすでに取り組んでいます。
2026年11月16日 から。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- go
調査の方向性
まず internal/proxy/cloudns.go の cloudNamespaceUnaryInterceptor と cloudNamespaceStreamInterceptor を確認し、次に internal/proxy/cloudns_test.go のテーブル駆動テストを読みます。無効な翻訳後の namespace が転送前に拒否されることを確認するよう、テストを更新してください。呼び出し元がローカルとリモートの namespace、および検証エラーとともに codes.InvalidArgument を受け取れば完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
When an upstream is Temporal Cloud, the proxy checks each request's translated Namespace with cloud.ValidateNamespace. If the check fails, it logs outbound namespace is not valid (at debug level) and forwards the request anyway. Cloud then rejects it, and the caller gets an error that says nothing about the Namespace.
For example, with a suffix rule on a Cloud upstream:
namespaces:
rules:
suffix: .${TEMPORAL_ACCOUNT}
A client that sends the fully-qualified name quickstart.a1b2c has it translated to quickstart.a1b2c.a1b2c. With buf curl, the caller sees:
code: internal
message: stream terminated by RST_STREAM with error code: PROTOCOL_ERROR
The real reason only shows up in the proxy's log, and then, only with --level debug set:
{"level":"debug","component":"translation","localNamespace":"quickstart.a1b2c","remoteNamespace":"quickstart.a1b2c.a1b2c","error":": id: is malformed. Should be <name>.<account-id>","message":"outbound namespace is not valid"}
[!NOTE]
This isn't a regression. It's the same on previous releases (e.g. v1.1.0).
Proposed change
In cloudNamespaceUnaryInterceptor and cloudNamespaceStreamInterceptor, when the translated Namespace fails
cloud.ValidateNamespace, return a codes.InvalidArgument status before calling the invoker or streamer. The message
should name the local and remote Namespaces and include the validation error, so a caller can fix the request without
access to the proxy's logs.
Where to look
internal/proxy/cloudns.go: the two interceptors andlogNonCloudNamespaceinternal/proxy/cloudns_test.go: table-driven tests that currently assert the debug entry and that the call is still forwardedinternal/dataplane/dataplane.go: the only caller, which installs these dial options on Cloud upstreams
- 主要言語
- Go
- スター
- 32
- フォーク
- 14
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 62
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
temporalio/temporal-proxy のほかの issue
-
Reject unknown config keys at startup対応中かも @pseudomuto が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
temporalio/temporal-proxy#330 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 71/100
temporalio/temporal-proxy#329 ·
メンテナーはふだん 1 日以内に返信
-
Don't seal compute provider and scaler details on worker deployment calls対応中かも @rahulsjha が今日担当しました。 オープンenhancement good first issue
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
temporalio/temporal-proxy#334 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
temporalio/temporal-proxy#178 ·
メンテナーはふだん 1 日以内に返信
temporalio/temporal-proxy の issue をすべて見る
似ている issue
-
bug effort:s impact:med raised-by:desk risk:low
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
medici-finance/assay#8342 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug sweep
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
bketelsen/truenas-mcp#120 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nwverse/persona#22164 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
sresarehumantoo/cc-artex#559 ·