mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Allow MI to create another MI test
This commit is contained in:
@@ -37,7 +37,7 @@ router.post(
|
||||
router.post(
|
||||
"/",
|
||||
requireAuth({
|
||||
acceptedAuthModes: [AuthMode.JWT]
|
||||
acceptedAuthModes: [AuthMode.JWT, AuthMode.MACHINE_ACCESS_TOKEN]
|
||||
}),
|
||||
machineIdentityController.createMachineIdentity
|
||||
);
|
||||
|
||||
@@ -51,7 +51,7 @@ export const CreateMachineIdentityV3 = z.object({
|
||||
.array()
|
||||
.min(1)
|
||||
.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