egress: drop the empty-provider check in providerCredential
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
cmd/atenet/internal/router/egress/credentials.goを読み、空のproviderのチェックとその直後のprovider検索を比較してください。初期チェックを削除して、リクエストが既存の検索時の拒否経路を使うようにし、credentials_test.goの関連ケースを実行してください。リクエストが引き続き拒否され、重複したチェックがなくなれば完了です。このissueは#3409に依存しているため、着手前にその変更が利用可能であることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
From review of #3409: https://github.com/agent-substrate/substrate/pull/3409#discussion_r4407716120
Handler.providerCredential in cmd/atenet/internal/router/egress/credentials.go first denies the request when h.providers is empty and logs "policy requires credential injection but no credential provider is configured". With #3409's provider map, the lookup right after it already covers that case. No provider matches the URI's host, so the request gets the same 500 and body, and the log line "credential URI names a provider this gateway does not serve" includes serves=[].
Remove the early check so there is one denial path. The only other difference: on a gateway with no providers, an unparseable URI would log "policy names an unparseable credential URI" instead.
The "no provider configured" cases in credentials_test.go only check that the request is denied, so they should keep passing.
Depends on #3409. On main the check is if h.provider == nil, and it's still needed there because the code after it calls the single provider directly.
- 主要言語
- Go
- スター
- 6.1k
- フォーク
- 676
- 平均マージ
- 2日 2時間
- マージ済み PR(30日)
- 528
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
agent-substrate/substrate のほかの issue
-
Clean up the ko retry tests対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea/dev-infra area/reliability area/tests kind/cleanup
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
agent-substrate/substrate#3461 ·
メンテナーはふだん 1 日以内に返信
-
kubectl-ate create actor-template -f <file> fails with useless error対応中かも @cloudonly が 6 日前に担当しました。 オープンarea/cli kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
agent-substrate/substrate#3406 ·
メンテナーはふだん 1 日以内に返信
-
k8s-credential-provider manifest is missing ate-otel-config envFrom, failing OTLP metric exports to [::1]:4317 / 127.0.0.1:4317 every 60s対応中かも @ericcurtin が 6 日前に担当しました。 オープンarea/dev-infra area/observability area/security kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
agent-substrate/substrate#3282 ·
メンテナーはふだん 1 日以内に返信
-
filecachegc.runPass suppresses eviction logs when FreedBytes < target and consecutiveShortfalls > 3対応中かも @ericcurtin が 5 日前に担当しました。 オープンarea/node area/observability area/storage kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
agent-substrate/substrate#3281 ·
メンテナーはふだん 1 日以内に返信
-
docs/egress-trust-bundle.md documents ActorTemplate as a Kubernetes CRD rejected by kubectl ate create actor-template and uses mismatched trust-bundle mount paths対応中かも @moficodes が 7 日前に担当しました。 オープンarea/network area/security kind/docs
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
agent-substrate/substrate#3278 ·
メンテナーはふだん 1 日以内に返信
agent-substrate/substrate の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
component/tests needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
NVIDIA/nodewright#967 ·
メンテナーはふだん 1 日以内に返信
-
apm:ecosystem needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
DataDog/dd-trace-go#5815 ·
メンテナーはふだん 2 日以内に返信
-
Build releases with Go 1.26.10+ for CVE-2026-111943 (eMudhra intermediate CA compromise)対応中かも @zoezhangmattr が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 71/100
auth0/terraform-provider-auth0#1778 ·
メンテナーはふだん 2 日以内に返信
-
area:sampler tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
jmbarzee/temporal-architect#302 ·
メンテナーはふだん 1 日以内に返信