mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 03:31:27 +00:00
feat: added validation for secret path in permission
This commit is contained in:
+4
@@ -80,6 +80,10 @@ const ConditionSchema = z
|
||||
return true;
|
||||
},
|
||||
{ message: "Duplicate operator found for a condition" }
|
||||
)
|
||||
.refine(
|
||||
(val) => val.filter((el) => el.lhs === "secretPath").every((el) => el.rhs.startsWith("/")),
|
||||
{ message: "Invalid Secret Path. Must start with '/'" }
|
||||
);
|
||||
|
||||
export const projectRoleFormSchema = z.object({
|
||||
|
||||
Reference in New Issue
Block a user