Commit 2611647
feat: add support for limit allowedRoute in GW (opendatahub-io#108)
* fix(INFERENG-7126): make gateway allowedRoutes configurable in rhai-on-xks chart
The rhai-on-xks chart hardcoded allowedRoutes.namespaces.from to "All"
in the post-install gateway Job, allowing any namespace to attach
HTTPRoutes to the inference Gateway. This creates a security risk in
multi-tenant clusters where unauthorized services could hijack traffic
or expose services through the Gateway's load balancer.
This change adds allowedRoutes configuration to values.yaml under
components.kserve.gateway, supporting All, Same, and Selector modes
with an optional label selector. The default remains "All" for backward
compatibility. The JSON schema is updated to validate the new fields,
and all snapshot tests are regenerated.
Closes INFERENG-7126
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Aneesh Puttur <aputtur@redhat.com>
* fix(INFERENG-7126): regenerate xks chart snapshots for Helm v4 compatibility
CI uses Helm v4 (latest) which adds blank lines between YAML document
separators. The previous snapshots were generated with Helm v3 and
lacked these blank lines, causing snapshot test failures.
Closes INFERENG-7126
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Aneesh Puttur <aputtur@redhat.com>
* fix(INFERENG-7126): regenerate xks chart api-docs.md for allowedRoutes
Run helm-docs to include the new
components.kserve.gateway.allowedRoutes.namespaces.from value in the
generated api-docs.md, fixing the CI lint check that validates
documentation is up to date.
Closes INFERENG-7126
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Aneesh Puttur <aputtur@redhat.com>
* feat: add support for limit allowedRoute in GW
- add https
- limit alowedRoutes to selector and same as skip set and all
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
* update: code review
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
* update: code review
- to keep upgrade work for those already on "All" keep default
values.yaml with "all"
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
---------
Signed-off-by: Aneesh Puttur <aputtur@redhat.com>
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
Co-authored-by: jira-autofix-bot <jira-autofix-bot@redhat.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent 80812f1 commit 2611647
15 files changed
Lines changed: 9416 additions & 3 deletions
File tree
- charts/rhai-on-xks-chart
- templates/hooks
- test/snapshots
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
Lines changed: 25 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
147 | 166 | | |
148 | 167 | | |
149 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
150 | 174 | | |
151 | 175 | | |
152 | 176 | | |
| |||
Lines changed: 3093 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 3093 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3214 | 3214 | | |
3215 | 3215 | | |
3216 | 3216 | | |
| 3217 | + | |
| 3218 | + | |
| 3219 | + | |
| 3220 | + | |
| 3221 | + | |
| 3222 | + | |
3217 | 3223 | | |
3218 | 3224 | | |
3219 | 3225 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3075 | 3075 | | |
3076 | 3076 | | |
3077 | 3077 | | |
| 3078 | + | |
| 3079 | + | |
| 3080 | + | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
3078 | 3084 | | |
3079 | 3085 | | |
3080 | 3086 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3199 | 3199 | | |
3200 | 3200 | | |
3201 | 3201 | | |
| 3202 | + | |
| 3203 | + | |
| 3204 | + | |
| 3205 | + | |
| 3206 | + | |
| 3207 | + | |
3202 | 3208 | | |
3203 | 3209 | | |
3204 | 3210 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3081 | 3081 | | |
3082 | 3082 | | |
3083 | 3083 | | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
| 3087 | + | |
| 3088 | + | |
| 3089 | + | |
3084 | 3090 | | |
3085 | 3091 | | |
3086 | 3092 | | |
| |||
0 commit comments