Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fully remove identities from PAM bootstrap

x032205966dcb23705e
diff --git a/backend/src/ee/services/pam-project/pam-project-bootstrap.ts b/backend/src/ee/services/pam-project/pam-project-bootstrap.ts
index b6f8e8970b..e68f3f2078 100644
--- a/backend/src/ee/services/pam-project/pam-project-bootstrap.ts
+++ b/backend/src/ee/services/pam-project/pam-project-bootstrap.ts
@@ -20,7 +20,6 @@ type TBootstrapDeps = {
type TBootstrapInput = {
orgId: string;
adminUserIds?: string[];
- adminIdentityIds?: string[];
};
export type TDefaultTemplate = {
@@ -203,7 +202,7 @@ export const DEFAULT_ACCOUNT_TEMPLATES: TDefaultTemplate[] = [
];
export const bootstrapPamProject = async (
- { orgId, adminUserIds = [], adminIdentityIds = [] }: TBootstrapInput,
+ { orgId, adminUserIds = [] }: TBootstrapInput,
{ projectDAL, membershipDAL, membershipRoleDAL }: TBootstrapDeps,
tx: Knex
): Promise<{ project: TProjects; created: boolean }> => {
diff --git a/backend/src/ee/services/sub-org/sub-org-service.ts b/backend/src/ee/services/sub-org/sub-org-service.ts
index 217a3a272b..c4cfd634a5 100644
--- a/backend/src/ee/services/sub-org/sub-org-service.ts
+++ b/backend/src/ee/services/sub-org/sub-org-service.ts
@@ -110,8 +110,7 @@ export const subOrgServiceFactory = ({
await bootstrapPamProject(
{
orgId: org.id,
- adminUserIds: permission.type === ActorType.USER ? [permission.id] : [],
- adminIdentityIds: permission.type === ActorType.IDENTITY ? [permission.id] : []
+ adminUserIds: permission.type === ActorType.USER ? [permission.id] : []
},
{ projectDAL, membershipDAL, membershipRoleDAL },
tx