Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
fix: move actorType after spread and use service return for LDAP identityId
Devin AI7350d5fd310d
diff --git a/backend/src/server/routes/v1/dashboard-router.ts b/backend/src/server/routes/v1/dashboard-router.tsindex 9279ecf51f..58e7599686 100644--- a/backend/src/server/routes/v1/dashboard-router.ts+++ b/backend/src/server/routes/v1/dashboard-router.ts@@ -1524,8 +1524,8 @@ export const registerDashboardRouter = async (server: FastifyZodProvider) => {environment,secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});}diff --git a/backend/src/server/routes/v1/identity-ldap-auth-router.ts b/backend/src/server/routes/v1/identity-ldap-auth-router.tsindex 86b6e8e155..783d4e1371 100644--- a/backend/src/server/routes/v1/identity-ldap-auth-router.ts+++ b/backend/src/server/routes/v1/identity-ldap-auth-router.ts@@ -420,7 +420,7 @@ export const registerIdentityLdapAuthRouter = async (server: FastifyZodProvider)distinctId: getTelemetryDistinctId(req),organizationId: req.permission.orgId,properties: {- identityId: req.params.identityId,+ identityId: identityLdapAuth.identityId,orgId: req.permission.orgId,authMethod: "ldap"}@@ -555,7 +555,7 @@ export const registerIdentityLdapAuthRouter = async (server: FastifyZodProvider)distinctId: getTelemetryDistinctId(req),organizationId: req.permission.orgId,properties: {- identityId: req.params.identityId,+ identityId: identityLdapAuth.identityId,orgId: req.permission.orgId,authMethod: "ldap"}diff --git a/backend/src/server/routes/v3/deprecated-secret-router.ts b/backend/src/server/routes/v3/deprecated-secret-router.tsindex 221ccb2d70..d824ff7f0b 100644--- a/backend/src/server/routes/v3/deprecated-secret-router.ts+++ b/backend/src/server/routes/v3/deprecated-secret-router.ts@@ -342,8 +342,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment,secretPath: req.query.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});}@@ -507,8 +507,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment,secretPath: req.query.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});}@@ -656,8 +656,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});@@ -815,8 +815,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});return { secret };@@ -934,8 +934,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});@@ -1043,8 +1043,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment: req.query.environment,secretPath: req.query.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});}@@ -1124,8 +1124,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment: req.query.environment,secretPath: req.query.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});}@@ -1300,8 +1300,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});@@ -1495,8 +1495,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});return { secret };@@ -1624,8 +1624,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});return { secret };@@ -1812,8 +1812,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});return { secrets };@@ -1946,8 +1946,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});return { secrets };@@ -2072,8 +2072,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});return { secrets };@@ -2205,8 +2205,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});return { secrets };@@ -2390,8 +2390,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});return { secrets };@@ -2509,8 +2509,8 @@ export const registerDeprecatedSecretRouter = async (server: FastifyZodProvider)environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});return { secrets };diff --git a/backend/src/server/routes/v4/secret-router.ts b/backend/src/server/routes/v4/secret-router.tsindex 3ec6cbec70..26f958c865 100644--- a/backend/src/server/routes/v4/secret-router.ts+++ b/backend/src/server/routes/v4/secret-router.ts@@ -220,8 +220,8 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {environment,secretPath: req.query.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});}@@ -374,8 +374,8 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {environment,secretPath: req.query.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});}@@ -514,8 +514,8 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});@@ -664,8 +664,8 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});return { secret };@@ -774,8 +774,8 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});@@ -965,8 +965,8 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});return { secrets };@@ -1149,8 +1149,8 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});return { secrets };@@ -1271,8 +1271,8 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {environment: req.body.environment,secretPath: req.body.secretPath,channel: getUserAgentType(req.headers["user-agent"]),- actorType: req.permission.type,- ...req.auditLogInfo+ ...req.auditLogInfo,+ actorType: req.permission.type}});return { secrets };