mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 15:26:35 +00:00
Fix secret rotation defaults
This commit is contained in:
@@ -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)
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user