mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 23:26:42 +00:00
Merge pull request #3392 from Infisical/fix/avoidForwardSlachOnSecretKeys
Add condition to avoid secret names that contain forward slashes
This commit is contained in:
@@ -45,4 +45,6 @@ export const BaseSecretNameSchema = z.string().trim().min(1);
|
|||||||
export const SecretNameSchema = BaseSecretNameSchema.refine(
|
export const SecretNameSchema = BaseSecretNameSchema.refine(
|
||||||
(el) => !el.includes(" "),
|
(el) => !el.includes(" "),
|
||||||
"Secret name cannot contain spaces."
|
"Secret name cannot contain spaces."
|
||||||
).refine((el) => !el.includes(":"), "Secret name cannot contain colon.");
|
)
|
||||||
|
.refine((el) => !el.includes(":"), "Secret name cannot contain colon.")
|
||||||
|
.refine((el) => !el.includes("/"), "Secret name cannot contain forward slash.");
|
||||||
|
|||||||
Reference in New Issue
Block a user