Merge pull request #4575 from Infisical/daniel/allow-empty-secret-keys

fix: allow spaces in secret keys
This commit is contained in:
Daniel Hougaard
2025-09-24 00:06:48 +04:00
committed by GitHub
6 changed files with 107 additions and 13 deletions

View File

@@ -43,8 +43,6 @@ export const GenericResourceNameSchema = z
export const BaseSecretNameSchema = z.string().trim().min(1);
export const SecretNameSchema = BaseSecretNameSchema.refine(
(el) => !el.includes(" "),
"Secret name cannot contain spaces."
)
.refine((el) => !el.includes(":"), "Secret name cannot contain colon.")
.refine((el) => !el.includes("/"), "Secret name cannot contain forward slash.");
(el) => !el.includes(":"),
"Secret name cannot contain colon."
).refine((el) => !el.includes("/"), "Secret name cannot contain forward slash.");