Commit 3461066
fix(app-studio): MCP discovery honors KEDGE_HUB_INSECURE
app-studio reaches the hub's MCPServer virtual-workspace endpoint at the
in-cluster service DNS (kedge-...-hub.<ns>.svc.cluster.local:9443), but the
hub serves its external cert (e.g. console-dev.faros.sh) with no SAN for the
internal name. Every provider — and app-studio's own GraphQL client and
heartbeat — skips verification for in-cluster hub calls via KEDGE_HUB_INSECURE.
The MCP path, however, was gated by a separate APP_STUDIO_MCP_INSECURE_SKIP_TLS_VERIFY
flag that the Helm chart never templates, so there was no way to make MCP
discovery trust the hub even when the operator set hub.insecure. Result:
GraphQL worked, MCP tool discovery failed with
"x509: certificate is valid for console-dev.faros.sh, not kedge-...-hub.svc.cluster.local".
Make the MCP TLS-skip honor KEDGE_HUB_INSECURE in addition to its own flag,
matching the other hub clients. No chart/value changes needed: prod already
sets KEDGE_HUB_INSECURE=true.
Also pick up the license boilerplate codegen added to the new
install/apiexport_test.go.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 018b8eb commit 3461066
2 files changed
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
166 | 172 | | |
167 | 173 | | |
168 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
1 | 17 | | |
2 | 18 | | |
3 | 19 | | |
| |||
0 commit comments