mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 12:27:28 +00:00
Allow MI to create another MI test
This commit is contained in:
@@ -37,7 +37,7 @@ router.post(
|
|||||||
router.post(
|
router.post(
|
||||||
"/",
|
"/",
|
||||||
requireAuth({
|
requireAuth({
|
||||||
acceptedAuthModes: [AuthMode.JWT]
|
acceptedAuthModes: [AuthMode.JWT, AuthMode.MACHINE_ACCESS_TOKEN]
|
||||||
}),
|
}),
|
||||||
machineIdentityController.createMachineIdentity
|
machineIdentityController.createMachineIdentity
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ export const CreateMachineIdentityV3 = z.object({
|
|||||||
.array()
|
.array()
|
||||||
.min(1)
|
.min(1)
|
||||||
.default([{ ipAddress: "0.0.0.0/0" }]),
|
.default([{ ipAddress: "0.0.0.0/0" }]),
|
||||||
accessTokenTTL: z.number().int().min(1)
|
accessTokenTTL: z.number().int().min(1).default(7200)
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user