feat(infisical-pg): resolved multi integration auth and ip v6 support in ua

This commit is contained in:
Akhil Mohan
2024-01-27 12:38:23 +05:30
parent d90fdac5ce
commit 9f813d72f2
8 changed files with 57 additions and 34 deletions
+2 -1
View File
@@ -392,7 +392,8 @@ export const registerRoutes = async (
permissionService,
folderDal,
integrationDal,
integrationAuthDal
integrationAuthDal,
secretQueueService
});
const serviceTokenService = serviceTokenServiceFactory({
projectEnvDal,
@@ -81,14 +81,14 @@ export const registerIdentityUaRouter = async (server: FastifyZodProvider) => {
})
.array()
.min(1)
.default([{ ipAddress: "0.0.0.0/0" }]),
.default([{ ipAddress: "0.0.0.0/0" }, { ipAddress: "::/0" }]),
accessTokenTrustedIps: z
.object({
ipAddress: z.string().trim()
})
.array()
.min(1)
.default([{ ipAddress: "0.0.0.0/0" }]),
.default([{ ipAddress: "0.0.0.0/0" }, { ipAddress: "::/0" }]),
accessTokenTTL: z
.number()
.int()