fix certificate issues in KubernetesProxy

Signed-off-by: Riley Martine <rmartine@integralads.com>
This commit is contained in:
Riley Martine
2023-05-31 13:16:52 -06:00
parent e4af7f1ebc
commit 4249f4214f
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-kubernetes-backend': patch
---
Fixed bug in KubernetesProxy where Host header was not propagated, leading to certificate issues
@@ -137,6 +137,7 @@ export class KubernetesProxy {
middleware = createProxyMiddleware({
logProvider: () => logger,
secure: !originalCluster.skipTLSVerify,
changeOrigin: true,
router: async req => {
// Re-evaluate the cluster on each request, in case it has changed
const cluster = await this.getClusterForRequest(req);