Skip to content

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

UI improvements

Carlos Monastyrskia1b52ed093ee
diff --git a/backend/src/db/schemas/models.ts b/backend/src/db/schemas/models.ts
index 01f4f221d4..286e398d2e 100644
--- a/backend/src/db/schemas/models.ts
+++ b/backend/src/db/schemas/models.ts
@@ -333,7 +333,7 @@ export enum OrgMembershipRole {
NoAccess = "no-access",
Custom = "custom",
CertManagerAdmin = "cert-manager-admin",
- CertManagerGuest = "cert-manager-guest"
+ CertManagerMember = "cert-manager-member"
}
export enum OrgMembershipStatus {
diff --git a/backend/src/ee/services/permission/org-permission.ts b/backend/src/ee/services/permission/org-permission.ts
index 5923fc69f9..74bdbe9e3b 100644
--- a/backend/src/ee/services/permission/org-permission.ts
+++ b/backend/src/ee/services/permission/org-permission.ts
@@ -633,7 +633,7 @@ const buildCertManagerAdminPermission = () => {
};
export const orgCertManagerAdminPermissions = buildCertManagerAdminPermission();
-const buildCertManagerGuestPermission = () => {
+const buildCertManagerMemberPermission = () => {
const { can, rules } = new AbilityBuilder<MongoAbility<OrgPermissionSet>>(createMongoAbility);
can(OrgPermissionActions.Read, OrgPermissionSubjects.Member);
can(OrgPermissionGroupActions.Read, OrgPermissionSubjects.Groups);
@@ -641,4 +641,4 @@ const buildCertManagerGuestPermission = () => {
can(OrgPermissionCertManagerActions.Read, OrgPermissionSubjects.CertManager);
return rules;
};
-export const orgCertManagerGuestPermissions = buildCertManagerGuestPermission();
+export const orgCertManagerMemberPermissions = buildCertManagerMemberPermission();
diff --git a/backend/src/ee/services/permission/permission-service.ts b/backend/src/ee/services/permission/permission-service.ts
index 83bd4aa941..81c0931f06 100644
--- a/backend/src/ee/services/permission/permission-service.ts
+++ b/backend/src/ee/services/permission/permission-service.ts
@@ -43,7 +43,7 @@ import { TUserDALFactory } from "@app/services/user/user-dal";
import {
orgAdminPermissions,
orgCertManagerAdminPermissions,
- orgCertManagerGuestPermissions,
+ orgCertManagerMemberPermissions,
orgMemberPermissions,
orgNoAccessPermissions,
OrgPermissionSet,
@@ -72,8 +72,8 @@ const buildOrgPermissionRules = (orgUserRoles: TBuildOrgPermissionDTO) => {
return orgNoAccessPermissions;
case OrgMembershipRole.CertManagerAdmin:
return orgCertManagerAdminPermissions;
- case OrgMembershipRole.CertManagerGuest:
- return orgCertManagerGuestPermissions;
+ case OrgMembershipRole.CertManagerMember:
+ return orgCertManagerMemberPermissions;
case OrgMembershipRole.Custom:
return unpackRules<RawRuleOf<MongoAbility<OrgPermissionSet>>>(
permissions as PackRule<RawRuleOf<MongoAbility<OrgPermissionSet>>>[]
diff --git a/backend/src/ee/services/pki-acme/pki-acme-service.ts b/backend/src/ee/services/pki-acme/pki-acme-service.ts
index 884928dd60..5b9835f13c 100644
--- a/backend/src/ee/services/pki-acme/pki-acme-service.ts
+++ b/backend/src/ee/services/pki-acme/pki-acme-service.ts
@@ -431,7 +431,14 @@ export const pkiAcmeServiceFactory = ({
const getAcmeDirectory = async (profileId: string, applicationId?: string): Promise<TGetAcmeDirectoryResponse> => {
const profile = await validateAcmeProfile(profileId);
- const skipEabBinding = profile.acmeConfig?.skipEabBinding ?? false;
+ let skipEabBinding = profile.acmeConfig?.skipEabBinding ?? false;
+ if (applicationId) {
+ const junctionRow = await pkiApplicationProfileDAL.findOne(applicationId, profile.id);
+ const junctionAcmeConfig = junctionRow?.acmeConfigId
+ ? await acmeEnrollmentConfigDAL.findById(junctionRow.acmeConfigId)
+ : null;
+ skipEabBinding = junctionAcmeConfig?.skipEabBinding ?? false;
+ }
return {
newNonce: buildUrl(profile.id, "/new-nonce"),
newAccount: buildUrl(profile.id, "/new-account", applicationId),
diff --git a/backend/src/ee/services/pki-scep/pki-scep-service.ts b/backend/src/ee/services/pki-scep/pki-scep-service.ts
index 1e7a5996b3..8c89628c31 100644
--- a/backend/src/ee/services/pki-scep/pki-scep-service.ts
+++ b/backend/src/ee/services/pki-scep/pki-scep-service.ts
@@ -188,6 +188,7 @@ export const pkiScepServiceFactory = ({
throw new NotFoundError({ message: "SCEP profile not found" });
}
+ let resolvedScepConfigId: string | null;
if (applicationId && pkiApplicationProfileDAL) {
const junction = await pkiApplicationProfileDAL.findOne(applicationId, profileId);
if (!junction) {
@@ -195,11 +196,18 @@ export const pkiScepServiceFactory = ({
message: `Profile '${profileId}' is not attached to application '${applicationId}'.`
});
}
+ resolvedScepConfigId = junction.scepConfigId ?? null;
+ } else {
+ resolvedScepConfigId = profile.scepConfigId ?? null;
}
- return getScepCapabilities({
- allowCertBasedRenewal: profile.scepConfig?.allowCertBasedRenewal ?? false
- });
+ let allowCertBasedRenewal = false;
+ if (resolvedScepConfigId) {
+ const scepConfig = await scepEnrollmentConfigDAL.findById(resolvedScepConfigId);
+ allowCertBasedRenewal = scepConfig?.allowCertBasedRenewal ?? false;
+ }
+
+ return getScepCapabilities({ allowCertBasedRenewal });
};
const getCaCert = async ({ profileId, applicationId }: TGetCaCertDTO): Promise<Buffer> => {
diff --git a/backend/src/server/plugins/block-cert-manager-project-access.ts b/backend/src/server/plugins/block-cert-manager-project-access.ts
index 05b30dfd24..23d011f7f1 100644
--- a/backend/src/server/plugins/block-cert-manager-project-access.ts
+++ b/backend/src/server/plugins/block-cert-manager-project-access.ts
@@ -19,7 +19,7 @@ export const blockCertManagerProjectAccess: FastifyPluginAsync = fp(async (serve
if (isCertManager) {
throw new ForbiddenRequestError({
message:
- "This Cert Manager project does not support project-level memberships. Use /api/v1/cert-manager/access/* instead."
+ "This Certificate Manager project does not support project-level memberships. Use /api/v1/cert-manager/access/* instead."
});
}
});
diff --git a/backend/src/server/plugins/inject-cert-manager-project-id.ts b/backend/src/server/plugins/inject-cert-manager-project-id.ts
index cb9d2569e0..de3edefbbc 100644
--- a/backend/src/server/plugins/inject-cert-manager-project-id.ts
+++ b/backend/src/server/plugins/inject-cert-manager-project-id.ts
@@ -31,7 +31,7 @@ export const injectCertManagerProjectId: FastifyPluginAsync = fp(async (server)
const isCertManager = await server.services.certManagerProjectResolver.isCertManagerProject(explicit);
if (!isCertManager) {
throw new BadRequestError({
- message: "The supplied projectId does not reference a Cert Manager project."
+ message: "The supplied projectId does not reference a Certificate Manager project."
});
}
req.internalCertManagerProjectId = explicit;
diff --git a/backend/src/server/routes/v1/cert-manager-access-routers/roles-router.ts b/backend/src/server/routes/v1/cert-manager-access-routers/roles-router.ts
index 5265930c81..ec354e336a 100644
--- a/backend/src/server/routes/v1/cert-manager-access-routers/roles-router.ts
+++ b/backend/src/server/routes/v1/cert-manager-access-routers/roles-router.ts
@@ -10,7 +10,7 @@ import { SanitizedRoleSchema } from "../../sanitizedSchemas";
const CERT_MANAGER_ROLE_SLUGS = new Set([ProjectMembershipRole.Admin, ProjectMembershipRole.Member]);
const CERT_MANAGER_CUSTOM_ROLE_ERROR =
- "Cert Manager does not support custom roles. Use the built-in Admin or Guest role.";
+ "Certificate Manager does not support custom roles. Use the built-in Admin or Member role.";
export const registerCertManagerAccessRolesRouter = async (server: FastifyZodProvider) => {
server.route({
@@ -34,12 +34,7 @@ export const registerCertManagerAccessRolesRouter = async (server: FastifyZodPro
data: {}
});
return {
- roles: roles
- .filter((el) => CERT_MANAGER_ROLE_SLUGS.has(el.slug as ProjectMembershipRole))
- .map((el) => ({
- ...el,
- name: el.slug === ProjectMembershipRole.Member ? "Guest" : el.name
- }))
+ roles: roles.filter((el) => CERT_MANAGER_ROLE_SLUGS.has(el.slug as ProjectMembershipRole))
};
}
});
diff --git a/backend/src/server/routes/v1/cert-manager-access-routers/users-router.ts b/backend/src/server/routes/v1/cert-manager-access-routers/users-router.ts
index 926bec2c61..6954ac8545 100644
--- a/backend/src/server/routes/v1/cert-manager-access-routers/users-router.ts
+++ b/backend/src/server/routes/v1/cert-manager-access-routers/users-router.ts
@@ -24,7 +24,7 @@ export const registerCertManagerAccessUsersRouter = async (server: FastifyZodPro
hide: false,
operationId: "listCertManagerUsers",
tags: [ApiDocsTags.PkiCertificates],
- description: "List Cert Manager users.",
+ description: "List Certificate Manager users.",
response: {
200: z.object({
memberships: ProjectMembershipsSchema.extend({
@@ -90,7 +90,7 @@ export const registerCertManagerAccessUsersRouter = async (server: FastifyZodPro
hide: false,
operationId: "inviteCertManagerUsers",
tags: [ApiDocsTags.PkiCertificates],
- description: "Invite users to Cert Manager.",
+ description: "Invite users to Certificate Manager.",
body: z.object({
emails: z
.string()
diff --git a/backend/src/server/routes/v1/cert-manager-instance-router.ts b/backend/src/server/routes/v1/cert-manager-instance-router.ts
index ddc0c2f7b2..8744b5b7c2 100644
--- a/backend/src/server/routes/v1/cert-manager-instance-router.ts
+++ b/backend/src/server/routes/v1/cert-manager-instance-router.ts
@@ -35,7 +35,7 @@ export const registerCertManagerInstanceRouter = async (server: FastifyZodProvid
hide: true,
operationId: "getCertManagerInstanceState",
description:
- "Get the active Cert Manager project and the list of legacy Cert Manager projects in this organization.",
+ "Get the active Certificate Manager project and the list of legacy Certificate Manager projects in this organization.",
tags: [ApiDocsTags.CertManagerInstance],
response: { 200: InstanceStateSchema }
},
@@ -72,7 +72,8 @@ export const registerCertManagerInstanceRouter = async (server: FastifyZodProvid
schema: {
hide: true,
operationId: "listCertManagerLegacyInstances",
- description: "List all Cert Manager projects in the organization with their certificate, sync, and alert counts.",
+ description:
+ "List all Certificate Manager projects in the organization with their certificate, sync, and alert counts.",
tags: [ApiDocsTags.CertManagerInstance],
response: {
200: z.object({
@@ -100,7 +101,7 @@ export const registerCertManagerInstanceRouter = async (server: FastifyZodProvid
hide: true,
operationId: "setCertManagerActiveProject",
description:
- "Set the active Cert Manager project for this organization. New API requests resolve to this project when no projectId is supplied.",
+ "Set the active Certificate Manager project for this organization. New API requests resolve to this project when no projectId is supplied.",
tags: [ApiDocsTags.CertManagerInstance],
body: z.object({ projectId: z.string().uuid() }),
response: {
diff --git a/backend/src/server/routes/v1/certificate-inventory-view-router.ts b/backend/src/server/routes/v1/certificate-inventory-view-router.ts
index 92a6f4da4e..bf890def04 100644
--- a/backend/src/server/routes/v1/certificate-inventory-view-router.ts
+++ b/backend/src/server/routes/v1/certificate-inventory-view-router.ts
@@ -20,6 +20,7 @@ const InventoryViewFiltersSchema = z
keySizes: z.array(z.number().int().positive()).max(10).optional(),
caIds: z.array(z.string().uuid()).max(50).optional(),
profileIds: z.array(z.string().uuid()).max(50).optional(),
+ applicationIds: z.array(z.string().uuid()).max(50).optional(),
source: z.union([z.string().max(64), z.array(z.string().max(64)).max(10)]).optional()
})
.strict();
diff --git a/backend/src/server/routes/v1/pki-alert-router.ts b/backend/src/server/routes/v1/pki-alert-router.ts
index 8c095ee7dd..fde03f9516 100644
--- a/backend/src/server/routes/v1/pki-alert-router.ts
+++ b/backend/src/server/routes/v1/pki-alert-router.ts
@@ -32,11 +32,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {
tags: [ApiDocsTags.PkiAlerting],
body: BasePkiAlertV2Schema.extend({
projectId: z.string().uuid().optional().describe(openApiHidden()),
- applicationId: z
- .string()
- .uuid()
- .optional()
- .describe("Optional Cert Manager Application this alert is scoped to")
+ applicationId: z.string().uuid().optional().describe("Optional Application this alert is scoped to")
}),
response: {
200: z.object({
diff --git a/backend/src/server/routes/v1/pki-application-alert-router.ts b/backend/src/server/routes/v1/pki-application-alert-router.ts
index ff3efb1fdb..00a2f7c4ff 100644
--- a/backend/src/server/routes/v1/pki-application-alert-router.ts
+++ b/backend/src/server/routes/v1/pki-application-alert-router.ts
@@ -22,7 +22,7 @@ export const registerPkiApplicationAlertRoutes = async (server: FastifyZodProvid
schema: {
hide: false,
operationId: "listPkiApplicationAlerts",
- description: "List alerts for a Cert Manager application.",
+ description: "List alerts for a application.",
tags: [ApiDocsTags.PkiApplications],
params: ApplicationIdParamsSchema,
querystring: z.object({
@@ -66,7 +66,7 @@ export const registerPkiApplicationAlertRoutes = async (server: FastifyZodProvid
schema: {
hide: false,
operationId: "createPkiApplicationAlert",
- description: "Create an alert on a Cert Manager application.",
+ description: "Create an alert on a application.",
tags: [ApiDocsTags.PkiApplications],
params: ApplicationIdParamsSchema,
body: BasePkiAlertV2Schema,
@@ -110,7 +110,7 @@ export const registerPkiApplicationAlertRoutes = async (server: FastifyZodProvid
schema: {
hide: false,
operationId: "updatePkiApplicationAlert",
- description: "Update an alert on a Cert Manager application.",
+ description: "Update an alert on a application.",
tags: [ApiDocsTags.PkiApplications],
params: z.object({
applicationId: z.string().uuid(),
@@ -157,7 +157,7 @@ export const registerPkiApplicationAlertRoutes = async (server: FastifyZodProvid
schema: {
hide: false,
operationId: "deletePkiApplicationAlert",
- description: "Delete an alert from a Cert Manager application.",
+ description: "Delete an alert from a application.",
tags: [ApiDocsTags.PkiApplications],
params: z.object({
applicationId: z.string().uuid(),
diff --git a/backend/src/server/routes/v1/pki-application-enrollment-routers/acme-enrollment-router.ts b/backend/src/server/routes/v1/pki-application-enrollment-routers/acme-enrollment-router.ts
index b5c5ab9126..193579c254 100644
--- a/backend/src/server/routes/v1/pki-application-enrollment-routers/acme-enrollment-router.ts
+++ b/backend/src/server/routes/v1/pki-application-enrollment-routers/acme-enrollment-router.ts
@@ -14,7 +14,7 @@ export const registerPkiApplicationAcmeEnrollmentRouter = async (server: Fastify
schema: {
hide: false,
operationId: "setPkiApplicationAcmeEnrollment",
- description: "Enable or update the ACME enrollment method for a profile on a Cert Manager application.",
+ description: "Enable or update the ACME enrollment method for a profile on a application.",
tags: [ApiDocsTags.PkiApplications],
params: z.object({ applicationId: z.string().uuid(), profileId: z.string().uuid() }),
body: z
@@ -77,7 +77,7 @@ export const registerPkiApplicationAcmeEnrollmentRouter = async (server: Fastify
schema: {
hide: false,
operationId: "clearPkiApplicationAcmeEnrollment",
- description: "Disable the ACME enrollment method for a profile on a Cert Manager application.",
+ description: "Disable the ACME enrollment method for a profile on a application.",
tags: [ApiDocsTags.PkiApplications],
params: z.object({ applicationId: z.string().uuid(), profileId: z.string().uuid() }),
response: { 200: z.object({ applicationId: z.string().uuid(), profileId: z.string().uuid() }) }
@@ -112,7 +112,7 @@ export const registerPkiApplicationAcmeEnrollmentRouter = async (server: Fastify
schema: {
hide: false,
operationId: "revealPkiApplicationAcmeEabSecret",
- description: "Reveal the ACME EAB secret for a profile on a Cert Manager application.",
+ description: "Reveal the ACME EAB secret for a profile on a application.",
tags: [ApiDocsTags.PkiApplications],
params: z.object({ applicationId: z.string().uuid(), profileId: z.string().uuid() }),
response: {
@@ -154,7 +154,7 @@ export const registerPkiApplicationAcmeEnrollmentRouter = async (server: Fastify
schema: {
hide: false,
operationId: "rotatePkiApplicationAcmeEabSecret",
- description: "Rotate the ACME EAB secret for a profile on a Cert Manager application.",
+ description: "Rotate the ACME EAB secret for a profile on a application.",
tags: [ApiDocsTags.PkiApplications],
params: z.object({ applicationId: z.string().uuid(), profileId: z.string().uuid() }),
response: { 200: z.object({ applicationId: z.string().uuid(), profileId: z.string().uuid() }) }
diff --git a/backend/src/server/routes/v1/pki-application-enrollment-routers/api-enrollment-router.ts b/backend/src/server/routes/v1/pki-application-enrollment-routers/api-enrollment-router.ts
index 6495f20414..11429509e5 100644
--- a/backend/src/server/routes/v1/pki-application-enrollment-routers/api-enrollment-router.ts
+++ b/backend/src/server/routes/v1/pki-application-enrollment-routers/api-enrollment-router.ts
@@ -20,7 +20,7 @@ export const registerPkiApplicationApiEnrollmentRouter = async (server: FastifyZ
schema: {
hide: false,
operationId: "setPkiApplicationApiEnrollment",
- description: "Enable or update the API enrollment method for a profile on a Cert Manager application.",
+ description: "Enable or update the API enrollment method for a profile on a application.",
tags: [ApiDocsTags.PkiApplications],
params: z.object({
applicationId: z.string().uuid(),
@@ -79,7 +79,7 @@ export const registerPkiApplicationApiEnrollmentRouter = async (server: FastifyZ
schema: {
hide: false,
operationId: "clearPkiApplicationApiEnrollment",
- description: "Disable the API enrollment method for a profile on a Cert Manager application.",
+ description: "Disable the API enrollment method for a profile on a application.",
tags: [ApiDocsTags.PkiApplications],
params: z.object({
applicationId: z.string().uuid(),
diff --git a/backend/src/server/routes/v1/pki-application-enrollment-routers/enrollment-state-router.ts b/backend/src/server/routes/v1/pki-application-enrollment-routers/enrollment-state-router.ts
index a99c44c463..f19dfaf8e3 100644
--- a/backend/src/server/routes/v1/pki-application-enrollment-routers/enrollment-state-router.ts
+++ b/backend/src/server/routes/v1/pki-application-enrollment-routers/enrollment-state-router.ts
@@ -59,7 +59,7 @@ export const registerPkiApplicationEnrollmentStateRouter = async (server: Fastif
schema: {
hide: false,
operationId: "getPkiApplicationEnrollment",
- description: "Get the enrollment state for a profile on a Cert Manager application.",
+ description: "Get the enrollment state for a profile on a application.",
tags: [ApiDocsTags.PkiApplications],
params: z.object({
applicationId: z.string().uuid(),
diff --git a/backend/src/server/routes/v1/pki-application-enrollment-routers/est-enrollment-router.ts b/backend/src/server/routes/v1/pki-application-enrollment-routers/est-enrollment-router.ts
index a501b154a2..5b10d912fd 100644
--- a/backend/src/server/routes/v1/pki-application-enrollment-routers/est-enrollment-router.ts
+++ b/backend/src/server/routes/v1/pki-application-enrollment-routers/est-enrollment-router.ts
@@ -14,7 +14,7 @@ export const registerPkiApplicationEstEnrollmentRouter = async (server: FastifyZ
schema: {
hide: false,
operationId: "setPkiApplicationEstEnrollment",
- description: "Enable or update the EST enrollment method for a profile on a Cert Manager application.",
+ description: "Enable or update the EST enrollment method for a profile on a application.",
tags: [ApiDocsTags.PkiApplications],
params: z.object({ applicationId: z.string().uuid(), profileId: z.string().uuid() }),
body: z.object({
@@ -69,7 +69,7 @@ export const registerPkiApplicationEstEnrollmentRouter = async (server: FastifyZ
schema: {
hide: false,
operationId: "clearPkiApplicationEstEnrollment",
- description: "Disable the EST enrollment method for a profile on a Cert Manager application.",
+ description: "Disable the EST enrollment method for a profile on a application.",
tags: [ApiDocsTags.PkiApplications],
params: z.object({ applicationId: z.string().uuid(), profileId: z.string().uuid() }),
response: {
diff --git a/backend/src/server/routes/v1/pki-application-enrollment-routers/scep-enrollment-router.ts b/backend/src/server/routes/v1/pki-application-enrollment-routers/scep-enrollment-router.ts
index be35178949..6475ae1ec6 100644
--- a/backend/src/server/routes/v1/pki-application-enrollment-routers/scep-enrollment-router.ts
+++ b/backend/src/server/routes/v1/pki-application-enrollment-routers/scep-enrollment-router.ts
@@ -15,7 +15,7 @@ export const registerPkiApplicationScepEnrollmentRouter = async (server: Fastify
schema: {
hide: false,
operationId: "setPkiApplicationScepEnrollment",
- description: "Enable or update the SCEP enrollment method for a profile on a Cert Manager application.",
+ description: "Enable or update the SCEP enrollment method for a profile on a application.",
tags: [ApiDocsTags.PkiApplications],
params: z.object({ applicationId: z.string().uuid(), profileId: z.string().uuid() }),
body: z.object({
@@ -69,7 +69,7 @@ export const registerPkiApplicationScepEnrollmentRouter = async (server: Fastify
schema: {
hide: false,
operationId: "clearPkiApplicationScepEnrollment",
- description: "Disable the SCEP enrollment method for a profile on a Cert Manager application.",
+ description: "Disable the SCEP enrollment method for a profile on a application.",
tags: [ApiDocsTags.PkiApplications],
params: z.object({ applicationId: z.string().uuid(), profileId: z.string().uuid() }),
response: { 200: z.object({ applicationId: z.string().uuid(), profileId: z.string().uuid() }) }
diff --git a/backend/src/server/routes/v1/pki-application-membership-routers/groups-router.ts b/backend/src/server/routes/v1/pki-application-membership-routers/groups-router.ts
index 45987714af..2872d32b97 100644
--- a/backend/src/server/routes/v1/pki-application-membership-routers/groups-router.ts
+++ b/backend/src/server/routes/v1/pki-application-membership-routers/groups-router.ts
@@ -23,7 +23,7 @@ export const registerPkiApplicationGroupMembershipRouter = async (server: Fastif
schema: {
hide: false,
operationId: "listPkiApplicationGroupMembers",
- description: "List group members of a Cert Manager application.",
+ description: "List group members of a application.",
tags: [ApiDocsTags.PkiApplications],
params: ApplicationIdParamsSchema,
response: { 200: z.object({ memberships: z.array(ApplicationMemberSchema) }) }
@@ -60,7 +60,7 @@ export const registerPkiApplicationGroupMembershipRouter = async (server: Fastif
schema: {
hide: false,
operationId: "addPkiApplicationGroupMember",
- description: "Add a group as a member of a Cert Manager application.",
+ description: "Add a group as a member of a application.",
tags: [ApiDocsTags.PkiApplications],
params: GroupParamsSchema,
body: RoleBodySchema,
@@ -106,7 +106,7 @@ export const registerPkiApplicationGroupMembershipRouter = async (server: Fastif
schema: {
hide: false,
operationId: "updatePkiApplicationGroupMemberRole",
- description: "Update the role of a group member on a Cert Manager application.",
+ description: "Update the role of a group member on a application.",
tags: [ApiDocsTags.PkiApplications],
params: GroupParamsSchema,
body: RoleBodySchema,
@@ -153,7 +153,7 @@ export const registerPkiApplicationGroupMembershipRouter = async (server: Fastif
schema: {
hide: false,
operationId: "removePkiApplicationGroupMember",
- description: "Remove a group from a Cert Manager application.",
+ description: "Remove a group from a application.",
tags: [ApiDocsTags.PkiApplications],
params: GroupParamsSchema,
response: { 200: RemoveResponseSchema }
diff --git a/backend/src/server/routes/v1/pki-application-membership-routers/identities-router.ts b/backend/src/server/routes/v1/pki-application-membership-routers/identities-router.ts
index 2eac816581..4be69e7da0 100644
--- a/backend/src/server/routes/v1/pki-application-membership-routers/identities-router.ts
+++ b/backend/src/server/routes/v1/pki-application-membership-routers/identities-router.ts
@@ -23,7 +23,7 @@ export const registerPkiApplicationIdentityMembershipRouter = async (server: Fas
schema: {
hide: false,
operationId: "listPkiApplicationIdentityMembers",
- description: "List identity members of a Cert Manager application.",
+ description: "List identity members of a application.",
tags: [ApiDocsTags.PkiApplications],
params: ApplicationIdParamsSchema,
response: { 200: z.object({ memberships: z.array(ApplicationMemberSchema) }) }
@@ -60,7 +60,7 @@ export const registerPkiApplicationIdentityMembershipRouter = async (server: Fas
schema: {
hide: false,
operationId: "addPkiApplicationIdentityMember",
- description: "Add an identity as a member of a Cert Manager application.",
+ description: "Add an identity as a member of a application.",
tags: [ApiDocsTags.PkiApplications],
params: IdentityParamsSchema,
body: RoleBodySchema,
@@ -106,7 +106,7 @@ export const registerPkiApplicationIdentityMembershipRouter = async (server: Fas
schema: {
hide: false,
operationId: "updatePkiApplicationIdentityMemberRole",
- description: "Update the role of an identity member on a Cert Manager application.",
+ description: "Update the role of an identity member on a application.",
tags: [ApiDocsTags.PkiApplications],
params: IdentityParamsSchema,
body: RoleBodySchema,
@@ -153,7 +153,7 @@ export const registerPkiApplicationIdentityMembershipRouter = async (server: Fas
schema: {
hide: false,
operationId: "removePkiApplicationIdentityMember",
- description: "Remove an identity from a Cert Manager application.",
+ description: "Remove an identity from a application.",
tags: [ApiDocsTags.PkiApplications],
params: IdentityParamsSchema,
response: { 200: RemoveResponseSchema }
diff --git a/backend/src/server/routes/v1/pki-application-membership-routers/users-router.ts b/backend/src/server/routes/v1/pki-application-membership-routers/users-router.ts
index 9717063d2e..de98738349 100644
--- a/backend/src/server/routes/v1/pki-application-membership-routers/users-router.ts
+++ b/backend/src/server/routes/v1/pki-application-membership-routers/users-router.ts
@@ -45,7 +45,7 @@ export const registerPkiApplicationUserMembershipRouter = async (server: Fastify
schema: {
hide: false,
operationId: "listPkiApplicationUserMembers",
- description: "List user members of a Cert Manager application.",
+ description: "List user members of a application.",
tags: [ApiDocsTags.PkiApplications],
params: ApplicationIdParamsSchema,
response: { 200: z.object({ memberships: z.array(ApplicationMemberSchema) }) }
@@ -83,7 +83,7 @@ export const registerPkiApplicationUserMembershipRouter = async (server: Fastify
hide: false,
operationId: "addPkiApplicationUserMembers",
description:
- "Add user members to a Cert Manager application by userId, email, or username. Bootstraps org and project membership for users not already present, then attaches them to the application.",
+ "Add user members to a application by userId, email, or username. Bootstraps org and project membership for users not already present, then attaches them to the application.",
tags: [ApiDocsTags.PkiApplications],
params: ApplicationIdParamsSchema,
body: AddUsersBodySchema,
@@ -153,7 +153,7 @@ export const registerPkiApplicationUserMembershipRouter = async (server: Fastify
schema: {
hide: false,
operationId: "updatePkiApplicationUserMemberRole",
- description: "Update the role of a user member on a Cert Manager application.",
+ description: "Update the role of a user member on a application.",
tags: [ApiDocsTags.PkiApplications],
params: UserParamsSchema,
body: RoleBodySchema,
@@ -201,7 +201,7 @@ export const registerPkiApplicationUserMembershipRouter = async (server: Fastify
schema: {
hide: false,
operationId: "removePkiApplicationUserMember",
- description: "Remove a user from a Cert Manager application.",
+ description: "Remove a user from a application.",
tags: [ApiDocsTags.PkiApplications],
params: UserParamsSchema,
response: { 200: RemoveResponseSchema }
diff --git a/backend/src/server/routes/v1/pki-application-profile-router.ts b/backend/src/server/routes/v1/pki-application-profile-router.ts
index 0d7dd33c59..08bdaa5057 100644
--- a/backend/src/server/routes/v1/pki-application-profile-router.ts
+++ b/backend/src/server/routes/v1/pki-application-profile-router.ts
@@ -16,7 +16,7 @@ export const registerPkiApplicationProfileRoutes = async (server: FastifyZodProv
schema: {
hide: false,
operationId: "listPkiApplicationProfiles",
- description: "List profiles attached to a Cert Manager application.",
+ description: "List profiles attached to a application.",
tags: [ApiDocsTags.PkiApplications],
params: ApplicationIdParamsSchema,
response: {
@@ -45,7 +45,7 @@ export const registerPkiApplicationProfileRoutes = async (server: FastifyZodProv
schema: {
hide: false,
operationId: "attachPkiApplicationProfiles",
- description: "Attach one or more profiles to a Cert Manager application.",
+ description: "Attach one or more profiles to a application.",
tags: [ApiDocsTags.PkiApplications],
params: ApplicationIdParamsSchema,
body: z.object({
@@ -90,7 +90,7 @@ export const registerPkiApplicationProfileRoutes = async (server: FastifyZodProv
schema: {
hide: false,
operationId: "detachPkiApplicationProfile",
- description: "Detach a profile from a Cert Manager application.",
+ description: "Detach a profile from a application.",
tags: [ApiDocsTags.PkiApplications],
params: z.object({
applicationId: z.string().uuid(),
diff --git a/backend/src/server/routes/v1/pki-application-router.ts b/backend/src/server/routes/v1/pki-application-router.ts
index ab5cb02bb5..1db5aefcc8 100644
--- a/backend/src/server/routes/v1/pki-application-router.ts
+++ b/backend/src/server/routes/v1/pki-application-router.ts
@@ -32,7 +32,7 @@ export const registerPkiApplicationRouter = async (server: FastifyZodProvider) =
schema: {
hide: false,
operationId: "createPkiApplication",
- description: "Create a Cert Manager application.",
+ description: "Create a application.",
tags: [ApiDocsTags.PkiApplications],
body: z.object({
name: ApplicationNameSchema,
@@ -80,7 +80,7 @@ export const registerPkiApplicationRouter = async (server: FastifyZodProvider) =
schema: {
hide: false,
operationId: "listPkiApplications",
- description: "List Cert Manager applications.",
+ description: "List applications.",
tags: [ApiDocsTags.PkiApplications],
querystring: z.object({
search: z.string().optional(),
@@ -127,7 +127,7 @@ export const registerPkiApplicationRouter = async (server: FastifyZodProvider) =
schema: {
hide: false,
operationId: "getPkiApplication",
- description: "Get a Cert Manager application by id.",
+ description: "Get a application by id.",
tags: [ApiDocsTags.PkiApplications],
params: ApplicationIdParamsSchema,
response: { 200: z.object({ application: PkiApplicationsSchema }) }
@@ -163,7 +163,7 @@ export const registerPkiApplicationRouter = async (server: FastifyZodProvider) =
schema: {
hide: false,
operationId: "getPkiApplicationByName",
- description: "Get a Cert Manager application by name.",
+ description: "Get a application by name.",
tags: [ApiDocsTags.PkiApplications],
params: z.object({ name: ApplicationNameSchema }),
response: { 200: z.object({ application: PkiApplicationsSchema }) }
@@ -199,7 +199,7 @@ export const registerPkiApplicationRouter = async (server: FastifyZodProvider) =
schema: {
hide: false,
operationId: "updatePkiApplication",
- description: "Update a Cert Manager application.",
+ description: "Update a application.",
tags: [ApiDocsTags.PkiApplications],
params: ApplicationIdParamsSchema,
body: z
@@ -245,7 +245,7 @@ export const registerPkiApplicationRouter = async (server: FastifyZodProvider) =
schema: {
hide: false,
operationId: "deletePkiApplication",
- description: "Delete a Cert Manager application.",
+ description: "Delete a application.",
tags: [ApiDocsTags.PkiApplications],
params: ApplicationIdParamsSchema,
response: { 200: z.object({ application: PkiApplicationsSchema }) }
diff --git a/backend/src/server/routes/v1/project-router.ts b/backend/src/server/routes/v1/project-router.ts
index 90fb9537c5..3798e79c02 100644
--- a/backend/src/server/routes/v1/project-router.ts
+++ b/backend/src/server/routes/v1/project-router.ts
@@ -1327,7 +1327,11 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
.string()
.uuid()
.optional()
- .describe("Filter to certificates issued through a specific Cert Manager Application."),
+ .describe("Filter to certificates issued through a specific Application."),
+ applicationIds: z
+ .array(z.string().uuid())
+ .optional()
+ .describe("Filter to certificates issued through any of the supplied Applications."),
sortBy: z
.enum(["notAfter", "notBefore", "createdAt", "commonName", "keyAlgorithm", "status"])
.optional()
diff --git a/backend/src/server/routes/v2/pki-alert-router.ts b/backend/src/server/routes/v2/pki-alert-router.ts
index 5d884d84ba..948887d181 100644
--- a/backend/src/server/routes/v2/pki-alert-router.ts
+++ b/backend/src/server/routes/v2/pki-alert-router.ts
@@ -31,11 +31,7 @@ export const registerPkiAlertRouter = async (server: FastifyZodProvider) => {
tags: [ApiDocsTags.PkiAlerting],
body: BasePkiAlertV2Schema.extend({
projectId: z.string().uuid().optional().describe(openApiHidden()),
- applicationId: z
- .string()
- .uuid()
- .optional()
- .describe("Optional Cert Manager Application this alert is scoped to")
+ applicationId: z.string().uuid().optional().describe("Optional Application this alert is scoped to")
}),
response: {
200: z.object({
diff --git a/backend/src/services/certificate-inventory-view/certificate-inventory-view-service.ts b/backend/src/services/certificate-inventory-view/certificate-inventory-view-service.ts
index fd373fc8f1..819f376fa1 100644
--- a/backend/src/services/certificate-inventory-view/certificate-inventory-view-service.ts
+++ b/backend/src/services/certificate-inventory-view/certificate-inventory-view-service.ts
@@ -158,6 +158,12 @@ export const certificateInventoryViewServiceFactory = ({
ProjectPermissionActions.Create
);
+ if (applicationId && filters?.applicationIds?.length) {
+ throw new BadRequestError({
+ message: "Application filter is only available on project-wide inventory views."
+ });
+ }
+
try {
const view = await certificateInventoryViewDAL.create({
projectId,
@@ -208,6 +214,12 @@ export const certificateInventoryViewServiceFactory = ({
throw new BadRequestError({ message: "You can only update your own views" });
}
+ if (existing.applicationId && filters?.applicationIds?.length) {
+ throw new BadRequestError({
+ message: "Application filter is only available on project-wide inventory views."
+ });
+ }
+
try {
const view = await certificateInventoryViewDAL.updateById(viewId, {
...(name !== undefined && { name }),
diff --git a/backend/src/services/certificate-inventory-view/certificate-inventory-view-types.ts b/backend/src/services/certificate-inventory-view/certificate-inventory-view-types.ts
index b976c83d89..445e0183b3 100644
--- a/backend/src/services/certificate-inventory-view/certificate-inventory-view-types.ts
+++ b/backend/src/services/certificate-inventory-view/certificate-inventory-view-types.ts
@@ -11,6 +11,7 @@ export type TInventoryViewFilters = {
keySizes?: number[];
caIds?: string[];
profileIds?: string[];
+ applicationIds?: string[];
source?: string | string[];
};
diff --git a/backend/src/services/certificate-v3/certificate-v3-service.ts b/backend/src/services/certificate-v3/certificate-v3-service.ts
index a40962b55a..4bb29d3a9a 100644
--- a/backend/src/services/certificate-v3/certificate-v3-service.ts
+++ b/backend/src/services/certificate-v3/certificate-v3-service.ts
@@ -740,8 +740,7 @@ export const certificateV3ServiceFactory = ({
);
if (!hasProfileLevelEnrollment) {
throw new BadRequestError({
- message:
- "This profile must be issued through a Cert Manager Application. Attach it to an Application and issue from there."
+ message: "This profile must be issued through a Application. Attach it to an Application and issue from there."
});
}
diff --git a/backend/src/services/certificate/certificate-dal.ts b/backend/src/services/certificate/certificate-dal.ts
index f10c77739c..033c69f708 100644
--- a/backend/src/services/certificate/certificate-dal.ts
+++ b/backend/src/services/certificate/certificate-dal.ts
@@ -86,6 +86,7 @@ export const certificateDALFactory = (db: TDbClient) => {
notBeforeFrom?: Date;
notBeforeTo?: Date;
applicationId?: string;
+ applicationIds?: string[];
};
const applyInventoryFilters = (
@@ -227,6 +228,10 @@ export const certificateDALFactory = (db: TDbClient) => {
q = q.andWhere(`${TableName.Certificate}.applicationId`, filters.applicationId);
}
+ if (filters.applicationIds && filters.applicationIds.length > 0) {
+ q = q.whereIn(`${TableName.Certificate}.applicationId`, filters.applicationIds);
+ }
+
return q;
};
@@ -348,13 +353,18 @@ export const certificateDALFactory = (db: TDbClient) => {
.whereNull("renewedByCertificateId");
Object.entries(filter).forEach(([key, value]) => {
- if (value !== undefined && value !== null) {
- if (key === "friendlyName" || key === "commonName") {
- const sanitizedValue = sanitizeSqlLikeString(String(value));
- query = query.andWhere(`${TableName.Certificate}.${key}`, "like", `%${sanitizedValue}%`);
- } else {
- query = query.andWhere(`${TableName.Certificate}.${key}`, value);
+ if (value === undefined || value === null) return;
+ if (key === "applicationIds") {
+ if (Array.isArray(value) && value.length > 0) {
+ query = query.whereIn(`${TableName.Certificate}.applicationId`, value as string[]);
}
+ return;
+ }
+ if (key === "friendlyName" || key === "commonName") {
+ const sanitizedValue = sanitizeSqlLikeString(String(value));
+ query = query.andWhere(`${TableName.Certificate}.${key}`, "like", `%${sanitizedValue}%`);
+ } else {
+ query = query.andWhere(`${TableName.Certificate}.${key}`, value);
}
});
@@ -516,6 +526,7 @@ export const certificateDALFactory = (db: TDbClient) => {
notAfterTo,
notBeforeFrom,
notBeforeTo,
+ applicationIds,
...regularFilters
} = filter;
@@ -546,7 +557,8 @@ export const certificateDALFactory = (db: TDbClient) => {
notAfterFrom,
notAfterTo,
notBeforeFrom,
- notBeforeTo
+ notBeforeTo,
+ applicationIds
},
true
) as typeof query;
diff --git a/backend/src/services/pki-alert-v2/pki-alert-v2-service.ts b/backend/src/services/pki-alert-v2/pki-alert-v2-service.ts
index 6703ec4697..c969146b31 100644
--- a/backend/src/services/pki-alert-v2/pki-alert-v2-service.ts
+++ b/backend/src/services/pki-alert-v2/pki-alert-v2-service.ts
@@ -342,17 +342,13 @@ export const pkiAlertV2ServiceFactory = ({
actor,
actorOrgId
}: TListAlertsV2DTO): Promise<TListAlertsV2Response> => {
- const { permission } = await permissionService.getProjectPermission({
+ await $assertCanActOnAlert(ProjectPermissionActions.Read, projectId, applicationId, {
actor,
actorId,
- projectId,
actorAuthMethod,
- actorOrgId,
- actionProjectType: ActionProjectType.CertificateManager
+ actorOrgId
});
- ForbiddenError.from(permission).throwUnlessCan(ProjectPermissionActions.Read, ProjectPermissionSub.PkiAlerts);
-
const filters = { search, eventType, enabled, limit, offset, applicationId };
const { alerts, total } = await pkiAlertV2DAL.findByProjectIdWithCount(projectId, filters);
diff --git a/backend/src/services/pki-application/cert-manager-instance-service.ts b/backend/src/services/pki-application/cert-manager-instance-service.ts
index 515efa403b..e872d02fe6 100644
--- a/backend/src/services/pki-application/cert-manager-instance-service.ts
+++ b/backend/src/services/pki-application/cert-manager-instance-service.ts
@@ -88,7 +88,7 @@ export const certManagerInstanceServiceFactory = ({
const target = projects.find((p) => p.id === projectId);
if (!target) {
throw new BadRequestError({
- message: "The selected project is not a Cert Manager project in this organization."
+ message: "The selected project is not a Certificate Manager project in this organization."
});
}
diff --git a/backend/src/services/pki-application/cert-manager-project-resolver.ts b/backend/src/services/pki-application/cert-manager-project-resolver.ts
index b174339c34..cd57aa47ef 100644
--- a/backend/src/services/pki-application/cert-manager-project-resolver.ts
+++ b/backend/src/services/pki-application/cert-manager-project-resolver.ts
@@ -19,7 +19,7 @@ export const resolveCertManagerProjectId = async (
if (projects.length === 0) {
throw new BadRequestError({
message:
- "This organization has no Cert Manager project. Contact your administrator; one should have been created automatically."
+ "This organization has no Certificate Manager project. Contact your administrator; one should have been created automatically."
});
}
@@ -31,7 +31,7 @@ export const resolveCertManagerProjectId = async (
throw new BadRequestError({
message:
- "This organization has multiple Cert Manager projects but no default is set. An org Admin must set the default in the Cert Manager settings."
+ "This organization has multiple Certificate Manager projects but no default is set. An org Admin must set the default in the Certificate Manager settings."
});
};
diff --git a/backend/src/services/pki-application/pki-application-enrollment-service.ts b/backend/src/services/pki-application/pki-application-enrollment-service.ts
index 1698d9094a..a8b76d459d 100644
--- a/backend/src/services/pki-application/pki-application-enrollment-service.ts
+++ b/backend/src/services/pki-application/pki-application-enrollment-service.ts
@@ -358,9 +358,10 @@ export const pkiApplicationEnrollmentServiceFactory = ({
const appCfg = getConfig();
const hashedPassphrase = await crypto.hashing().createHash(config.passphrase, appCfg.SALT_ROUNDS);
+ const caChainProvided = typeof config.caChain === "string" && config.caChain.length > 0;
let encryptedCaChain: Buffer | null = null;
- if (!config.disableBootstrapCaValidation && config.caChain) {
- const result = await validateAndEncryptPemCaChain(config.caChain, projectId, kmsService, projectDAL);
+ if (!config.disableBootstrapCaValidation && caChainProvided) {
+ const result = await validateAndEncryptPemCaChain(config.caChain as string, projectId, kmsService, projectDAL);
encryptedCaChain = result.encryptedCaChain;
}
@@ -372,7 +373,7 @@ export const pkiApplicationEnrollmentServiceFactory = ({
{
disableBootstrapCaValidation: config.disableBootstrapCaValidation ?? false,
hashedPassphrase,
- encryptedCaChain
+ ...(caChainProvided ? { encryptedCaChain } : {})
},
tx
);
diff --git a/backend/src/services/pki-sync/pki-sync-service.ts b/backend/src/services/pki-sync/pki-sync-service.ts
index 6ee3cbfd07..5d48ab13be 100644
--- a/backend/src/services/pki-sync/pki-sync-service.ts
+++ b/backend/src/services/pki-sync/pki-sync-service.ts
@@ -188,7 +188,7 @@ export const pkiSyncServiceFactory = ({
if (!applicationId) {
throw new BadRequestError({
message:
- "Certificate Syncs must be created inside a Cert Manager Application. Open the Application's Certificate Syncs tab and click Add Sync."
+ "Certificate Syncs must be created inside a Application. Open the Application's Certificate Syncs tab and click Add Sync."
});
}
diff --git a/backend/src/services/project/project-service.ts b/backend/src/services/project/project-service.ts
index f33a963f83..428b2e5c2d 100644
--- a/backend/src/services/project/project-service.ts
+++ b/backend/src/services/project/project-service.ts
@@ -1235,6 +1235,7 @@ export const projectServiceFactory = ({
notBeforeFrom,
notBeforeTo,
applicationId,
+ applicationIds,
sortBy,
sortOrder,
actorId,
@@ -1283,7 +1284,8 @@ export const projectServiceFactory = ({
...(notAfterTo && { notAfterTo }),
...(notBeforeFrom && { notBeforeFrom }),
...(notBeforeTo && { notBeforeTo }),
- ...(applicationId && { applicationId })
+ ...(applicationId && { applicationId }),
+ ...(applicationIds && applicationIds.length > 0 && { applicationIds })
};
const permissionFilters = getProcessedPermissionRules(
permission,
@@ -1336,7 +1338,8 @@ export const projectServiceFactory = ({
...(regularFilters.notAfterTo && { notAfterTo: regularFilters.notAfterTo }),
...(regularFilters.notBeforeFrom && { notBeforeFrom: regularFilters.notBeforeFrom }),
...(regularFilters.notBeforeTo && { notBeforeTo: regularFilters.notBeforeTo }),
- ...(regularFilters.applicationId && { applicationId: regularFilters.applicationId })
+ ...(regularFilters.applicationId && { applicationId: regularFilters.applicationId }),
+ ...(regularFilters.applicationIds && { applicationIds: regularFilters.applicationIds })
};
const count = forPkiSync
diff --git a/backend/src/services/project/project-types.ts b/backend/src/services/project/project-types.ts
index 743bb41e15..dbc7138a0a 100644
--- a/backend/src/services/project/project-types.ts
+++ b/backend/src/services/project/project-types.ts
@@ -163,6 +163,7 @@ export type TListProjectCertsDTO = {
notBeforeFrom?: Date;
notBeforeTo?: Date;
applicationId?: string;
+ applicationIds?: string[];
sortBy?: string;
sortOrder?: "asc" | "desc";
} & Omit<TProjectPermission, "projectId">;
diff --git a/frontend/src/hooks/api/certManagerInstance/index.ts b/frontend/src/hooks/api/certManagerInstance/index.ts
index 632364bc61..8b6f5047a9 100644
--- a/frontend/src/hooks/api/certManagerInstance/index.ts
+++ b/frontend/src/hooks/api/certManagerInstance/index.ts
@@ -65,6 +65,6 @@ export const useSetCertManagerActiveProject = () => {
}>(`${BASE_URL}/active-project`, { projectId });
return data;
},
- onSuccess: () => qc.invalidateQueries({ queryKey: certManagerInstanceKeys.all })
+ onSuccess: () => qc.invalidateQueries()
});
};
diff --git a/frontend/src/hooks/api/certificateInventoryViews/types.ts b/frontend/src/hooks/api/certificateInventoryViews/types.ts
index 511ae29deb..032bf87899 100644
--- a/frontend/src/hooks/api/certificateInventoryViews/types.ts
+++ b/frontend/src/hooks/api/certificateInventoryViews/types.ts
@@ -9,6 +9,7 @@ export type TInventoryViewFilters = {
keySizes?: number[];
caIds?: string[];
profileIds?: string[];
+ applicationIds?: string[];
source?: string | string[];
};
diff --git a/frontend/src/hooks/api/projects/queries.tsx b/frontend/src/hooks/api/projects/queries.tsx
index d869d46eb8..aebb96c5bc 100644
--- a/frontend/src/hooks/api/projects/queries.tsx
+++ b/frontend/src/hooks/api/projects/queries.tsx
@@ -550,6 +550,7 @@ export const useListWorkspaceCertificates = ({
notBeforeFrom,
notBeforeTo,
applicationId,
+ applicationIds,
sortBy,
sortOrder
}: {
@@ -577,6 +578,7 @@ export const useListWorkspaceCertificates = ({
notBeforeFrom?: Date;
notBeforeTo?: Date;
applicationId?: string;
+ applicationIds?: string[];
sortBy?: string;
sortOrder?: "asc" | "desc";
}) => {
@@ -606,6 +608,7 @@ export const useListWorkspaceCertificates = ({
notBeforeFrom,
notBeforeTo,
applicationId,
+ applicationIds,
sortBy,
sortOrder
}),
@@ -638,6 +641,7 @@ export const useListWorkspaceCertificates = ({
...(notBeforeFrom && { notBeforeFrom: notBeforeFrom.toISOString() }),
...(notBeforeTo && { notBeforeTo: notBeforeTo.toISOString() }),
...(applicationId && { applicationId }),
+ ...(applicationIds && applicationIds.length > 0 && { applicationIds }),
...(sortBy && { sortBy }),
...(sortOrder && { sortOrder })
}
diff --git a/frontend/src/hooks/api/projects/query-keys.tsx b/frontend/src/hooks/api/projects/query-keys.tsx
index b6a8c2c4c3..f6d3300dee 100644
--- a/frontend/src/hooks/api/projects/query-keys.tsx
+++ b/frontend/src/hooks/api/projects/query-keys.tsx
@@ -66,6 +66,7 @@ export const projectKeys = {
notBeforeFrom,
notBeforeTo,
applicationId,
+ applicationIds,
sortBy,
sortOrder
}: {
@@ -93,6 +94,7 @@ export const projectKeys = {
notBeforeFrom?: Date;
notBeforeTo?: Date;
applicationId?: string;
+ applicationIds?: string[];
sortBy?: string;
sortOrder?: "asc" | "desc";
}) =>
@@ -122,6 +124,7 @@ export const projectKeys = {
notBeforeFrom,
notBeforeTo,
applicationId,
+ applicationIds,
sortBy,
sortOrder
}
diff --git a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/CertManagerNav.tsx b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/CertManagerNav.tsx
index ae1880426a..92ba0a304e 100644
--- a/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/CertManagerNav.tsx
+++ b/frontend/src/layouts/OrganizationLayout/components/OrgSidebar/CertManagerNav.tsx
@@ -27,7 +27,7 @@ import { useGetPkiAlertsV2 } from "@app/hooks/api/pkiAlertsV2";
import { useListPkiSyncs } from "@app/hooks/api/pkiSyncs";
import { ProjectNavList } from "./ProjectNavLink";
-import { CERT_MANAGER_ACCESS_CONTROL_SUBMENU } from "./submenus";
+import { CERT_DISCOVERY_SUBMENU, CERT_MANAGER_ACCESS_CONTROL_SUBMENU } from "./submenus";
import type { NavItem, Submenu } from "./types";
export const CertManagerNav = ({
@@ -78,7 +78,13 @@ export const CertManagerNav = ({
const overviewItems: NavItem[] = [
{ label: "Dashboard", icon: LayoutDashboard, pathSuffix: "overview" },
{ label: "Inventory", icon: FileKey, pathSuffix: "inventory" },
- { label: "Discovery", icon: Search, pathSuffix: "discovery", activeMatch: /\/discovery/ },
+ {
+ label: "Discovery",
+ icon: Search,
+ pathSuffix: "discovery",
+ activeMatch: /\/discovery/,
+ submenu: CERT_DISCOVERY_SUBMENU
+ },
{
label: "Requests",
icon: Inbox,
@@ -120,18 +126,18 @@ export const CertManagerNav = ({
const administrationItems: NavItem[] = [
{
- label: "Access",
+ label: "Access Control",
icon: Shield,
pathSuffix: "access-management",
activeMatch: /\/groups\/|\/identities\/|\/members\/|\/roles\//,
submenu: CERT_MANAGER_ACCESS_CONTROL_SUBMENU
},
+ { label: "Audit Logs", icon: FileText, pathSuffix: "audit-logs" },
{
label: "Settings",
icon: Settings,
pathSuffix: "settings"
- },
- { label: "Audit Logs", icon: FileText, pathSuffix: "audit-logs" }
+ }
];
const generalItemsForRole = isCertManagerAdmin
diff --git a/frontend/src/layouts/PkiManagerLayout/components/ActiveInstanceModal.tsx b/frontend/src/layouts/PkiManagerLayout/components/ActiveInstanceModal.tsx
deleted file mode 100644
index 636a60c12e..0000000000
--- a/frontend/src/layouts/PkiManagerLayout/components/ActiveInstanceModal.tsx
+++ /dev/null
@@ -1,138 +0,0 @@
-import { useState } from "react";
-
-import { createNotification } from "@app/components/notifications";
-import {
- Badge,
- Button,
- Dialog,
- DialogContent,
- DialogDescription,
- DialogHeader,
- DialogTitle,
- Empty,
- EmptyDescription,
- EmptyHeader,
- EmptyTitle,
- PageLoader,
- Table,
- TableBody,
- TableCell,
- TableHead,
- TableHeader,
- TableRow
-} from "@app/components/v3";
-import {
- useCertManagerLegacyInstances,
- useSetCertManagerActiveProject
-} from "@app/hooks/api/certManagerInstance";
-import { UsePopUpState } from "@app/hooks/usePopUp";
-
-type Props = {
- popUp: UsePopUpState<["activeInstance"]>;
- handlePopUpToggle: (popUpName: keyof UsePopUpState<["activeInstance"]>, state?: boolean) => void;
-};
-
-export const ActiveInstanceModal = ({ popUp, handlePopUpToggle }: Props) => {
- const { data, isPending } = useCertManagerLegacyInstances();
- const setActive = useSetCertManagerActiveProject();
- const [pendingId, setPendingId] = useState<string | null>(null);
-
- const onPick = async (projectId: string, name: string) => {
- setPendingId(projectId);
- try {
- await setActive.mutateAsync(projectId);
- createNotification({
- type: "success",
- text: `${name} is now the active Cert Manager instance`
- });
- handlePopUpToggle("activeInstance", false);
- } catch (err) {
- const detail = err instanceof Error ? err.message : "Failed to switch active instance.";
- createNotification({ type: "error", text: detail });
- } finally {
- setPendingId(null);
- }
- };
-
- const renderInstances = () => {
- if (isPending || !data) {
- return (
- <div className="h-48">
- <PageLoader lottieClassName="w-16" />
- </div>
- );
- }
- if (data.instances.length === 0) {
- return (
- <Empty className="border">
- <EmptyHeader>
- <EmptyTitle>No Cert Manager instances</EmptyTitle>
- <EmptyDescription>
- Create a Cert Manager project from the organization to get started.
- </EmptyDescription>
- </EmptyHeader>
- </Empty>
- );
- }
- return (
- <Table>
- <TableHeader>
- <TableRow>
- <TableHead className="w-full">Name</TableHead>
- <TableHead className="text-right whitespace-nowrap">Certificates</TableHead>
- <TableHead className="text-right whitespace-nowrap">Syncs</TableHead>
- <TableHead className="text-right whitespace-nowrap">Alerts</TableHead>
- <TableHead className="text-right whitespace-nowrap">Action</TableHead>
- </TableRow>
- </TableHeader>
- <TableBody>
- {data.instances.map((i) => (
- <TableRow key={i.id}>
- <TableCell className="w-full">
- <div className="flex flex-wrap items-baseline gap-x-2 gap-y-0.5">
- <span className="font-medium text-foreground">{i.name}</span>
- <span className="font-mono text-xs text-accent">{i.slug}</span>
- </div>
- </TableCell>
- <TableCell className="text-right whitespace-nowrap">{i.certificateCount}</TableCell>
- <TableCell className="text-right whitespace-nowrap">{i.syncCount}</TableCell>
- <TableCell className="text-right whitespace-nowrap">{i.alertCount}</TableCell>
- <TableCell className="text-right whitespace-nowrap">
- {i.isActive ? (
- <Badge variant="success">Active</Badge>
- ) : (
- <Button
- size="xs"
- variant="outline"
- isPending={pendingId === i.id}
- onClick={() => onPick(i.id, i.name)}
- >
- Set as active
- </Button>
- )}
- </TableCell>
- </TableRow>
- ))}
- </TableBody>
- </Table>
- );
- };
-
- return (
- <Dialog
- open={popUp?.activeInstance?.isOpen}
- onOpenChange={(o) => handlePopUpToggle("activeInstance", o)}
- >
- <DialogContent className="max-w-3xl">
- <DialogHeader>
- <DialogTitle>Manage Cert Manager instances</DialogTitle>
- <DialogDescription>
- Switch the active Cert Manager instance for this organization. New API requests without
- a projectId resolve to the active instance.
- </DialogDescription>
- </DialogHeader>
- {renderInstances()}
- </DialogContent>
- </Dialog>
- );
-};
diff --git a/frontend/src/layouts/PkiManagerLayout/components/ActiveInstancePicker.tsx b/frontend/src/layouts/PkiManagerLayout/components/ActiveInstancePicker.tsx
new file mode 100644
index 0000000000..4610ead9bc
--- /dev/null
+++ b/frontend/src/layouts/PkiManagerLayout/components/ActiveInstancePicker.tsx
@@ -0,0 +1,95 @@
+import { useState } from "react";
+
+import { createNotification } from "@app/components/notifications";
+import {
+ Empty,
+ EmptyDescription,
+ EmptyHeader,
+ EmptyTitle,
+ PageLoader,
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue
+} from "@app/components/v3";
+import {
+ useCertManagerLegacyInstances,
+ useSetCertManagerActiveProject
+} from "@app/hooks/api/certManagerInstance";
+
+type Props = {
+ onChanged?: () => void;
+};
+
+export const ActiveInstancePicker = ({ onChanged }: Props) => {
+ const { data, isPending } = useCertManagerLegacyInstances();
+ const setActive = useSetCertManagerActiveProject();
+ const [pendingId, setPendingId] = useState<string | null>(null);
+
+ if (isPending || !data) {
+ return (
+ <div className="h-32">
+ <PageLoader lottieClassName="w-16" />
+ </div>
+ );
+ }
+
+ if (data.instances.length === 0) {
+ return (
+ <Empty className="border">
+ <EmptyHeader>
+ <EmptyTitle>No Certificate Manager instances</EmptyTitle>
+ <EmptyDescription>
+ Create a Certificate Manager project from the organization to get started.
+ </EmptyDescription>
+ </EmptyHeader>
+ </Empty>
+ );
+ }
+
+ const active = data.instances.find((i) => i.isActive);
+
+ const handleChange = async (projectId: string) => {
+ if (active?.id === projectId) return;
+ const next = data.instances.find((i) => i.id === projectId);
+ if (!next) return;
+ setPendingId(projectId);
+ try {
+ await setActive.mutateAsync(projectId);
+ createNotification({
+ type: "success",
+ text: `${next.name} is now the active Certificate Manager instance`
+ });
+ onChanged?.();
+ } catch (err) {
+ const detail = err instanceof Error ? err.message : "Failed to switch active instance.";
+ createNotification({ type: "error", text: detail });
+ } finally {
+ setPendingId(null);
+ }
+ };
+
+ return (
+ <Select value={active?.id ?? ""} onValueChange={handleChange} disabled={Boolean(pendingId)}>
+ <SelectTrigger className="w-full">
+ <SelectValue placeholder="Select active instance" />
+ </SelectTrigger>
+ <SelectContent>
+ {data.instances.map((i) => (
+ <SelectItem key={i.id} value={i.id}>
+ <div className="flex w-full items-center gap-2">
+ <span className="font-medium">{i.name}</span>
+ <span className="font-mono text-xs text-accent">{i.slug}</span>
+ <span className="ml-auto text-xs text-muted">
+ {i.certificateCount} cert{i.certificateCount === 1 ? "" : "s"} · {i.syncCount} sync
+ {i.syncCount === 1 ? "" : "s"} · {i.alertCount} alert
+ {i.alertCount === 1 ? "" : "s"}
+ </span>
+ </div>
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ );
+};
diff --git a/frontend/src/layouts/PkiManagerLayout/components/CertManagerInstanceBanner.tsx b/frontend/src/layouts/PkiManagerLayout/components/CertManagerInstanceBanner.tsx
index 8309f38085..89e818ba47 100644
--- a/frontend/src/layouts/PkiManagerLayout/components/CertManagerInstanceBanner.tsx
+++ b/frontend/src/layouts/PkiManagerLayout/components/CertManagerInstanceBanner.tsx
@@ -1,22 +1,37 @@
-import { faWarning } from "@fortawesome/free-solid-svg-icons";
+import { useState } from "react";
+import { faCheck, faChevronDown, faWarning } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import { useParams } from "@tanstack/react-router";
+import { useNavigate, useParams } from "@tanstack/react-router";
+import { createNotification } from "@app/components/notifications";
import { Button } from "@app/components/v2";
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuLabel,
+ DropdownMenuSeparator,
+ DropdownMenuTrigger
+} from "@app/components/v3";
import { useOrgPermission } from "@app/context";
import {
OrgPermissionCertManagerActions,
OrgPermissionSubjects
} from "@app/context/OrgPermissionContext/types";
-import { useCertManagerInstanceState } from "@app/hooks/api/certManagerInstance";
-import { usePopUp } from "@app/hooks/usePopUp";
-
-import { ActiveInstanceModal } from "./ActiveInstanceModal";
+import {
+ useCertManagerInstanceState,
+ useCertManagerLegacyInstances,
+ useSetCertManagerActiveProject
+} from "@app/hooks/api/certManagerInstance";
export const CertManagerInstanceBanner = () => {
- const { projectId } = useParams({ strict: false });
+ const params = useParams({ strict: false }) as { projectId?: string; orgId?: string };
+ const { projectId, orgId } = params;
+ const navigate = useNavigate();
const { data, isPending } = useCertManagerInstanceState();
- const { popUp, handlePopUpOpen, handlePopUpToggle } = usePopUp(["activeInstance"] as const);
+ const { data: legacyData } = useCertManagerLegacyInstances();
+ const setActive = useSetCertManagerActiveProject();
+ const [pendingId, setPendingId] = useState<string | null>(null);
const { permission } = useOrgPermission();
const canManage = permission.can(
OrgPermissionCertManagerActions.ManageInstance,
@@ -30,27 +45,82 @@ export const CertManagerInstanceBanner = () => {
const isViewingActive = activeProject?.id === projectId;
const message = isViewingActive
- ? `Your organization has ${otherCount} other Cert Manager ${otherCount === 1 ? "workspace" : "workspaces"}, consolidate to a single workspace, multi-project Cert Manager will be deprecated soon.`
- : `Legacy Cert Manager instance (active is ${activeProject?.name ?? "not set"}) — consolidate to a single instance, multi-project Cert Manager will be deprecated soon.`;
+ ? `Your organization has ${otherCount} other Certificate Manager ${otherCount === 1 ? "project" : "projects"}, consolidate to a single project, multi-project Certificate Manager will be deprecated soon.`
+ : `Legacy Certificate Manager instance (active is ${activeProject?.name ?? "not set"}) — consolidate to a single instance, multi-project Certificate Manager will be deprecated soon.`;
- return (
- <>
- <div className="flex w-full items-center border-b border-yellow/50 bg-yellow/30 px-4 py-2 text-sm text-yellow-200">
- <FontAwesomeIcon icon={faWarning} className="mr-2.5 text-base text-yellow" />
- <span>{message}</span>
- {canManage && (
- <Button
- size="xs"
- variant="outline_bg"
- className="ml-auto"
- onClick={() => handlePopUpOpen("activeInstance")}
- >
- Manage instances
- </Button>
- )}
- </div>
+ const handlePick = async (instanceId: string, name: string) => {
+ if (instanceId === activeProject?.id) return;
+ setPendingId(instanceId);
+ try {
+ await setActive.mutateAsync(instanceId);
+ createNotification({
+ type: "success",
+ text: `${name} is now the active Certificate Manager instance`
+ });
+ if (orgId) {
+ navigate({
+ to: `/organizations/${orgId}/projects/cert-manager/${instanceId}/overview` as never
+ } as never);
+ }
+ } catch (err) {
+ const detail = err instanceof Error ? err.message : "Failed to switch active instance.";
+ createNotification({ type: "error", text: detail });
+ } finally {
+ setPendingId(null);
+ }
+ };
- <ActiveInstanceModal popUp={popUp} handlePopUpToggle={handlePopUpToggle} />
- </>
+ return (
+ <div className="flex w-full items-center border-b border-yellow/50 bg-yellow/30 px-4 py-2 text-sm text-yellow-200">
+ <FontAwesomeIcon icon={faWarning} className="mr-2.5 text-base text-yellow" />
+ <span>{message}</span>
+ {canManage && (
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <Button
+ size="xs"
+ variant="outline_bg"
+ className="ml-auto"
+ isLoading={Boolean(pendingId)}
+ rightIcon={<FontAwesomeIcon icon={faChevronDown} className="ml-1.5" />}
+ >
+ Manage instances
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end" className="w-[420px]">
+ <DropdownMenuLabel>Switch active instance</DropdownMenuLabel>
+ <DropdownMenuSeparator />
+ {!legacyData || legacyData.instances.length === 0 ? (
+ <div className="px-2 py-3 text-xs text-muted">No instances available.</div>
+ ) : (
+ legacyData.instances.map((i) => (
+ <DropdownMenuItem
+ key={i.id}
+ onClick={() => handlePick(i.id, i.name)}
+ isDisabled={Boolean(pendingId)}
+ >
+ <div className="flex w-full items-center gap-2">
+ <div className="flex min-w-0 flex-1 flex-col">
+ <div className="flex items-baseline gap-x-2">
+ <span className="truncate font-medium">{i.name}</span>
+ <span className="font-mono text-xs text-accent">{i.slug}</span>
+ </div>
+ <span className="text-xs text-muted">
+ {i.certificateCount} cert{i.certificateCount === 1 ? "" : "s"} ·{" "}
+ {i.syncCount} sync{i.syncCount === 1 ? "" : "s"} · {i.alertCount} alert
+ {i.alertCount === 1 ? "" : "s"}
+ </span>
+ </div>
+ {i.isActive && (
+ <FontAwesomeIcon icon={faCheck} className="text-xs text-success" />
+ )}
+ </div>
+ </DropdownMenuItem>
+ ))
+ )}
+ </DropdownMenuContent>
+ </DropdownMenu>
+ )}
+ </div>
);
};
diff --git a/frontend/src/pages/cert-manager/AlertingPage/components/PkiAlertsSection.tsx b/frontend/src/pages/cert-manager/AlertingPage/components/PkiAlertsSection.tsx
index bb862c923f..d32ec859a8 100644
--- a/frontend/src/pages/cert-manager/AlertingPage/components/PkiAlertsSection.tsx
+++ b/frontend/src/pages/cert-manager/AlertingPage/components/PkiAlertsSection.tsx
@@ -41,9 +41,7 @@ export const PkiAlertsSection = () => {
Legacy
</span>
</div>
- <p className="text-xs text-bunker-300">
- Create new alerts inside a Cert Manager Application.
- </p>
+ <p className="text-xs text-bunker-300">Create new alerts inside an Application.</p>
</div>
<PkiAlertsTable handlePopUpOpen={handlePopUpOpen} />
<PkiAlertModal popUp={popUp} handlePopUpToggle={handlePopUpToggle} />
diff --git a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/ApplicationDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/ApplicationDetailsByIDPage.tsx
index f559dd199c..37fdda00db 100644
--- a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/ApplicationDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/ApplicationDetailsByIDPage.tsx
@@ -116,7 +116,11 @@ export const ApplicationDetailsByIDPage = () => {
scope={ProjectType.CertificateManager}
icon={ResourceIcon}
title={application.name}
- description={application.description ?? undefined}
+ description={
+ application.description ? (
+ <span className="break-all">{application.description}</span>
+ ) : undefined
+ }
className="mb-4"
>
<Button variant="outline" size="xs" onClick={handleCopyId}>
diff --git a/frontend/src/pages/cert-manager/ApplicationsPage/components/PkiApplicationModal.tsx b/frontend/src/pages/cert-manager/ApplicationsPage/components/PkiApplicationModal.tsx
index 1f7d18b80d..7cde67f67f 100644
--- a/frontend/src/pages/cert-manager/ApplicationsPage/components/PkiApplicationModal.tsx
+++ b/frontend/src/pages/cert-manager/ApplicationsPage/components/PkiApplicationModal.tsx
@@ -105,7 +105,7 @@ export const PkiApplicationModal = ({ popUp, handlePopUpToggle }: Props) => {
<DialogDescription>
{editing
? "Update the Application's metadata. Changing the name will invalidate any deep links."
- : "Applications attach Profiles and a team. Members and certs are scoped to the Application. The name is used as the identifier (Terraform, agents) so use a slug-style value."}
+ : "Group the Profiles, members, and approval policies for one workload, like a service, environment, or team, so issuance and access are managed together."}
</DialogDescription>
</DialogHeader>
diff --git a/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/PolicyTab.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/PolicyTab.tsx
index 1d2727541e..48cb373911 100644
--- a/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/PolicyTab.tsx
+++ b/frontend/src/pages/cert-manager/ApprovalsPage/components/PolicyTab/PolicyTab.tsx
@@ -52,8 +52,8 @@ export const PolicyTab = () => {
<p className="text-xl font-medium text-mineshaft-100">Certificate Approval Policies</p>
</div>
<p className="text-sm text-bunker-300">
- Existing project-level policies remain editable. Create new approval policies inside a
- Cert Manager Application.
+ Existing project-level policies remain editable. Create new approval policies inside an
+ Application.
</p>
</div>
</div>
diff --git a/frontend/src/pages/cert-manager/CertManagerAccessPage/CertManagerAccessPage.tsx b/frontend/src/pages/cert-manager/CertManagerAccessPage/CertManagerAccessPage.tsx
index 250bc78230..f0a073fcf4 100644
--- a/frontend/src/pages/cert-manager/CertManagerAccessPage/CertManagerAccessPage.tsx
+++ b/frontend/src/pages/cert-manager/CertManagerAccessPage/CertManagerAccessPage.tsx
@@ -9,13 +9,13 @@ import { ProjectType } from "@app/hooks/api/projects/types";
const CERT_MANAGER_ORG_ROLES = new Set<string>([
"cert-manager-admin",
- "cert-manager-guest",
+ "cert-manager-member",
"admin"
]);
const roleLabel = (role: string) => {
if (role === "cert-manager-admin") return "Admin";
- if (role === "cert-manager-guest") return "Member";
+ if (role === "cert-manager-member") return "Member";
if (role === "admin") return "Admin (org)";
if (role === "custom") return "Member";
return role;
@@ -42,7 +42,7 @@ export const CertManagerAccessPage = () => {
return (
<EmptyState title="No members yet">
Assign the <span className="font-mono">cert-manager-admin</span> or{" "}
- <span className="font-mono">cert-manager-guest</span> role to an org member from Org
+ <span className="font-mono">cert-manager-member</span> role to an org member from Org
Access Control.
</EmptyState>
);
@@ -127,15 +127,15 @@ export const CertManagerAccessPage = () => {
</TabPanel>
<TabPanel value="groups">
<div className="rounded-md border border-mineshaft-600 bg-mineshaft-900 p-4 text-sm text-mineshaft-300">
- Groups assigned the cert-manager-admin or cert-manager-guest org role appear here.
- Application-level group memberships live inside each Application&apos;s Access
- Control tab.
+ Groups assigned the cert-manager-admin or cert-manager-member org role appear
+ here. Application-level group memberships live inside each Application&apos;s
+ Access Control tab.
</div>
</TabPanel>
<TabPanel value="identities">
<div className="rounded-md border border-mineshaft-600 bg-mineshaft-900 p-4 text-sm text-mineshaft-300">
Machine identities assigned the cert-manager-admin role appear here. These
- identities can manage the Cert Manager surface programmatically.
+ identities can manage the Certificate Manager surface programmatically.
</div>
</TabPanel>
</Tabs>
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificatesTable.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificatesTable.tsx
index 34af98ec91..b0510e8d03 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificatesTable.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificatesTable.tsx
@@ -80,6 +80,7 @@ import type {
import { useListCertificateProfiles } from "@app/hooks/api/certificateProfiles";
import { NON_PQC_KEY_ALGORITHMS, PQC_KEY_ALGORITHMS } from "@app/hooks/api/certificates/constants";
import { CertSource, CertStatus } from "@app/hooks/api/certificates/enums";
+import { useListPkiApplications } from "@app/hooks/api/pkiApplications";
import { useListWorkspaceCertificates } from "@app/hooks/api/projects";
import { UsePopUpState } from "@app/hooks/usePopUp";
@@ -259,6 +260,10 @@ export const CertificatesTable = ({
limit: 100
});
+ const { data: applicationsData } = useListPkiApplications(undefined, {
+ enabled: !applicationId
+ });
+
const { data: caData } = useListCasByProjectId();
const { data: viewsData } = useListCertificateInventoryViews(applicationId);
const { mutateAsync: deleteView } = useDeleteCertificateInventoryView();
@@ -289,8 +294,14 @@ export const CertificatesTable = ({
label: p.slug
}));
}
+ if (applicationsData) {
+ options.applicationId = applicationsData.map((app) => ({
+ value: app.id,
+ label: app.name
+ }));
+ }
return options;
- }, [caData, profilesData]);
+ }, [caData, profilesData, applicationsData]);
const filterSearchParams = useMemo(() => filtersToSearchParams(appliedFilters), [appliedFilters]);
@@ -317,6 +328,7 @@ export const CertificatesTable = ({
: undefined,
source: filterSearchParams.source,
applicationId,
+ applicationIds: filterSearchParams.applicationIds,
sortBy,
sortOrder
});
@@ -542,6 +554,14 @@ export const CertificatesTable = ({
value: customFilters.profileIds
});
}
+ if (customFilters.applicationIds && customFilters.applicationIds.length > 0) {
+ rules.push({
+ id: "cv-application",
+ field: "applicationId",
+ operator: "in",
+ value: customFilters.applicationIds
+ });
+ }
if (customFilters.source) {
const sourceValue = Array.isArray(customFilters.source)
? customFilters.source
@@ -676,6 +696,7 @@ export const CertificatesTable = ({
}}
onSaveView={canCreateViews ? () => setIsSaveViewOpen(true) : undefined}
dynamicFieldOptions={dynamicFieldOptions}
+ hiddenFieldKeys={applicationId ? ["applicationId"] : undefined}
/>
</PopoverContent>
</Popover>
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/FilterBuilder.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/FilterBuilder.tsx
index 19fbcce683..d2270ee6da 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/FilterBuilder.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/FilterBuilder.tsx
@@ -27,6 +27,7 @@ type Props = {
onClearAll: () => void;
onSaveView?: () => void;
dynamicFieldOptions?: Record<string, { value: string; label: string }[]>;
+ hiddenFieldKeys?: string[];
};
const getFieldDef = (
@@ -94,12 +95,14 @@ const FilterRow = ({
rule,
onUpdate,
onRemove,
- dynamicFieldOptions: dynOpts
+ dynamicFieldOptions: dynOpts,
+ availableFields
}: {
rule: FilterRule;
onUpdate: (updated: FilterRule) => void;
onRemove: () => void;
dynamicFieldOptions?: Record<string, { value: string; label: string }[]>;
+ availableFields: FilterFieldDefinition[];
}) => {
const fieldDef = getFieldDef(rule.field, dynOpts);
@@ -199,7 +202,7 @@ const FilterRow = ({
<SelectValue />
</SelectTrigger>
<SelectContent position="popper" align="start">
- {FILTER_FIELDS.map((f) => (
+ {availableFields.map((f) => (
<SelectItem key={f.key} value={f.key}>
{f.label}
</SelectItem>
@@ -245,8 +248,12 @@ export const FilterBuilder = ({
onCancel,
onClearAll,
onSaveView,
- dynamicFieldOptions
+ dynamicFieldOptions,
+ hiddenFieldKeys
}: Props) => {
+ const availableFields = hiddenFieldKeys?.length
+ ? FILTER_FIELDS.filter((f) => !hiddenFieldKeys.includes(f.key))
+ : FILTER_FIELDS;
const hasEmptyRules = rules.some(isRuleEmpty);
const handleApplyWithValidation = () => {
@@ -260,7 +267,7 @@ export const FilterBuilder = ({
};
const handleAddRule = () => {
- const defaultField = FILTER_FIELDS[0];
+ const defaultField = availableFields[0] ?? FILTER_FIELDS[0];
onChange([
...rules,
{
@@ -309,6 +316,7 @@ export const FilterBuilder = ({
onUpdate={(updated) => handleUpdateRule(index, updated)}
onRemove={() => handleRemoveRule(index)}
dynamicFieldOptions={dynamicFieldOptions}
+ availableFields={availableFields}
/>
</div>
))}
diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/inventory-types.ts b/frontend/src/pages/cert-manager/CertificatesPage/components/inventory-types.ts
index 652e45f12e..538bd34fc5 100644
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/inventory-types.ts
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/inventory-types.ts
@@ -112,6 +112,13 @@ export const FILTER_FIELDS: FilterFieldDefinition[] = [
operators: [{ value: "in", label: "in" }],
valueType: "multi-select",
options: []
+ },
+ {
+ key: "applicationId",
+ label: "Application",
+ operators: [{ value: "in", label: "in" }],
+ valueType: "multi-select",
+ options: []
}
];
@@ -173,6 +180,11 @@ export const filtersToSearchParams = (rules: FilterRule[]): TInventoryViewFilter
params.profileIds = rule.value;
}
break;
+ case "applicationId":
+ if (Array.isArray(rule.value) && rule.value.length > 0) {
+ params.applicationIds = rule.value;
+ }
+ break;
default:
break;
}
diff --git a/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncsTab.tsx b/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncsTab.tsx
index 542a9b76e5..32025f8ffa 100644
--- a/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncsTab.tsx
+++ b/frontend/src/pages/cert-manager/IntegrationsListPage/components/PkiSyncsTab/PkiSyncsTab.tsx
@@ -100,8 +100,7 @@ export const PkiSyncsTab = () => {
</div>
</div>
<p className="text-sm text-bunker-300">
- Existing project-level syncs remain editable. Create new syncs inside a Cert Manager
- Application.
+ Existing project-level syncs remain editable. Create new syncs inside an Application.
</p>
</div>
</div>
diff --git a/frontend/src/pages/cert-manager/RequestsPage/RequestsPage.tsx b/frontend/src/pages/cert-manager/RequestsPage/RequestsPage.tsx
index c3c5a1c5a0..2806252be4 100644
--- a/frontend/src/pages/cert-manager/RequestsPage/RequestsPage.tsx
+++ b/frontend/src/pages/cert-manager/RequestsPage/RequestsPage.tsx
@@ -4,7 +4,7 @@ import { useQuery } from "@tanstack/react-query";
import { Link, useNavigate, useParams, useSearch } from "@tanstack/react-router";
import { FilterIcon, SearchIcon } from "lucide-react";
-import { PageHeader, Tab, TabList, TabPanel, Tabs } from "@app/components/v2";
+import { PageHeader } from "@app/components/v2";
import {
Badge,
Card,
@@ -25,6 +25,11 @@ import {
InputGroup,
InputGroupAddon,
InputGroupInput,
+ Select,
+ SelectContent,
+ SelectItem,
+ SelectTrigger,
+ SelectValue,
Table,
TableBody,
TableCell,
@@ -227,297 +232,299 @@ export const RequestsPage = () => {
description="Certificate approval requests across every Application. Use this inbox to approve, reject, or follow up on pending issuance."
/>
- <Tabs
- value={selectedTab}
- onValueChange={(v) =>
- navigate({
- to: `/organizations/${orgId ?? ""}/projects/cert-manager/${projectId ?? ""}/requests`,
- search: { selectedTab: v } as never
- } as never)
- }
- >
- <TabList>
- <Tab variant="project" value="application-requests">
- Application Requests
- </Tab>
- <Tab variant="project" value="signing-requests">
- Signing Requests
- </Tab>
- </TabList>
+ <div className="mb-4 flex items-center gap-3">
+ <span className="text-sm text-mineshaft-300">View</span>
+ <Select
+ value={selectedTab}
+ onValueChange={(v) =>
+ navigate({
+ to: `/organizations/${orgId ?? ""}/projects/cert-manager/${projectId ?? ""}/requests`,
+ search: { selectedTab: v } as never
+ } as never)
+ }
+ >
+ <SelectTrigger className="w-[260px]">
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent>
+ <SelectItem value="application-requests">Application Requests</SelectItem>
+ <SelectItem value="signing-requests">Signing Requests</SelectItem>
+ </SelectContent>
+ </Select>
+ </div>
- <TabPanel value="application-requests">
- <Card>
- <CardHeader>
- <CardTitle>Application Requests</CardTitle>
- <CardDescription>
- Cert-request approval workflows triggered by an Application policy.
- </CardDescription>
- </CardHeader>
- <CardContent>
- <div className="my-4 flex gap-2">
- <InputGroup className="flex-1">
- <InputGroupAddon>
- <SearchIcon />
- </InputGroupAddon>
- <InputGroupInput
- placeholder="Search by common name, profile, or requester…"
- value={searchInput}
- onChange={(e) => setSearchInput(e.target.value)}
- />
- </InputGroup>
- <DropdownMenu>
- <DropdownMenuTrigger asChild>
- <IconButton
- aria-label="Filter by status"
- variant={isFiltered ? "project" : "outline"}
+ {selectedTab === "application-requests" && (
+ <Card>
+ <CardHeader>
+ <CardTitle>Application Requests</CardTitle>
+ <CardDescription>
+ Cert-request approval workflows triggered by an Application policy.
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <div className="my-4 flex gap-2">
+ <InputGroup className="flex-1">
+ <InputGroupAddon>
+ <SearchIcon />
+ </InputGroupAddon>
+ <InputGroupInput
+ placeholder="Search by common name, profile, or requester…"
+ value={searchInput}
+ onChange={(e) => setSearchInput(e.target.value)}
+ />
+ </InputGroup>
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <IconButton
+ aria-label="Filter by status"
+ variant={isFiltered ? "project" : "outline"}
+ >
+ <FilterIcon className="size-4" />
+ </IconButton>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end">
+ <DropdownMenuLabel>Filter by status</DropdownMenuLabel>
+ {STATUS_FILTERS.map((f) => (
+ <DropdownMenuCheckboxItem
+ key={f.key}
+ checked={statusFilters.has(f.key)}
+ onClick={(e) => {
+ e.preventDefault();
+ toggleStatusFilter(f.key);
+ }}
>
- <FilterIcon className="size-4" />
- </IconButton>
- </DropdownMenuTrigger>
- <DropdownMenuContent align="end">
- <DropdownMenuLabel>Filter by status</DropdownMenuLabel>
- {STATUS_FILTERS.map((f) => (
- <DropdownMenuCheckboxItem
- key={f.key}
- checked={statusFilters.has(f.key)}
- onClick={(e) => {
- e.preventDefault();
- toggleStatusFilter(f.key);
- }}
- >
- {f.label}
- </DropdownMenuCheckboxItem>
- ))}
- </DropdownMenuContent>
- </DropdownMenu>
- </div>
+ {f.label}
+ </DropdownMenuCheckboxItem>
+ ))}
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </div>
- {isRequestsLoading && (
- <Empty>
- <EmptyHeader>
- <EmptyTitle>Loading…</EmptyTitle>
- </EmptyHeader>
- </Empty>
- )}
- {!isRequestsLoading && filtered.length === 0 && (
- <Empty className="border">
- <EmptyHeader>
- <EmptyTitle>
- {statusFilters.size === 1 && statusFilters.has("pending")
- ? "No requests pending review"
- : "No requests"}
- </EmptyTitle>
- <EmptyDescription>
- Cert-request approval workflows from any Application will appear here.
- </EmptyDescription>
- </EmptyHeader>
- </Empty>
- )}
- {!isRequestsLoading && filtered.length > 0 && (
- <Table>
- <TableHeader>
- <TableRow>
- <TableHead>Common Name</TableHead>
- <TableHead>Profile</TableHead>
- <TableHead>Application</TableHead>
- <TableHead>Requester</TableHead>
- <TableHead>Status</TableHead>
- <TableHead>Requested</TableHead>
- </TableRow>
- </TableHeader>
- <TableBody>
- {filtered.map((r) => {
- const certData = isCertRequestData(r.requestData)
- ? r.requestData.requestData
- : null;
- const cn = certData?.certificateRequest?.commonName ?? "—";
- const profile = certData?.profileName ?? "—";
- const requestAppId =
- r.scopeType === ApprovalPolicyScope.PkiApplication ? r.scopeId : null;
- const app = requestAppId ? appById.get(requestAppId) : null;
- const badge = STATUS_BADGE[r.status as ApprovalRequestStatus] ?? {
- label: r.status,
- variant: "neutral" as const
- };
+ {isRequestsLoading && (
+ <Empty>
+ <EmptyHeader>
+ <EmptyTitle>Loading…</EmptyTitle>
+ </EmptyHeader>
+ </Empty>
+ )}
+ {!isRequestsLoading && filtered.length === 0 && (
+ <Empty className="border">
+ <EmptyHeader>
+ <EmptyTitle>
+ {statusFilters.size === 1 && statusFilters.has("pending")
+ ? "No requests pending review"
+ : "No requests"}
+ </EmptyTitle>
+ <EmptyDescription>
+ Cert-request approval workflows from any Application will appear here.
+ </EmptyDescription>
+ </EmptyHeader>
+ </Empty>
+ )}
+ {!isRequestsLoading && filtered.length > 0 && (
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead>Common Name</TableHead>
+ <TableHead>Profile</TableHead>
+ <TableHead>Application</TableHead>
+ <TableHead>Requester</TableHead>
+ <TableHead>Status</TableHead>
+ <TableHead>Requested</TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {filtered.map((r) => {
+ const certData = isCertRequestData(r.requestData)
+ ? r.requestData.requestData
+ : null;
+ const cn = certData?.certificateRequest?.commonName ?? "—";
+ const profile = certData?.profileName ?? "—";
+ const requestAppId =
+ r.scopeType === ApprovalPolicyScope.PkiApplication ? r.scopeId : null;
+ const app = requestAppId ? appById.get(requestAppId) : null;
+ const badge = STATUS_BADGE[r.status as ApprovalRequestStatus] ?? {
+ label: r.status,
+ variant: "neutral" as const
+ };
- return (
- <TableRow
- key={r.id}
- className="cursor-pointer"
- onClick={() =>
- navigate({
- to: `/organizations/${orgId}/projects/cert-manager/${projectId}/approvals/${r.id}` as never,
- search: {
- policyType: ApprovalPolicyType.CertRequest,
- from: "root-requests"
- } as never
- } as never)
- }
- >
- <TableCell isTruncatable className="font-mono">
- {cn}
- </TableCell>
- <TableCell className="font-mono text-xs">{profile}</TableCell>
- <TableCell className="font-mono text-xs">
- {app ? (
- <Link
- to={
- `/organizations/${orgId}/projects/cert-manager/${projectId}/applications/${app.name}` as never
- }
- className="text-foreground hover:text-project"
- onClick={(e) => e.stopPropagation()}
- >
- {app.name}
- </Link>
- ) : (
- <span className="text-accent">—</span>
- )}
- </TableCell>
- <TableCell>
- <div>{r.requesterName || "—"}</div>
- {r.requesterEmail ? (
- <div className="text-xs text-accent">{r.requesterEmail}</div>
- ) : null}
- </TableCell>
- <TableCell>
- <Badge variant={badge.variant}>{badge.label}</Badge>
- </TableCell>
- <TableCell className="text-accent">
- {formatRelative(r.createdAt)}
- </TableCell>
- </TableRow>
- );
- })}
- </TableBody>
- </Table>
- )}
- </CardContent>
- </Card>
- </TabPanel>
+ return (
+ <TableRow
+ key={r.id}
+ className="cursor-pointer"
+ onClick={() =>
+ navigate({
+ to: `/organizations/${orgId}/projects/cert-manager/${projectId}/approvals/${r.id}` as never,
+ search: {
+ policyType: ApprovalPolicyType.CertRequest,
+ from: "root-requests"
+ } as never
+ } as never)
+ }
+ >
+ <TableCell isTruncatable className="font-mono">
+ {cn}
+ </TableCell>
+ <TableCell className="font-mono text-xs">{profile}</TableCell>
+ <TableCell className="font-mono text-xs">
+ {app ? (
+ <Link
+ to={
+ `/organizations/${orgId}/projects/cert-manager/${projectId}/applications/${app.name}` as never
+ }
+ className="text-foreground hover:text-project"
+ onClick={(e) => e.stopPropagation()}
+ >
+ {app.name}
+ </Link>
+ ) : (
+ <span className="text-accent">—</span>
+ )}
+ </TableCell>
+ <TableCell>
+ <div>{r.requesterName || "—"}</div>
+ {r.requesterEmail ? (
+ <div className="text-xs text-accent">{r.requesterEmail}</div>
+ ) : null}
+ </TableCell>
+ <TableCell>
+ <Badge variant={badge.variant}>{badge.label}</Badge>
+ </TableCell>
+ <TableCell className="text-accent">
+ {formatRelative(r.createdAt)}
+ </TableCell>
+ </TableRow>
+ );
+ })}
+ </TableBody>
+ </Table>
+ )}
+ </CardContent>
+ </Card>
+ )}
- <TabPanel value="signing-requests">
- <Card>
- <CardHeader>
- <CardTitle>Signing Requests</CardTitle>
- <CardDescription>
- Code-signing approval workflows triggered by a Signer policy.
- </CardDescription>
- </CardHeader>
- <CardContent>
- <div className="my-4 flex gap-2">
- <InputGroup className="flex-1">
- <InputGroupAddon>
- <SearchIcon />
- </InputGroupAddon>
- <InputGroupInput
- placeholder="Search by signer or requester…"
- value={signingSearchInput}
- onChange={(e) => setSigningSearchInput(e.target.value)}
- />
- </InputGroup>
- <DropdownMenu>
- <DropdownMenuTrigger asChild>
- <IconButton
- aria-label="Filter by status"
- variant={isSigningFiltered ? "project" : "outline"}
+ {selectedTab === "signing-requests" && (
+ <Card>
+ <CardHeader>
+ <CardTitle>Signing Requests</CardTitle>
+ <CardDescription>
+ Code-signing approval workflows triggered by a Signer policy.
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <div className="my-4 flex gap-2">
+ <InputGroup className="flex-1">
+ <InputGroupAddon>
+ <SearchIcon />
+ </InputGroupAddon>
+ <InputGroupInput
+ placeholder="Search by signer or requester…"
+ value={signingSearchInput}
+ onChange={(e) => setSigningSearchInput(e.target.value)}
+ />
+ </InputGroup>
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <IconButton
+ aria-label="Filter by status"
+ variant={isSigningFiltered ? "project" : "outline"}
+ >
+ <FilterIcon className="size-4" />
+ </IconButton>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end">
+ <DropdownMenuLabel>Filter by status</DropdownMenuLabel>
+ {STATUS_FILTERS.map((f) => (
+ <DropdownMenuCheckboxItem
+ key={f.key}
+ checked={signingStatusFilters.has(f.key)}
+ onClick={(e) => {
+ e.preventDefault();
+ toggleSigningStatusFilter(f.key);
+ }}
>
- <FilterIcon className="size-4" />
- </IconButton>
- </DropdownMenuTrigger>
- <DropdownMenuContent align="end">
- <DropdownMenuLabel>Filter by status</DropdownMenuLabel>
- {STATUS_FILTERS.map((f) => (
- <DropdownMenuCheckboxItem
- key={f.key}
- checked={signingStatusFilters.has(f.key)}
- onClick={(e) => {
- e.preventDefault();
- toggleSigningStatusFilter(f.key);
- }}
- >
- {f.label}
- </DropdownMenuCheckboxItem>
- ))}
- </DropdownMenuContent>
- </DropdownMenu>
- </div>
+ {f.label}
+ </DropdownMenuCheckboxItem>
+ ))}
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </div>
- {isSigningRequestsLoading && (
- <Empty>
- <EmptyHeader>
- <EmptyTitle>Loading…</EmptyTitle>
- </EmptyHeader>
- </Empty>
- )}
- {!isSigningRequestsLoading && filteredSigning.length === 0 && (
- <Empty className="border">
- <EmptyHeader>
- <EmptyTitle>
- {signingStatusFilters.size === 1 && signingStatusFilters.has("pending")
- ? "No requests pending review"
- : "No requests"}
- </EmptyTitle>
- <EmptyDescription>
- Code-signing approval workflows from any Signer will appear here.
- </EmptyDescription>
- </EmptyHeader>
- </Empty>
- )}
- {!isSigningRequestsLoading && filteredSigning.length > 0 && (
- <Table>
- <TableHeader>
- <TableRow>
- <TableHead>Signer</TableHead>
- <TableHead>Requester</TableHead>
- <TableHead>Status</TableHead>
- <TableHead>Requested</TableHead>
- </TableRow>
- </TableHeader>
- <TableBody>
- {filteredSigning.map((r) => {
- const signingData = isCodeSigningData(r.requestData)
- ? r.requestData.requestData
- : null;
- const signerName = signingData?.signerName ?? "—";
- const badge = STATUS_BADGE[r.status as ApprovalRequestStatus] ?? {
- label: r.status,
- variant: "neutral" as const
- };
+ {isSigningRequestsLoading && (
+ <Empty>
+ <EmptyHeader>
+ <EmptyTitle>Loading…</EmptyTitle>
+ </EmptyHeader>
+ </Empty>
+ )}
+ {!isSigningRequestsLoading && filteredSigning.length === 0 && (
+ <Empty className="border">
+ <EmptyHeader>
+ <EmptyTitle>
+ {signingStatusFilters.size === 1 && signingStatusFilters.has("pending")
+ ? "No requests pending review"
+ : "No requests"}
+ </EmptyTitle>
+ <EmptyDescription>
+ Code-signing approval workflows from any Signer will appear here.
+ </EmptyDescription>
+ </EmptyHeader>
+ </Empty>
+ )}
+ {!isSigningRequestsLoading && filteredSigning.length > 0 && (
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead>Signer</TableHead>
+ <TableHead>Requester</TableHead>
+ <TableHead>Status</TableHead>
+ <TableHead>Requested</TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {filteredSigning.map((r) => {
+ const signingData = isCodeSigningData(r.requestData)
+ ? r.requestData.requestData
+ : null;
+ const signerName = signingData?.signerName ?? "—";
+ const badge = STATUS_BADGE[r.status as ApprovalRequestStatus] ?? {
+ label: r.status,
+ variant: "neutral" as const
+ };
- return (
- <TableRow
- key={r.id}
- className="cursor-pointer"
- onClick={() =>
- navigate({
- to: `/organizations/${orgId}/projects/cert-manager/${projectId}/approvals/${r.id}` as never,
- search: {
- policyType: ApprovalPolicyType.CertCodeSigning,
- from: "root-requests"
- } as never
- } as never)
- }
- >
- <TableCell isTruncatable className="font-mono">
- {signerName}
- </TableCell>
- <TableCell>{r.requesterName || r.requesterEmail || "—"}</TableCell>
- <TableCell>
- <Badge variant={badge.variant}>{badge.label}</Badge>
- </TableCell>
- <TableCell className="text-accent">
- {formatRelative(r.createdAt)}
- </TableCell>
- </TableRow>
- );
- })}
- </TableBody>
- </Table>
- )}
- </CardContent>
- </Card>
- </TabPanel>
- </Tabs>
+ return (
+ <TableRow
+ key={r.id}
+ className="cursor-pointer"
+ onClick={() =>
+ navigate({
+ to: `/organizations/${orgId}/projects/cert-manager/${projectId}/approvals/${r.id}` as never,
+ search: {
+ policyType: ApprovalPolicyType.CertCodeSigning,
+ from: "root-requests"
+ } as never
+ } as never)
+ }
+ >
+ <TableCell isTruncatable className="font-mono">
+ {signerName}
+ </TableCell>
+ <TableCell>{r.requesterName || r.requesterEmail || "—"}</TableCell>
+ <TableCell>
+ <Badge variant={badge.variant}>{badge.label}</Badge>
+ </TableCell>
+ <TableCell className="text-accent">
+ {formatRelative(r.createdAt)}
+ </TableCell>
+ </TableRow>
+ );
+ })}
+ </TableBody>
+ </Table>
+ )}
+ </CardContent>
+ </Card>
+ )}
</div>
</div>
</div>
diff --git a/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/AddOrgMemberModal.tsx b/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/AddOrgMemberModal.tsx
index 33dd248838..4aef04127d 100644
--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/AddOrgMemberModal.tsx
+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/AddOrgMemberModal.tsx
@@ -39,8 +39,16 @@ const BUILT_IN_PROJECT_ROLES = [
];
const CERT_MANAGER_ROLES = [
- { slug: "admin", name: "Admin", description: "Full administrative access over Cert Manager" },
- { slug: "member", name: "Guest", description: "Limited read/write access in Cert Manager" }
+ {
+ slug: "admin",
+ name: "Admin",
+ description: "Full administrative access over Certificate Manager"
+ },
+ {
+ slug: "member",
+ name: "Member",
+ description: "Limited read/write access in Certificate Manager"
+ }
];
const EmailSchema = z.string().email().min(1).trim().toLowerCase();
@@ -108,7 +116,9 @@ export const AddOrgMemberModal = ({
if (p.type !== ProjectType.CertificateManager) return true;
return activeId ? p.id === activeId : true;
})
- .map((p) => (p.type === ProjectType.CertificateManager ? { ...p, name: "Cert Manager" } : p));
+ .map((p) =>
+ p.type === ProjectType.CertificateManager ? { ...p, name: "Certificate Manager" } : p
+ );
}, [rawProjects, certManagerInstance?.activeProjectId]);
const {
diff --git a/frontend/src/pages/organization/SettingsPage/components/OrgCertManagerTab/OrgCertManagerTab.tsx b/frontend/src/pages/organization/SettingsPage/components/OrgCertManagerTab/OrgCertManagerTab.tsx
index f103707a63..529da34976 100644
--- a/frontend/src/pages/organization/SettingsPage/components/OrgCertManagerTab/OrgCertManagerTab.tsx
+++ b/frontend/src/pages/organization/SettingsPage/components/OrgCertManagerTab/OrgCertManagerTab.tsx
@@ -1,119 +1,18 @@
-import { useState } from "react";
-
-import { createNotification } from "@app/components/notifications";
-import {
- Badge,
- Button,
- Card,
- CardContent,
- CardDescription,
- CardHeader,
- CardTitle,
- Empty,
- EmptyDescription,
- EmptyHeader,
- EmptyTitle,
- PageLoader,
- Table,
- TableBody,
- TableCell,
- TableHead,
- TableHeader,
- TableRow
-} from "@app/components/v3";
-import {
- useCertManagerLegacyInstances,
- useSetCertManagerActiveProject
-} from "@app/hooks/api/certManagerInstance";
+import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@app/components/v3";
+import { ActiveInstancePicker } from "@app/layouts/PkiManagerLayout/components/ActiveInstancePicker";
export const OrgCertManagerTab = () => {
- const { data, isPending } = useCertManagerLegacyInstances();
- const setActive = useSetCertManagerActiveProject();
- const [pendingId, setPendingId] = useState<string | null>(null);
-
- const onPick = async (projectId: string, name: string) => {
- setPendingId(projectId);
- try {
- await setActive.mutateAsync(projectId);
- createNotification({
- type: "success",
- text: `${name} is now the active Cert Manager instance`
- });
- } catch (err) {
- const detail = err instanceof Error ? err.message : "Failed to switch active instance.";
- createNotification({ type: "error", text: detail });
- } finally {
- setPendingId(null);
- }
- };
-
- if (isPending || !data) {
- return <PageLoader />;
- }
-
return (
<Card>
<CardHeader>
- <CardTitle>Cert Manager</CardTitle>
+ <CardTitle>Certificate Manager</CardTitle>
<CardDescription>
- Pick which Cert Manager instance the product launches into. API requests without a
+ Pick which Certificate Manager instance the product launches into. API requests without a
projectId resolve to the active instance.
</CardDescription>
</CardHeader>
<CardContent>
- {data.instances.length === 0 ? (
- <Empty className="border">
- <EmptyHeader>
- <EmptyTitle>No Cert Manager instances</EmptyTitle>
- <EmptyDescription>
- Create a Cert Manager project from the organization to get started.
- </EmptyDescription>
- </EmptyHeader>
- </Empty>
- ) : (
- <Table>
- <TableHeader>
- <TableRow>
- <TableHead className="w-full">Name</TableHead>
- <TableHead className="text-right whitespace-nowrap">Certificates</TableHead>
- <TableHead className="text-right whitespace-nowrap">Syncs</TableHead>
- <TableHead className="text-right whitespace-nowrap">Alerts</TableHead>
- <TableHead className="text-right whitespace-nowrap">Action</TableHead>
- </TableRow>
- </TableHeader>
- <TableBody>
- {data.instances.map((i) => (
- <TableRow key={i.id}>
- <TableCell className="w-full">
- <div className="flex flex-wrap items-baseline gap-x-2 gap-y-0.5">
- <span className="font-medium text-foreground">{i.name}</span>
- <span className="font-mono text-xs text-accent">{i.slug}</span>
- </div>
- </TableCell>
- <TableCell className="text-right whitespace-nowrap">
- {i.certificateCount}
- </TableCell>
- <TableCell className="text-right whitespace-nowrap">{i.syncCount}</TableCell>
- <TableCell className="text-right whitespace-nowrap">{i.alertCount}</TableCell>
- <TableCell className="text-right whitespace-nowrap">
- {i.isActive ? (
- <Badge variant="success">Active</Badge>
- ) : (
- <Button
- size="xs"
- variant="outline"
- isPending={pendingId === i.id}
- onClick={() => onPick(i.id, i.name)}
- >
- Set as active
- </Button>
- )}
- </TableCell>
- </TableRow>
- ))}
- </TableBody>
- </Table>
- )}
+ <ActiveInstancePicker />
</CardContent>
</Card>
);
diff --git a/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx b/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx
index 6ae57df2f2..cad61ce63a 100644
--- a/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx
+++ b/frontend/src/pages/project/AccessControlPage/AccessControlPage.tsx
@@ -45,10 +45,10 @@ const Page = () => {
<div className="mx-auto mb-6 w-full max-w-8xl">
<PageHeader
scope={currentProject.type}
- title={isCertManager ? "Cert Manager Access Control" : "Project Access Control"}
+ title={isCertManager ? "Certificate Manager Access Control" : "Project Access Control"}
description={
isCertManager
- ? "Manage fine-grained access for users, groups, roles, and machine identities within your Cert Manager."
+ ? "Manage fine-grained access for users, groups, roles, and machine identities within your Certificate Manager."
: "Manage fine-grained access for users, groups, roles, and machine identities within your project resources."
}
>
diff --git a/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupModal.tsx b/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupModal.tsx
index 324e2b2e52..ce05d29f1c 100644
--- a/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupModal.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupModal.tsx
@@ -155,7 +155,7 @@ const Content = ({ popUp, handlePopUpToggle }: Props) => {
export const GroupModal = ({ popUp, handlePopUpToggle }: Props) => {
const { currentProject } = useProject();
const isCertManager = currentProject?.type === ProjectType.CertificateManager;
- const productLabel = isCertManager ? "Cert Manager" : "Project";
+ const productLabel = isCertManager ? "Certificate Manager" : "Project";
return (
<Modal
diff --git a/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsSection.tsx b/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsSection.tsx
index e4238d9a06..45dad5f3bc 100644
--- a/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsSection.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsSection.tsx
@@ -31,7 +31,7 @@ export const GroupsSection = () => {
const { subscription } = useSubscription();
const { currentProject } = useProject();
const isCertManager = currentProject?.type === ProjectType.CertificateManager;
- const productLabel = isCertManager ? "Cert Manager" : "Project";
+ const productLabel = isCertManager ? "Certificate Manager" : "Project";
const { mutateAsync: deleteMutateAsync } = useDeleteGroupFromWorkspace();
diff --git a/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsTable.tsx b/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsTable.tsx
index 8098f02482..d4e22a8112 100644
--- a/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsTable.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/GroupsTab/components/GroupsSection/GroupsTable.tsx
@@ -66,7 +66,7 @@ export const GroupTable = ({ handlePopUpOpen }: Props) => {
const { currentProject } = useProject();
const navigate = useNavigate();
const isCertManager = currentProject?.type === ProjectType.CertificateManager;
- const productLabel = isCertManager ? "Cert Manager" : "Project";
+ const productLabel = isCertManager ? "Certificate Manager" : "Project";
const {
search,
diff --git a/frontend/src/pages/project/AccessControlPage/components/IdentityTab/IdentityTab.tsx b/frontend/src/pages/project/AccessControlPage/components/IdentityTab/IdentityTab.tsx
index 11578fee7b..a4743f1ebc 100644
--- a/frontend/src/pages/project/AccessControlPage/components/IdentityTab/IdentityTab.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/IdentityTab/IdentityTab.tsx
@@ -102,7 +102,7 @@ export const IdentityTab = withProjectPermission(
const navigate = useNavigate();
const { isSubOrganization, currentOrg } = useOrganization();
const isCertManager = currentProject?.type === ProjectType.CertificateManager;
- const productLabel = isCertManager ? "Cert Manager" : "Project";
+ const productLabel = isCertManager ? "Certificate Manager" : "Project";
const [addMachineIdentityType, setAddMachineIdentityType] = useState<AddIdentityType>(
AddIdentityType.CreateNew
@@ -301,7 +301,7 @@ export const IdentityTab = withProjectPermission(
{debouncedSearch.trim().length > 0 || isTableFiltered
? "No machine identities match search"
: isCertManager
- ? "No machine identities have been added to this Cert Manager"
+ ? "No machine identities have been added to this Certificate Manager"
: "No machine identities have been added to this project"}
</EmptyTitle>
<EmptyDescription>
@@ -576,7 +576,7 @@ export const IdentityTab = withProjectPermission(
{identityProjectId
? "Delete Machine Identity"
: isCertManager
- ? "Remove From Cert Manager"
+ ? "Remove From Certificate Manager"
: "Remove From Project"}
</DropdownMenuItem>
)}
diff --git a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/AddMemberModal.tsx b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/AddMemberModal.tsx
index 1273b2b29e..723ffc6471 100644
--- a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/AddMemberModal.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/AddMemberModal.tsx
@@ -70,7 +70,7 @@ export const AddMemberModal = ({ popUp, handlePopUpToggle }: Props) => {
const orgId = currentOrg?.id || "";
const projectId = currentProject?.id || "";
const isCertManager = currentProject?.type === ProjectType.CertificateManager;
- const productLabel = isCertManager ? "Cert Manager" : "Project";
+ const productLabel = isCertManager ? "Certificate Manager" : "Project";
const { data: members } = useGetWorkspaceUsers(projectId);
const { data: orgUsers } = useGetOrgUsers(orgId);
@@ -240,7 +240,7 @@ export const AddMemberModal = ({ popUp, handlePopUpToggle }: Props) => {
bodyClassName="overflow-visible"
title={
isCertManager
- ? "Add Members to Cert Manager"
+ ? "Add Members to Certificate Manager"
: (t("section.members.add-dialog.add-member-to-project") as string)
}
subTitle={t("section.members.add-dialog.user-will-email")}
diff --git a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersSection.tsx b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersSection.tsx
index 3cf3765f9e..e936bfc2de 100644
--- a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersSection.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersSection.tsx
@@ -30,7 +30,7 @@ export const MembersSection = () => {
const { currentOrg } = useOrganization();
const { currentProject } = useProject();
const isCertManager = currentProject?.type === ProjectType.CertificateManager;
- const productLabel = isCertManager ? "Cert Manager" : "Project";
+ const productLabel = isCertManager ? "Certificate Manager" : "Project";
const { mutateAsync: removeUserFromWorkspace } = useDeleteUserFromWorkspace();
diff --git a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersTable.tsx b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersTable.tsx
index 51f4a21197..227e5da5de 100644
--- a/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersTable.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/MembersTab/components/MembersTable.tsx
@@ -82,7 +82,7 @@ export const MembersTable = ({ handlePopUpOpen }: Props) => {
const filterRoles = useMemo(() => filter.roles, [filter.roles]);
const isCertManager = currentProject?.type === ProjectType.CertificateManager;
- const productLabel = isCertManager ? "Cert Manager" : "Project";
+ const productLabel = isCertManager ? "Certificate Manager" : "Project";
const userId = user?.id || "";
const projectId = currentProject?.id || "";
const { data: projectRoles } = useGetProjectRoles(projectId, currentProject?.type);
diff --git a/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx b/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx
index 0e94307cec..cf4b56fc04 100644
--- a/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx
+++ b/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx
@@ -228,12 +228,12 @@ export const ProjectRoleList = () => {
<Card>
<CardHeader>
<CardTitle>
- {isCertManager ? "Cert Manager Roles" : "Project Roles"}
+ {isCertManager ? "Certificate Manager Roles" : "Project Roles"}
<DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/access-controls/role-based-access-controls#project-level-access-controls" />
</CardTitle>
<CardDescription>
{isCertManager
- ? "View built-in roles for Cert Manager"
+ ? "View built-in roles for Certificate Manager"
: "Create and manage project roles"}
</CardDescription>
{!isCertManager && (
diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx
index 867c08a52f..d446950b31 100644
--- a/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx
+++ b/frontend/src/pages/project/GroupDetailsByIDPage/GroupDetailsByIDPage.tsx
@@ -100,14 +100,14 @@ const Page = () => {
className="mb-4 flex w-fit items-center gap-x-1 text-sm text-mineshaft-400 transition duration-100 hover:text-mineshaft-400/80"
>
<ChevronLeftIcon size={16} />
- {isCertManager ? "Cert Manager Groups" : "Project Groups"}
+ {isCertManager ? "Certificate Manager Groups" : "Project Groups"}
</Link>
<PageHeader
scope={currentProject.type}
title={groupMembership.group.name}
description={
isCertManager
- ? "Configure and manage cert manager access control"
+ ? "Configure and manage certificate manager access control"
: "Configure and manage project access control"
}
>
diff --git a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsx b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsx
index c5d2e100be..15b6cbe510 100644
--- a/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsx
+++ b/frontend/src/pages/project/GroupDetailsByIDPage/components/GroupDetailsSection.tsx
@@ -67,7 +67,7 @@ export const GroupDetailsSection = ({ groupMembership }: Props) => {
</DetailValue>
</Detail>
<Detail>
- <DetailLabel>{isCertManager ? "Cert Manager Role" : "Project Role"}</DetailLabel>
+ <DetailLabel>{isCertManager ? "Certificate Manager Role" : "Project Role"}</DetailLabel>
<DetailValue>
<ProjectPermissionCan
I={ProjectPermissionActions.Edit}
@@ -85,7 +85,9 @@ export const GroupDetailsSection = ({ groupMembership }: Props) => {
</DetailValue>
</Detail>
<Detail>
- <DetailLabel>{isCertManager ? "Joined cert manager" : "Joined project"}</DetailLabel>
+ <DetailLabel>
+ {isCertManager ? "Joined certificate manager" : "Joined project"}
+ </DetailLabel>
<DetailValue>{format(groupMembership.createdAt, "PPpp")}</DetailValue>
</Detail>
</DetailGroup>
diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx
index 7d61d21561..98ae22850a 100644
--- a/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx
+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/IdentityDetailsByIDPage.tsx
@@ -189,13 +189,15 @@ const Page = () => {
className="mb-4 flex w-fit items-center gap-x-1 text-sm text-mineshaft-400 transition duration-100 hover:text-mineshaft-400/80"
>
<ChevronLeftIcon size={16} />
- {isCertManager ? "Cert Manager Machine Identities" : "Project Machine Identities"}
+ {isCertManager
+ ? "Certificate Manager Machine Identities"
+ : "Project Machine Identities"}
</Link>
<PageHeader
scope={currentProject.type}
description={
isCertManager
- ? `Configure and manage${isProjectIdentity ? " machine identity and " : " "}cert manager access control`
+ ? `Configure and manage${isProjectIdentity ? " machine identity and " : " "}certificate manager access control`
: `Configure and manage${isProjectIdentity ? " machine identity and " : " "}project access control`
}
title={identityMembershipDetails.identity.name}
diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeSection.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeSection.tsx
index d00a676f44..ec83f07d57 100644
--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeSection.tsx
+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityProjectAdditionalPrivilegeSection/IdentityProjectAdditionalPrivilegeSection.tsx
@@ -116,7 +116,9 @@ export const IdentityProjectAdditionalPrivilegeSection = ({ identityMembershipDe
<Card>
<CardHeader>
<CardTitle>
- {isCertManager ? "Cert Manager Additional Privileges" : "Project Additional Privileges"}
+ {isCertManager
+ ? "Certificate Manager Additional Privileges"
+ : "Project Additional Privileges"}
<DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/access-controls/additional-privileges#api" />
</CardTitle>
<CardDescription>Assign one-off policies to this machine identity</CardDescription>
diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsx
index b57015f588..9b64cfc38b 100644
--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsx
+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsx
@@ -132,7 +132,7 @@ export const IdentityRoleDetailsSection = ({
<>
<Card>
<CardHeader>
- <CardTitle>{isCertManager ? "Cert Manager Roles" : "Project Roles"}</CardTitle>
+ <CardTitle>{isCertManager ? "Certificate Manager Roles" : "Project Roles"}</CardTitle>
<CardDescription>Manage roles assigned to this machine identity</CardDescription>
{hasRoles && (
<CardAction>
diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsx
index b360ae6725..46c2508ee4 100644
--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsx
+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/ProjectIdentityDetailsSection.tsx
@@ -147,7 +147,7 @@ export const ProjectIdentityDetailsSection = ({
{/* eslint-disable-next-line no-nested-ternary */}
{isOrgIdentity
? isCertManager
- ? "Joined cert manager"
+ ? "Joined certificate manager"
: "Joined project"
: "Created"}
</DetailLabel>
diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx
index 25c5005578..9eb5537d40 100644
--- a/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx
+++ b/frontend/src/pages/project/MemberDetailsByIDPage/MemberDetailsByIDPage.tsx
@@ -145,7 +145,7 @@ export const Page = () => {
className="mb-4 flex w-fit items-center gap-x-1 text-sm text-mineshaft-400 transition duration-100 hover:text-mineshaft-400/80"
>
<FontAwesomeIcon icon={faChevronLeft} />
- {isCertManager ? "Cert Manager Users" : "Project Users"}
+ {isCertManager ? "Certificate Manager Users" : "Project Users"}
</Link>
<PageHeader
scope={currentProject.type}
@@ -159,7 +159,7 @@ export const Page = () => {
}
description={
isCertManager
- ? "Configure and manage cert manager access control"
+ ? "Configure and manage certificate manager access control"
: "Configure and manage project access control"
}
>
diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberProjectAdditionalPrivilegeSection/MemberProjectAdditionalPrivilegeSection.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberProjectAdditionalPrivilegeSection/MemberProjectAdditionalPrivilegeSection.tsx
index 7ccc47687a..ce28936452 100644
--- a/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberProjectAdditionalPrivilegeSection/MemberProjectAdditionalPrivilegeSection.tsx
+++ b/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberProjectAdditionalPrivilegeSection/MemberProjectAdditionalPrivilegeSection.tsx
@@ -142,7 +142,9 @@ export const MemberProjectAdditionalPrivilegeSection = ({ membershipDetails }: P
<Card>
<CardHeader>
<CardTitle>
- {isCertManager ? "Cert Manager Additional Privileges" : "Project Additional Privileges"}
+ {isCertManager
+ ? "Certificate Manager Additional Privileges"
+ : "Project Additional Privileges"}
<DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/access-controls/additional-privileges#api" />
</CardTitle>
<CardDescription>Assign one-off policies to this user</CardDescription>
diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberRoleDetailsSection/MemberRoleDetailsSection.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberRoleDetailsSection/MemberRoleDetailsSection.tsx
index 381bed55b2..bec30cdb9c 100644
--- a/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberRoleDetailsSection/MemberRoleDetailsSection.tsx
+++ b/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberRoleDetailsSection/MemberRoleDetailsSection.tsx
@@ -139,7 +139,7 @@ export const MemberRoleDetailsSection = ({
<>
<Card>
<CardHeader>
- <CardTitle>{isCertManager ? "Cert Manager Roles" : "Project Roles"}</CardTitle>
+ <CardTitle>{isCertManager ? "Certificate Manager Roles" : "Project Roles"}</CardTitle>
<CardDescription>Manage roles assigned to this user</CardDescription>
{!isOwnProjectMembershipDetails && hasRoles && (
<CardAction>
diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/components/ProjectMemberDetailsSection.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/components/ProjectMemberDetailsSection.tsx
index bf0fe9e82d..806538e966 100644
--- a/frontend/src/pages/project/MemberDetailsByIDPage/components/ProjectMemberDetailsSection.tsx
+++ b/frontend/src/pages/project/MemberDetailsByIDPage/components/ProjectMemberDetailsSection.tsx
@@ -100,7 +100,9 @@ export const ProjectMemberDetailsSection = ({ membership }: Props) => {
</Detail>
)}
<Detail>
- <DetailLabel>{isCertManager ? "Joined cert manager" : "Joined project"}</DetailLabel>
+ <DetailLabel>
+ {isCertManager ? "Joined certificate manager" : "Joined project"}
+ </DetailLabel>
<DetailValue>{format(membership.createdAt, "PPpp")}</DetailValue>
</Detail>
</DetailGroup>
diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsx
index 6e3fb480ec..d9c2b72477 100644
--- a/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsx
+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsx
@@ -44,7 +44,7 @@ const Page = () => {
const isCertManager = currentProject?.type === ProjectType.CertificateManager;
const { data } = useGetProjectRoleBySlug(projectId, roleSlug as string, currentProject?.type);
- const displayName = isCertManager && data?.slug === "member" ? "Guest" : (data?.name ?? "");
+ const displayName = data?.name ?? "";
const { mutateAsync: deleteProjectRole } = useDeleteProjectRole();
@@ -99,7 +99,7 @@ const Page = () => {
className="mb-4 flex items-center gap-x-2 text-sm text-muted"
>
<ChevronLeftIcon className="size-4" />
- {isCertManager ? "Cert Manager Roles" : "Project Roles"}
+ {isCertManager ? "Certificate Manager Roles" : "Project Roles"}
</Link>
<PageHeader
scope={currentProject.type}
@@ -205,13 +205,13 @@ const Page = () => {
{isCertManager && isCustomRole && (
<div className="mb-4 rounded-md border border-mineshaft-600 bg-mineshaft-900 p-4 text-sm text-mineshaft-200">
<p className="font-medium text-mineshaft-100">
- Custom roles act as Member in Cert Manager
+ Custom roles act as Member in Certificate Manager
</p>
<p className="mt-1 text-mineshaft-300">
- In the new Cert Manager flow, access is granted through Application memberships
- (Admin or Member). Permissions defined here only apply to legacy endpoints — users
- with this role are treated as Member at the project level and only see resources
- inside Applications they are explicitly added to.
+ In the new Certificate Manager flow, access is granted through Application
+ memberships (Admin or Member). Permissions defined here only apply to legacy
+ endpoints — users with this role are treated as Member at the project level and only
+ see resources inside Applications they are explicitly added to.
</p>
</div>
)}
diff --git a/frontend/src/views/PkiAlertsV2Page/PkiAlertsV2Page.tsx b/frontend/src/views/PkiAlertsV2Page/PkiAlertsV2Page.tsx
index 78766b9672..87d01fe454 100644
--- a/frontend/src/views/PkiAlertsV2Page/PkiAlertsV2Page.tsx
+++ b/frontend/src/views/PkiAlertsV2Page/PkiAlertsV2Page.tsx
@@ -138,9 +138,7 @@ export const PkiAlertsV2Page = ({ hideContainer = false }: Props) => {
Legacy
</span>
</div>
- <p className="text-xs text-bunker-300">
- Create new alerts inside a Cert Manager Application.
- </p>
+ <p className="text-xs text-bunker-300">Create new alerts inside an Application.</p>
</div>
<div className="mb-4 flex items-center">