Commit 602fc04
committed
fix: restore X-MaaS-Subscription header for Istio Telemetry
Keep X-MaaS-Subscription header injection for Istio Telemetry's per-subscription
latency tracking. Other identity headers (Username, Group, Key-Id) remain removed
for defense-in-depth.
Istio Telemetry runs in Envoy and cannot access auth.identity context - it can
only read request headers. The X-MaaS-Subscription header is server-controlled
(injected by Authorino from validated subscription), not client-provided.
Updates test to verify X-MaaS-Subscription is present while other identity
headers remain absent.1 parent 8f67bb6 commit 602fc04
File tree
2 files changed
+31
-11
lines changed- maas-controller/pkg/controller/maas
2 files changed
+31
-11
lines changedLines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| 455 | + | |
455 | 456 | | |
456 | 457 | | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
457 | 470 | | |
458 | 471 | | |
459 | 472 | | |
| |||
Lines changed: 18 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1063 | 1063 | | |
1064 | 1064 | | |
1065 | 1065 | | |
1066 | | - | |
1067 | | - | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
1068 | 1069 | | |
1069 | 1070 | | |
1070 | 1071 | | |
| |||
1105 | 1106 | | |
1106 | 1107 | | |
1107 | 1108 | | |
1108 | | - | |
| 1109 | + | |
1109 | 1110 | | |
1110 | 1111 | | |
1111 | 1112 | | |
1112 | 1113 | | |
1113 | 1114 | | |
1114 | 1115 | | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
1122 | | - | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
1123 | 1130 | | |
1124 | 1131 | | |
1125 | 1132 | | |
| |||
0 commit comments