Skip to content

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

pivot back to using project encryption and projectId middleware

x03220596baa3eaaeeb
diff --git a/backend/src/@types/fastify.d.ts b/backend/src/@types/fastify.d.ts
index 49e9417905..9675201718 100644
--- a/backend/src/@types/fastify.d.ts
+++ b/backend/src/@types/fastify.d.ts
@@ -33,6 +33,7 @@ import { TKmipServiceFactory } from "@app/ee/services/kmip/kmip-service";
import { TLdapConfigServiceFactory } from "@app/ee/services/ldap-config/ldap-config-service";
import { TLicenseServiceFactory } from "@app/ee/services/license/license-service";
import { TOidcConfigServiceFactory } from "@app/ee/services/oidc/oidc-config-service";
+import { TPamProjectResolverFactory } from "@app/ee/services/pam-instance/pam-project-resolver";
import { TPermissionServiceFactory } from "@app/ee/services/permission/permission-service-types";
import { TPitServiceFactory } from "@app/ee/services/pit/pit-service";
import { TPkiAcmeServiceFactory } from "@app/ee/services/pki-acme/pki-acme-types";
@@ -251,6 +252,7 @@ declare module "fastify" {
};
auditLogInfo: Pick<TCreateAuditLogDTO, "userAgent" | "userAgentType" | "ipAddress" | "actor" | "orgId">;
internalCertManagerProjectId: string;
+ internalPamProjectId: string;
ssoConfig: Awaited<ReturnType<TSamlConfigServiceFactory["getSaml"]>>;
ldapConfig: Awaited<ReturnType<TLdapConfigServiceFactory["getLdapCfg"]>> & {
allowedFields?: TAllowedFields[];
@@ -329,6 +331,7 @@ declare module "fastify" {
signerPolicy: TSignerPolicyServiceFactory;
pkiApplicationEnrollment: TPkiApplicationEnrollmentServiceFactory;
certManagerProjectResolver: TCertManagerProjectResolverFactory;
+ pamProjectResolver: TPamProjectResolverFactory;
certManagerInstance: TCertManagerInstanceServiceFactory;
certManagerExport: TCertManagerExportServiceFactory;
sshCertificateAuthority: TSshCertificateAuthorityServiceFactory;
diff --git a/backend/src/db/migrations/20260603030053_pam-revamp.ts b/backend/src/db/migrations/20260603030053_pam-revamp.ts
index 73bdb8dac7..f7024800cd 100644
--- a/backend/src/db/migrations/20260603030053_pam-revamp.ts
+++ b/backend/src/db/migrations/20260603030053_pam-revamp.ts
@@ -25,17 +25,17 @@ import { createOnUpdateTrigger, dropOnUpdateTrigger } from "../utils";
import { getMigrationEnvConfig, getMigrationHsmConfig } from "./utils/env-config";
import { getMigrationEncryptionServices, getMigrationHsmService } from "./utils/services";
-const seedDefaultTemplates = async (knex: Knex, orgId: string) => {
+const seedDefaultTemplates = async (knex: Knex, projectId: string) => {
for (const template of DEFAULT_ACCOUNT_TEMPLATES) {
await knex(TableName.PamAccountTemplate)
.insert({
- orgId,
+ projectId,
name: template.name,
type: template.type,
accessPolicy: JSON.stringify(template.accessPolicy),
settings: JSON.stringify(template.settings)
})
- .onConflict(["orgId", "name"])
+ .onConflict(["projectId", "name"])
.ignore();
}
};
@@ -54,7 +54,7 @@ const createPamProjectForOrg = async (knex: Knex, orgId: string) => {
})
.returning("id")) as Array<{ id: string }>;
- await seedDefaultTemplates(knex, orgId);
+ await seedDefaultTemplates(knex, projectId);
return projectId;
};
@@ -75,9 +75,9 @@ export async function up(knex: Knex): Promise<void> {
await knex.schema.createTable(TableName.PamAccountTemplate, (t) => {
t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid());
- t.uuid("orgId").notNullable();
- t.foreign("orgId").references("id").inTable(TableName.Organization).onDelete("CASCADE");
- t.index("orgId");
+ t.string("projectId").notNullable();
+ t.foreign("projectId").references("id").inTable(TableName.Project).onDelete("CASCADE");
+ t.index("projectId");
t.string("name").notNullable();
t.text("description").nullable();
@@ -97,7 +97,7 @@ export async function up(knex: Knex): Promise<void> {
t.uuid("recordingConnectionId").nullable();
t.foreign("recordingConnectionId").references("id").inTable(TableName.AppConnection).onDelete("SET NULL");
- t.unique(["orgId", "name"]);
+ t.unique(["projectId", "name"]);
t.timestamps(true, true, true);
});
@@ -120,16 +120,16 @@ export async function up(knex: Knex): Promise<void> {
await knex.schema.createTable(TableName.PamFolder, (t) => {
t.uuid("id", { primaryKey: true }).defaultTo(knex.fn.uuid());
- t.uuid("orgId").notNullable();
- t.foreign("orgId").references("id").inTable(TableName.Organization).onDelete("CASCADE");
- t.index("orgId");
+ t.string("projectId").notNullable();
+ t.foreign("projectId").references("id").inTable(TableName.Project).onDelete("CASCADE");
+ t.index("projectId");
t.string("name").notNullable();
t.index("name");
t.text("description").nullable();
- t.unique(["orgId", "name"]);
+ t.unique(["projectId", "name"]);
t.timestamps(true, true, true);
});
@@ -144,10 +144,6 @@ export async function up(knex: Knex): Promise<void> {
await knex.raw(`ALTER TABLE ${TableName.PamAccount} DROP CONSTRAINT IF EXISTS chk_pam_account_parent`);
await knex.schema.alterTable(TableName.PamAccount, (t) => {
- t.uuid("orgId").nullable();
- t.foreign("orgId").references("id").inTable(TableName.Organization).onDelete("CASCADE");
- t.index("orgId");
-
t.uuid("templateId").nullable();
t.foreign("templateId").references("id").inTable(TableName.PamAccountTemplate).onDelete("RESTRICT");
t.index("templateId");
@@ -165,13 +161,6 @@ export async function up(knex: Knex): Promise<void> {
t.foreign("recordingConnectionId").references("id").inTable(TableName.AppConnection).onDelete("SET NULL");
});
- await knex.raw(`
- UPDATE ${TableName.PamAccount} a
- SET "orgId" = p."orgId"
- FROM ${TableName.Project} p
- WHERE a."projectId" = p.id
- `);
-
// Migrate data from old projects
initLogger();
const { hsmService } = await getMigrationHsmService({ envConfig: getMigrationHsmConfig() });
@@ -184,20 +173,17 @@ export async function up(knex: Knex): Promise<void> {
const getProjectCipher = async (projectId: string) =>
kmsService.createCipherPairWithDataKey({ type: KmsDataKey.SecretManager, projectId }, knex);
- const getOrgCipher = async (orgId: string) =>
- kmsService.createCipherPairWithDataKey({ type: KmsDataKey.Organization, orgId }, knex);
-
for (const { orgId } of orgsWithPam) {
const newProjectId = orgToPamProject.get(orgId)!;
- const orgCipher = await getOrgCipher(orgId);
+ const newProjectCipher = await getProjectCipher(newProjectId);
const reEncrypt = (oldCipher: Awaited<ReturnType<typeof getProjectCipher>>, blob?: Buffer | null) => {
if (!blob) return undefined;
const plainText = oldCipher.decryptor({ cipherTextBlob: blob });
- return orgCipher.encryptor({ plainText }).cipherTextBlob;
+ return newProjectCipher.encryptor({ plainText }).cipherTextBlob;
};
- const templates = await knex(TableName.PamAccountTemplate).where({ orgId }).select("id", "type");
+ const templates = await knex(TableName.PamAccountTemplate).where({ projectId: newProjectId }).select("id", "type");
const templateMap: Record<string, string> = {};
for (const t of templates) {
templateMap[t.type] = t.id;
@@ -212,16 +198,18 @@ export async function up(knex: Knex): Promise<void> {
for (const project of oldPamProjects) {
const folderName = slugify(project.name) || project.id.slice(0, 8);
- const [folder] = await knex(TableName.PamFolder).insert({ orgId, name: folderName }).returning("id");
+ const [folder] = await knex(TableName.PamFolder)
+ .insert({ projectId: newProjectId, name: folderName })
+ .returning("id");
projectToFolder[project.id] = folder.id;
}
- for (const [projectId, folderId] of Object.entries(projectToFolder)) {
- const oldProjectCipher = await getProjectCipher(projectId);
+ for (const [oldProjectId, folderId] of Object.entries(projectToFolder)) {
+ const oldProjectCipher = await getProjectCipher(oldProjectId);
const resourceAccounts = await knex(TableName.PamAccount)
.join(TableName.PamResource, `${TableName.PamAccount}.resourceId`, `${TableName.PamResource}.id`)
- .where(`${TableName.PamResource}.projectId`, projectId)
+ .where(`${TableName.PamResource}.projectId`, oldProjectId)
.select(
`${TableName.PamAccount}.id as accountId`,
`${TableName.PamAccount}.encryptedCredentials`,
@@ -239,6 +227,7 @@ export async function up(knex: Knex): Promise<void> {
await knex(TableName.PamAccount)
.where("id", account.accountId)
.update({
+ projectId: newProjectId,
folderId,
templateId,
encryptedCredentials: reEncrypt(oldProjectCipher, account.encryptedCredentials),
@@ -258,7 +247,7 @@ export async function up(knex: Knex): Promise<void> {
const domainAccounts = await knex(TableName.PamAccount)
.join(TableName.PamDomain, `${TableName.PamAccount}.domainId`, `${TableName.PamDomain}.id`)
- .where(`${TableName.PamDomain}.projectId`, projectId)
+ .where(`${TableName.PamDomain}.projectId`, oldProjectId)
.select(
`${TableName.PamAccount}.id as accountId`,
`${TableName.PamAccount}.encryptedCredentials`,
@@ -275,6 +264,7 @@ export async function up(knex: Knex): Promise<void> {
await knex(TableName.PamAccount)
.where("id", account.accountId)
.update({
+ projectId: newProjectId,
folderId,
templateId,
encryptedCredentials: reEncrypt(oldProjectCipher, account.encryptedCredentials),
@@ -404,7 +394,6 @@ export async function up(knex: Knex): Promise<void> {
await knex.raw(`DROP INDEX IF EXISTS "uidx_pam_account_root_name"`);
await knex.schema.alterTable(TableName.PamAccount, (t) => {
- t.uuid("orgId").notNullable().alter();
t.uuid("templateId").notNullable().alter();
t.binary("encryptedConnectionDetails").notNullable().alter();
t.unique(["folderId", "name"]);
@@ -412,27 +401,11 @@ export async function up(knex: Knex): Promise<void> {
// Sessions
await knex.schema.alterTable(TableName.PamSession, (t) => {
- t.uuid("orgId").nullable();
- t.foreign("orgId").references("id").inTable(TableName.Organization).onDelete("CASCADE");
- t.index("orgId");
t.string("folderName").nullable();
t.string("selectedHost").nullable();
});
- await knex.raw(`
- UPDATE ${TableName.PamSession} s
- SET "orgId" = p."orgId"
- FROM ${TableName.Project} p
- WHERE s."projectId" = p.id
- `);
-
- await knex(TableName.PamSession).whereNull("orgId").delete();
-
- await knex.schema.alterTable(TableName.PamSession, (t) => {
- t.uuid("orgId").notNullable().alter();
- });
-
- // Re-encrypt session data from project key to org key
+ // Re-encrypt session data from old project key to new consolidated project key
const SESSION_KEY_LENGTH = 32;
const AAD_LENGTH = 32;
const PAM_RECORDING_AAD_VERSION = "v1";
@@ -441,33 +414,45 @@ export async function up(knex: Knex): Promise<void> {
crypto.nativeCrypto.createHash("sha256").update(`${scopeId}|${sessionId}|${PAM_RECORDING_AAD_VERSION}`).digest();
const sessionsToMigrate = await knex(TableName.PamSession)
- .whereNotNull("projectId")
- .select("id", "projectId", "orgId", "encryptedSessionKey", "encryptedLogsBlob");
+ .join(TableName.Project, `${TableName.PamSession}.projectId`, `${TableName.Project}.id`)
+ .whereNotNull(`${TableName.PamSession}.projectId`)
+ .select(
+ `${TableName.PamSession}.id as id`,
+ `${TableName.PamSession}.projectId as projectId`,
+ `${TableName.Project}.orgId as orgId`,
+ `${TableName.PamSession}.encryptedSessionKey`,
+ `${TableName.PamSession}.encryptedLogsBlob`
+ );
const projectCipherCache = new Map<string, Awaited<ReturnType<typeof getProjectCipher>>>();
- const orgCipherCache = new Map<string, Awaited<ReturnType<typeof getOrgCipher>>>();
for (const session of sessionsToMigrate) {
try {
- const updates: Record<string, Buffer | undefined> = {};
+ const sessionNewProjectId = orgToPamProject.get(session.orgId);
+ if (!sessionNewProjectId || session.projectId === sessionNewProjectId) {
+ // eslint-disable-next-line no-continue
+ continue;
+ }
- if (session.encryptedSessionKey) {
- if (!projectCipherCache.has(session.projectId)) {
- projectCipherCache.set(session.projectId, await getProjectCipher(session.projectId));
- }
- if (!orgCipherCache.has(session.orgId)) {
- orgCipherCache.set(session.orgId, await getOrgCipher(session.orgId));
- }
- const oldCipher = projectCipherCache.get(session.projectId)!;
- const newCipher = orgCipherCache.get(session.orgId)!;
+ const updates: Record<string, Buffer | string | undefined> = { projectId: sessionNewProjectId };
+ if (!projectCipherCache.has(session.projectId)) {
+ projectCipherCache.set(session.projectId, await getProjectCipher(session.projectId));
+ }
+ if (!projectCipherCache.has(sessionNewProjectId)) {
+ projectCipherCache.set(sessionNewProjectId, await getProjectCipher(sessionNewProjectId));
+ }
+ const oldCipher = projectCipherCache.get(session.projectId)!;
+ const newCipher = projectCipherCache.get(sessionNewProjectId)!;
+
+ if (session.encryptedSessionKey) {
const decrypted = oldCipher.decryptor({ cipherTextBlob: session.encryptedSessionKey });
const oldAad = decrypted.subarray(0, AAD_LENGTH);
const sessionKey = decrypted.subarray(AAD_LENGTH, AAD_LENGTH + SESSION_KEY_LENGTH);
const expectedOldAad = buildWrapAad(session.projectId, session.id);
if (crypto.nativeCrypto.timingSafeEqual(oldAad, expectedOldAad)) {
- const newAad = buildWrapAad(session.orgId, session.id);
+ const newAad = buildWrapAad(sessionNewProjectId, session.id);
const newPayload = Buffer.concat([newAad, sessionKey]);
updates.encryptedSessionKey = newCipher.encryptor({ plainText: newPayload }).cipherTextBlob;
} else {
@@ -478,22 +463,11 @@ export async function up(knex: Knex): Promise<void> {
}
if (session.encryptedLogsBlob) {
- if (!projectCipherCache.has(session.projectId)) {
- projectCipherCache.set(session.projectId, await getProjectCipher(session.projectId));
- }
- if (!orgCipherCache.has(session.orgId)) {
- orgCipherCache.set(session.orgId, await getOrgCipher(session.orgId));
- }
- const oldCipher = projectCipherCache.get(session.projectId)!;
- const newCipher = orgCipherCache.get(session.orgId)!;
-
const plainText = oldCipher.decryptor({ cipherTextBlob: session.encryptedLogsBlob });
updates.encryptedLogsBlob = newCipher.encryptor({ plainText }).cipherTextBlob;
}
- if (Object.keys(updates).length > 0) {
- await knex(TableName.PamSession).where("id", session.id).update(updates);
- }
+ await knex(TableName.PamSession).where("id", session.id).update(updates);
} catch (err) {
logger.warn(
{ err, sessionId: session.id },
diff --git a/backend/src/db/schemas/pam-account-templates.ts b/backend/src/db/schemas/pam-account-templates.ts
index 25754e210d..59146aca09 100644
--- a/backend/src/db/schemas/pam-account-templates.ts
+++ b/backend/src/db/schemas/pam-account-templates.ts
@@ -9,7 +9,7 @@ import { TImmutableDBKeys } from "./models";
export const PamAccountTemplatesSchema = z.object({
id: z.string().uuid(),
- orgId: z.string().uuid(),
+ projectId: z.string(),
name: z.string(),
description: z.string().nullable().optional(),
type: z.string(),
diff --git a/backend/src/db/schemas/pam-accounts.ts b/backend/src/db/schemas/pam-accounts.ts
index 00f255407e..1d39f85424 100644
--- a/backend/src/db/schemas/pam-accounts.ts
+++ b/backend/src/db/schemas/pam-accounts.ts
@@ -27,7 +27,6 @@ export const PamAccountsSchema = z.object({
discoveryFingerprint: z.string().nullable().optional(),
policyId: z.string().uuid().nullable().optional(),
domainId: z.string().uuid().nullable().optional(),
- orgId: z.string().uuid(),
templateId: z.string().uuid(),
encryptedConnectionDetails: zodBuffer,
encryptedInternalMetadata: zodBuffer.nullable().optional(),
diff --git a/backend/src/db/schemas/pam-folders.ts b/backend/src/db/schemas/pam-folders.ts
index 360937ba94..f9d079b950 100644
--- a/backend/src/db/schemas/pam-folders.ts
+++ b/backend/src/db/schemas/pam-folders.ts
@@ -9,7 +9,7 @@ import { TImmutableDBKeys } from "./models";
export const PamFoldersSchema = z.object({
id: z.string().uuid(),
- orgId: z.string().uuid(),
+ projectId: z.string(),
name: z.string(),
description: z.string().nullable().optional(),
createdAt: z.date(),
diff --git a/backend/src/db/schemas/pam-sessions.ts b/backend/src/db/schemas/pam-sessions.ts
index d8938ebe05..26b8d99941 100644
--- a/backend/src/db/schemas/pam-sessions.ts
+++ b/backend/src/db/schemas/pam-sessions.ts
@@ -38,7 +38,6 @@ export const PamSessionsSchema = z.object({
encryptedSessionKey: zodBuffer.nullable().optional(),
gatewayUploadTokenHash: zodBuffer.nullable().optional(),
gatewayId: z.string().uuid().nullable().optional(),
- orgId: z.string().uuid(),
folderName: z.string().nullable().optional(),
selectedHost: z.string().nullable().optional()
});
diff --git a/backend/src/ee/services/pam-instance/pam-project-bootstrap.ts b/backend/src/ee/services/pam-instance/pam-project-bootstrap.ts
index a2362fd2c3..ab6c6c13f7 100644
--- a/backend/src/ee/services/pam-instance/pam-project-bootstrap.ts
+++ b/backend/src/ee/services/pam-instance/pam-project-bootstrap.ts
@@ -274,7 +274,7 @@ export const bootstrapPamProject = async (
for (const template of DEFAULT_ACCOUNT_TEMPLATES) {
// eslint-disable-next-line no-await-in-loop
await tx(TableName.PamAccountTemplate).insert({
- orgId,
+ projectId: project.id,
name: template.name,
type: template.type,
accessPolicy: JSON.stringify(template.accessPolicy),
diff --git a/backend/src/ee/services/pam-instance/pam-project-resolver.ts b/backend/src/ee/services/pam-instance/pam-project-resolver.ts
new file mode 100644
index 0000000000..65c78ca59e
--- /dev/null
+++ b/backend/src/ee/services/pam-instance/pam-project-resolver.ts
@@ -0,0 +1,30 @@
+import { ProjectType } from "@app/db/schemas";
+import { KeyStorePrefixes, KeyStoreTtls, TKeyStoreFactory } from "@app/keystore/keystore";
+import { withCache } from "@app/lib/cache/with-cache";
+import { BadRequestError } from "@app/lib/errors";
+import { TProjectDALFactory } from "@app/services/project/project-dal";
+
+type TResolverDeps = {
+ projectDAL: Pick<TProjectDALFactory, "find">;
+ keyStore: Pick<TKeyStoreFactory, "getItem" | "setItemWithExpiry">;
+};
+
+export type TPamProjectResolverFactory = ReturnType<typeof pamProjectResolverFactory>;
+
+export const pamProjectResolverFactory = ({ projectDAL, keyStore }: TResolverDeps) => ({
+ resolve: (actorOrgId: string): Promise<string> =>
+ withCache({
+ keyStore,
+ key: KeyStorePrefixes.PamDefaultProject(actorOrgId),
+ ttlSeconds: KeyStoreTtls.PamDefaultProjectInSeconds,
+ fetcher: async () => {
+ const projects = await projectDAL.find({ orgId: actorOrgId, type: ProjectType.PAM });
+ if (projects.length === 0) {
+ throw new BadRequestError({
+ message: "This organization has no Access Management project. Contact your administrator."
+ });
+ }
+ return projects[0].id;
+ }
+ })
+});
diff --git a/backend/src/keystore/keystore.ts b/backend/src/keystore/keystore.ts
index 7c57d7cc33..7bd6451a27 100644
--- a/backend/src/keystore/keystore.ts
+++ b/backend/src/keystore/keystore.ts
@@ -109,6 +109,7 @@ export const KeyStorePrefixes = {
SecretEtag: (projectId: string, dayStamp: string) => `secret-etag:${projectId}:${dayStamp}` as const,
PamAwsIamAccessKeyId: (sessionId: string) => `pam-aws-iam-access-key-id:${sessionId}` as const,
+ PamDefaultProject: (orgId: string) => `pam-default-project:${orgId}` as const,
CertDashboardStats: (projectId: string) => `cert-dashboard-stats:${projectId}` as const,
CertActivityTrend: (projectId: string, range: string) => `cert-activity-trend:${projectId}:${range}` as const,
@@ -154,6 +155,7 @@ export const KeyStoreTtls = {
InvalidatingCacheInSeconds: 1800, // 30 minutes max lock for cache invalidation job
AuditLogMigrationAlertInSeconds: 604800, // 7 days
LicenseCloudPlanInSeconds: 300, // 5 minutes
+ PamDefaultProjectInSeconds: 300, // 5 minutes
AiMcpEndpointOAuthFlowInSeconds: 300, // 5 minutes
AiMcpServerOAuthSessionInSeconds: 600, // 10 minutes
DashboardCacheInSeconds: 600, // 10 minutes
diff --git a/backend/src/server/plugins/inject-pam-project-id.ts b/backend/src/server/plugins/inject-pam-project-id.ts
new file mode 100644
index 0000000000..1e40e7688c
--- /dev/null
+++ b/backend/src/server/plugins/inject-pam-project-id.ts
@@ -0,0 +1,17 @@
+import { FastifyPluginAsync } from "fastify";
+import fp from "fastify-plugin";
+
+const PAM_PREFIX = "/api/v1/pam/";
+
+export const injectPamProjectId: FastifyPluginAsync = fp(async (server) => {
+ server.decorateRequest("internalPamProjectId", "");
+
+ server.addHook("preValidation", async (req) => {
+ if (!req.permission?.orgId) return;
+
+ const routePath = req.routeOptions.url ?? "";
+ if (!routePath.startsWith(PAM_PREFIX)) return;
+
+ req.internalPamProjectId = await server.services.pamProjectResolver.resolve(req.permission.orgId);
+ });
+});
diff --git a/backend/src/server/routes/index.ts b/backend/src/server/routes/index.ts
index 338a74e3a5..8089c3b77c 100644
--- a/backend/src/server/routes/index.ts
+++ b/backend/src/server/routes/index.ts
@@ -95,6 +95,7 @@ import { licenseDALFactory } from "@app/ee/services/license/license-dal";
import { licenseServiceFactory } from "@app/ee/services/license/license-service";
import { oidcConfigDALFactory } from "@app/ee/services/oidc/oidc-config-dal";
import { oidcConfigServiceFactory } from "@app/ee/services/oidc/oidc-config-service";
+import { pamProjectResolverFactory } from "@app/ee/services/pam-instance/pam-project-resolver";
import { permissionDALFactory } from "@app/ee/services/permission/permission-dal";
import { permissionServiceFactory } from "@app/ee/services/permission/permission-service";
import { pitServiceFactory } from "@app/ee/services/pit/pit-service";
@@ -1482,6 +1483,11 @@ export const registerRoutes = async (
projectDAL
});
+ const pamProjectResolver = pamProjectResolverFactory({
+ projectDAL,
+ keyStore
+ });
+
const certManagerInstanceService = certManagerInstanceServiceFactory({
db,
orgDAL,
@@ -3367,6 +3373,7 @@ export const registerRoutes = async (
signerPolicy: signerPolicyService,
pkiApplicationEnrollment: pkiApplicationEnrollmentService,
certManagerProjectResolver,
+ pamProjectResolver,
certManagerInstance: certManagerInstanceService,
certManagerExport: certManagerExportService,
certificateAuthorityCrl: certificateAuthorityCrlService,