From 0f3fe1d58f0f2f44d3f194dd1296e760be1df1e2 Mon Sep 17 00:00:00 2001 From: Lucas Fernandez Date: Tue, 19 Mar 2024 16:17:27 +0100 Subject: [PATCH] Add ca-bundle.crt to add cluster bundles into the dashboard --- backend/src/server.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/server.ts b/backend/src/server.ts index 7a4c64106d..3e2a65ebd3 100644 --- a/backend/src/server.ts +++ b/backend/src/server.ts @@ -39,10 +39,12 @@ app.listen({ port: PORT, host: IP }, (err) => { process.exit(1); // eslint-disable-line } // Load CA bundle used in our API calls + // tls-ca-bundle.pem is the default CA bundle used by the system in CentOS/RHEL // ca.crt is the default CA bundle provided by the service account for kubernetes // service-ca.crt is the CA bundle provided by the service account for kubernetes used by prometheus // odh-ca-bundle.crt and odh-trusted-ca-bundle.crt are the CA bundles provided by the ODH platform const caPaths = [ + '/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem', '/var/run/secrets/kubernetes.io/serviceaccount/ca.crt', '/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt', '/etc/pki/tls/certs/odh-ca-bundle.crt',