Commit cf87fe3
fix(automl,autorag): extend dynamic port-forwarding to S3 and LlamaStack paths (opendatahub-io#7310)
* fix(automl,autorag): extend dynamic port-forwarding to S3 and LlamaStack paths
The initial port-forwarding implementation only covered the DSPA
middleware path. Three additional code paths also use in-cluster URLs
that need rewriting for local development:
- S3 resolveS3Client (both packages): when secretName is provided,
the DSPA middleware is skipped and the endpoint URL from the secret
is used directly. Add port-forward rewrite before S3 client creation.
- LlamaStack AttachLlamaStackClientFromSecret (autorag): the base URL
from the secret is used directly. Add port-forward rewrite before
client creation.
- LlamaStack ListProviders (autorag): auth token was stripped on HTTP
requests. After port-forwarding rewrites to http://localhost, the
token must be sent. Allow auth on localhost connections.
All changes are guarded by portForwardManager being non-nil (requires
DevMode=true) or by localhost-only scope.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(automl,autorag): log port-forward errors instead of silently dropping
Address review feedback: ForwardURL errors in the S3 handler and
LlamaStack middleware were silently swallowed. Now log warnings
consistent with the pattern used in AttachPipelineServerClient.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4d64cc6 commit cf87fe3
3 files changed
Lines changed: 33 additions & 0 deletions
File tree
- packages
- automl/bff/internal/api
- autorag/bff/internal/api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
149 | 160 | | |
150 | 161 | | |
151 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
387 | 398 | | |
388 | 399 | | |
389 | 400 | | |
| |||
| 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 | + | |
147 | 158 | | |
148 | 159 | | |
149 | 160 | | |
| |||
0 commit comments