From 1990d97ace82833f5a56ec0cc7aca5bf3f739c36 Mon Sep 17 00:00:00 2001 From: Alberto Gutierrez Date: Mon, 8 Jul 2024 18:28:11 +0200 Subject: [PATCH] fix(kiali): allow unauthenticated kiali due is read-only mod (#1872) fix(kiali): allow unauthenticated kiali due is read-only mode --------- Co-authored-by: Alberto Gutierrez --- plugins/kiali-backend/src/plugin.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/plugins/kiali-backend/src/plugin.ts b/plugins/kiali-backend/src/plugin.ts index 9302cdda62..aea5b98f1b 100644 --- a/plugins/kiali-backend/src/plugin.ts +++ b/plugins/kiali-backend/src/plugin.ts @@ -21,11 +21,15 @@ export const kialiPlugin = createBackendPlugin({ catalogApi: catalogServiceRef, }, async init({ http, logger, config }) { - const router = await createRouter({ - logger, - config, + http.use(await createRouter({ logger, config })); + http.addAuthPolicy({ + path: '/status', + allow: 'unauthenticated', + }); + http.addAuthPolicy({ + path: '/proxy', + allow: 'unauthenticated', }); - http.use(router); }, }); },