Merge pull request #4224 from Infisical/fix-secret-rotation-defaults

Fix secret rotation defaults
This commit is contained in:
x032205
2025-07-23 12:45:39 -04:00
committed by GitHub
@@ -315,10 +315,12 @@ export const registerSecretRotationEndpoints = <
querystring: z.object({ querystring: z.object({
deleteSecrets: z deleteSecrets: z
.enum(["true", "false"]) .enum(["true", "false"])
.optional()
.transform((value) => value === "true") .transform((value) => value === "true")
.describe(SecretRotations.DELETE(type).deleteSecrets), .describe(SecretRotations.DELETE(type).deleteSecrets),
revokeGeneratedCredentials: z revokeGeneratedCredentials: z
.enum(["true", "false"]) .enum(["true", "false"])
.optional()
.transform((value) => value === "true") .transform((value) => value === "true")
.describe(SecretRotations.DELETE(type).revokeGeneratedCredentials) .describe(SecretRotations.DELETE(type).revokeGeneratedCredentials)
}), }),