Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Merge branch 'main' into ENG-3586
x03220548b9aeb0d190
diff --cc backend/src/@types/fastify.d.tsindex 01194351d2,6795c824b0..b0a5fbb452--- a/backend/src/@types/fastify.d.ts+++ b/backend/src/@types/fastify.d.ts@@@ -83,7 -83,7 +83,8 @@@ import { TIdentityUaServiceFactory } frimport { TIntegrationServiceFactory } from "@app/services/integration/integration-service";import { TIntegrationAuthServiceFactory } from "@app/services/integration-auth/integration-auth-service";import { TMicrosoftTeamsServiceFactory } from "@app/services/microsoft-teams/microsoft-teams-service";+import { TNotificationServiceFactory } from "@app/services/notification/notification-service";+ import { TOfflineUsageReportServiceFactory } from "@app/services/offline-usage-report/offline-usage-report-service";import { TOrgRoleServiceFactory } from "@app/services/org/org-role-service";import { TOrgServiceFactory } from "@app/services/org/org-service";import { TOrgAdminServiceFactory } from "@app/services/org-admin/org-admin-service";@@@ -304,7 -305,7 +306,8 @@@ declare module "fastify"bus: TEventBusService;sse: TServerSentEventsService;identityAuthTemplate: TIdentityAuthTemplateServiceFactory;+ notification: TNotificationServiceFactory;+ offlineUsageReport: TOfflineUsageReportServiceFactory;};// this is exclusive use for middlewares in which we need to inject data// everywhere else access using service layerdiff --cc backend/src/server/routes/index.tsindex 367f2f7c34,e17d06eefc..5abb338542--- a/backend/src/server/routes/index.ts+++ b/backend/src/server/routes/index.ts@@@ -564,22 -571,10 +575,17 @@@ export const registerRoutes = asyncqueueService,projectDAL,licenseService,- auditLogStreamDAL+ auditLogStreamService});+ const notificationQueue = await notificationQueueServiceFactory({+ userNotificationDAL,+ queueService+ });++ const notificationService = notificationServiceFactory({ notificationQueue, userNotificationDAL });+const auditLogService = auditLogServiceFactory({ auditLogDAL, permissionService, auditLogQueue });- const auditLogStreamService = auditLogStreamServiceFactory({- licenseService,- permissionService,- auditLogStreamDAL- });const secretApprovalPolicyService = secretApprovalPolicyServiceFactory({projectEnvDAL,secretApprovalPolicyApproverDAL: sapApproverDAL,diff --cc frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsxindex 3bda912dd3,2181569130..f72fa79751--- a/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx+++ b/frontend/src/layouts/OrganizationLayout/components/NavBar/Navbar.tsx@@@ -125,17 -118,7 +126,18 @@@ export const Navbar = () =>const [shouldShowMfa, toggleShowMfa] = useToggle(false);const router = useRouter();const queryClient = useQueryClient();++ const { data: notifications, isLoading } = useGetMyNotifications();+ const { mutate: markAllAsRead } = useMarkAllNotificationsAsRead();+ const { mutate: markNotificationAsRead } = useMarkNotificationAsRead();+ const { mutate: deleteNotification } = useDeleteNotification();++ const unreadCount = useMemo(+ () => notifications?.filter((n) => !n.isRead).length || 0,+ [notifications]+ );++ const location = useLocation();const matches = useRouterState({ select: (s) => s.matches.at(-1)?.context });const breadcrumbs = matches && "breadcrumbs" in matches ? matches.breadcrumbs : undefined;