feat(server): added limit to leases creation and support for force delete when external system fails to comply

This commit is contained in:
Akhil Mohan
2024-03-25 00:49:48 +05:30
parent 98ea2c1828
commit 69297bc16e
11 changed files with 80 additions and 9 deletions
@@ -62,7 +62,8 @@ export const registerDynamicSecretLeaseRouter = async (server: FastifyZodProvide
body: z.object({
projectSlug: z.string().min(1),
path: z.string().min(1).trim().default("/").transform(removeTrailingSlash),
environment: z.string().min(1)
environment: z.string().min(1),
isForced: z.boolean().default(false)
}),
response: {
200: z.object({
@@ -132,7 +132,8 @@ export const registerDynamicSecretRouter = async (server: FastifyZodProvider) =>
body: z.object({
projectSlug: z.string().min(1),
path: z.string().trim().default("/").transform(removeTrailingSlash),
environment: z.string().min(1)
environment: z.string().min(1),
isForced: z.boolean().default(false)
}),
response: {
200: z.object({