mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 08:28:22 +00:00
requested changes
This commit is contained in:
@@ -104,7 +104,6 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvide
|
|||||||
.object({
|
.object({
|
||||||
kubernetesHost: z
|
kubernetesHost: z
|
||||||
.string()
|
.string()
|
||||||
.url()
|
|
||||||
.trim()
|
.trim()
|
||||||
.min(1)
|
.min(1)
|
||||||
.describe(KUBERNETES_AUTH.ATTACH.kubernetesHost)
|
.describe(KUBERNETES_AUTH.ATTACH.kubernetesHost)
|
||||||
@@ -224,7 +223,6 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvide
|
|||||||
.object({
|
.object({
|
||||||
kubernetesHost: z
|
kubernetesHost: z
|
||||||
.string()
|
.string()
|
||||||
.url()
|
|
||||||
.trim()
|
.trim()
|
||||||
.min(1)
|
.min(1)
|
||||||
.optional()
|
.optional()
|
||||||
|
|||||||
@@ -189,10 +189,10 @@ export const identityKubernetesAuthServiceFactory = ({
|
|||||||
let { kubernetesHost } = identityKubernetesAuth;
|
let { kubernetesHost } = identityKubernetesAuth;
|
||||||
|
|
||||||
if (kubernetesHost.startsWith("https://") || kubernetesHost.startsWith("http://")) {
|
if (kubernetesHost.startsWith("https://") || kubernetesHost.startsWith("http://")) {
|
||||||
kubernetesHost = kubernetesHost.replace(new RE2("^https?:\\/\\/"), "");
|
kubernetesHost = new RE2("^https?:\\/\\/").replace(kubernetesHost, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
const [k8sHost, k8sPort] = kubernetesHost.split(":") ?? [];
|
const [k8sHost, k8sPort] = kubernetesHost.split(":");
|
||||||
|
|
||||||
const data = identityKubernetesAuth.gatewayId
|
const data = identityKubernetesAuth.gatewayId
|
||||||
? await $gatewayProxyWrapper(
|
? await $gatewayProxyWrapper(
|
||||||
|
|||||||
Reference in New Issue
Block a user