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: rollback access approval requests requestedBy
Daniel Hougaard1216d218c130
diff --git a/backend/src/db/migrations/20240724101056_access-request-groups.ts b/backend/src/db/migrations/20240724101056_access-request-groups.tsindex a74f746e60..fd6f0548c0 100644--- a/backend/src/db/migrations/20240724101056_access-request-groups.ts+++ b/backend/src/db/migrations/20240724101056_access-request-groups.ts@@ -238,13 +238,13 @@ export async function down(knex: Knex): Promise<void> {}});- await knex(TableName.AccessApprovalRequest).update({- // eslint-disable-next-line- // @ts-ignore because generate schema happens after this- requestedBy: knex(TableName.ProjectMembership)- .select("id")- .where("userId", knex.raw("??", [`${TableName.AccessApprovalRequest}.requestedByUserId`]))- });+ // await knex(TableName.AccessApprovalRequest).update({+ // // eslint-disable-next-line+ // // @ts-ignore because generate schema happens after this+ // requestedBy: knex(TableName.ProjectMembership)+ // .select("id")+ // .where("userId", knex.raw("??", [`${TableName.AccessApprovalRequest}.requestedByUserId`]))+ // });// Try to find a project membership based on the AccessApprovalRequest.requestedByUserId and AccessApprovalRequest.policyId(reference to AccessApprovalRequestPolicy).envId(reference to Environment).projectId(reference to Project)// If a project membership is found, set the AccessApprovalRequest.requestedBy to the project membership id