Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Update identity-kubernetes-auth-service.ts
Daniel Hougaard021a8ddace31
diff --git a/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts b/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.tsindex 2da7c38810..d93f08f835 100644--- a/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts+++ b/backend/src/services/identity-kubernetes-auth/identity-kubernetes-auth-service.ts@@ -79,7 +79,7 @@ export const identityKubernetesAuthServiceFactory = ({const callbackResult = await withGatewayProxy(async (port) => {- const res = await gatewayCallback("localhost", port);+ const res = await gatewayCallback("https://localhost", port);return res;},{@@ -138,11 +138,7 @@ export const identityKubernetesAuthServiceFactory = ({}const tokenReviewCallback = async (host: string = identityKubernetesAuth.kubernetesHost, port?: number) => {- let baseUrl = `https://${host}`;-- if (port) {- baseUrl += `:${port}`;- }+ const baseUrl = port ? `${host}:${port}` : host;const res = await axios.post<TCreateTokenReviewResponse>(