Commit 1a42e9b
fix: use bound subscription for X-MaaS-Subscription header
Use apiKeyValidation.subscription (bound) instead of subscription-info.name
(selected) for the X-MaaS-Subscription header. For K8s tokens, the expression
returns empty string so no header is injected. This aligns with actual usage:
API keys for inference (needs header for Istio Telemetry), K8s tokens for
/v1/models catalog browsing (no subscription tracking needed).
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent fe9ffad commit 1a42e9b
File tree
1 file changed
+3
-4
lines changed- maas-controller/pkg/controller/maas
1 file changed
+3
-4
lines changedLines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
460 | | - | |
461 | | - | |
| 459 | + | |
| 460 | + | |
462 | 461 | | |
463 | 462 | | |
464 | | - | |
| 463 | + | |
465 | 464 | | |
466 | 465 | | |
467 | 466 | | |
| |||
0 commit comments