Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

allow hyphens in host name

Maidul Islamf97826ea820b
diff --git a/backend/src/server/routes/v1/identity-kubernetes-auth-router.ts b/backend/src/server/routes/v1/identity-kubernetes-auth-router.ts
index de79275737..02663adb5e 100644
--- a/backend/src/server/routes/v1/identity-kubernetes-auth-router.ts
+++ b/backend/src/server/routes/v1/identity-kubernetes-auth-router.ts
@@ -114,10 +114,11 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvide
CharacterType.Numbers,
CharacterType.Colon,
CharacterType.Period,
- CharacterType.ForwardSlash
+ CharacterType.ForwardSlash,
+ CharacterType.Hyphen
])(val),
{
- message: "Kubernetes host must only contain alphabets, numbers, colons, periods, and forward slashes."
+ message: "Kubernetes host must only contain alphabets, numbers, colons, periods, hyphen, and forward slashes."
}
),
caCert: z.string().trim().default("").describe(KUBERNETES_AUTH.ATTACH.caCert),
@@ -234,11 +235,12 @@ export const registerIdentityKubernetesRouter = async (server: FastifyZodProvide
CharacterType.Numbers,
CharacterType.Colon,
CharacterType.Period,
- CharacterType.ForwardSlash
+ CharacterType.ForwardSlash,
+ CharacterType.Hyphen
])(val);
},
{
- message: "Kubernetes host must only contain alphabets, numbers, colons, periods, and forward slashes."
+ message: "Kubernetes host must only contain alphabets, numbers, colons, periods, hyphen, and forward slashes."
}
),
caCert: z.string().trim().optional().describe(KUBERNETES_AUTH.UPDATE.caCert),