fix(crd): AgentRuntime.spec.auth.outbound[].destination.hostRegex should be documented as glob, not regex
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 65/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- go, kubernetes
- 領域
- devops, documentation
調査の方向性
AgentRuntime CRD 型とその hostRegex フィールドのドキュメントを特定し、authbridge/authlib/routing/router.go と PR #517 の警告を読んで glob 構文を確認します。hostRegex をその場でドキュメント化するか、提案されている非推奨化と名前変更を使用するかを判断し、その後、影響を受ける説明と例を更新して、CRD がサポートされる構文を明確に反映するようにします。
索引モデルが issue の本文から書いたものです。
説明
Problem
The AgentRuntime CRD field spec.auth.outbound[].destination.hostRegex is documented as accepting regex patterns, but AuthBridge's routing engine expects glob patterns.
Current CRD documentation:
// HostRegex is a regex pattern to match hostnames.
// Example: ".*\\.team1\\.svc\\.cluster\\.local"
AuthBridge reality:
// authbridge/authlib/routing/router.go
g, err := glob.Compile(r.Host, '.') // Uses github.com/gobwas/glob, not regexp
Users who follow the CRD documentation and provide regex syntax (e.g., .*\.team1\.svc\.cluster\.local) will get routes that don't match because glob syntax is different from regex.
Impact
- Silent mismatch: Routes silently fail to match because regex metacharacters are interpreted as literal characters in glob matching
- Wrong examples: The CRD example shows regex syntax that won't work
- Confusing field name:
hostRegeximplies regex when it should be glob
Proposed Solution
Option A: Rename field + deprecate (breaking change)
// HostGlob is a glob pattern to match hostnames.
// Supports * (any chars) and ? (single char).
// Example: "*.team1.svc.cluster.local"
HostGlob string `json:"hostGlob,omitempty"`
// HostRegex is deprecated - use HostGlob instead.
// This field was misnamed; it expects glob syntax, not regex.
// +deprecated
HostRegex string `json:"hostRegex,omitempty"`
Option B: Fix documentation only (non-breaking)
// HostRegex is a glob pattern to match hostnames (name is misleading).
// Supports * (any chars) and ? (single char), NOT regex syntax.
// Example: "*.team1.svc.cluster.local"
HostRegex string `json:"hostRegex,omitempty"`
Workaround
PR #517 added a warning log when hostRegex is used:
mutatorLog.Info("hostRegex field is mapped to AuthBridge glob pattern (not regex)",
"note", "use glob syntax like '*.team1.svc.cluster.local', not regex")
This helps users discover the issue but doesn't fix the root cause.
Related
- PR #517 discovered this while implementing routes generation
- No examples currently use
hostRegex(all use exacthostmatches) - AuthBridge glob implementation: https://github.com/gobwas/glob
/cc @alantech
- 主要言語
- Go
- スター
- 19
- フォーク
- 50
- 平均マージ
- 1日 7時間
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rossoctl/operator のほかの issue
-
kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
:bug: Broken link in docs/plans/ai-gateway.md: https://github.com/envoyproxy/ai-gateway/issues/902オープン
難易度 1/5 1時間未満 初心者へのやさしさ 58/100
rossoctl/operator#546 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Enforce token-exchange/token-broker mutex at webhook admission (fail-fast)再び着手できるかも @dhakshin-raghav が 48 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement go good first issue ux
難易度 4/5 3〜5日 初心者へのやさしさ 66/100
rossoctl/operator#526 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement go high priority
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
rossoctl/operator の issue をすべて見る
似ている issue
-
usage: a custom provider's balance meters ("…%" in the balance path) ignore the Left/Used switchオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
bug iam-service
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
platform-mesh/platform-mesh#425 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
grafana/tempo-operator#1691 ·
メンテナーはふだん 1 日以内に返信
-
fix: presentation.go with mcp-table.go: the message for each MCP server comes back対応中かも @mge1512 が今日担当しました。 オープンbug
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
mark3labs/kit#242 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
slavakurilyak/awesome-ai-agents#827 ·
メンテナーはふだん 1 日以内に返信