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 remote-tracking branch 'origin/main' into chore/gateway-improvements
Sheen Capadngan9b2ca90b6d26
diff --cc backend/src/ee/services/gateway-v2/gateway-v2-service.tsindex 267cdf101f,9069357d41..2c8ef40f46--- a/backend/src/ee/services/gateway-v2/gateway-v2-service.ts+++ b/backend/src/ee/services/gateway-v2/gateway-v2-service.ts@@@ -1010,8 -976,8 +1052,9 @@@ export const gatewayV2ServiceFactory =getPAMConnectionDetails,deleteGatewayById,heartbeat,+ triggerHeartbeat,getPamSessionKey,- healthcheckNotify+ healthcheckNotify,+ getConnectedResources};};diff --cc backend/src/server/routes/index.tsindex 894dae4e77,62c1f40bc5..a0ccefaf5a--- a/backend/src/server/routes/index.ts+++ b/backend/src/server/routes/index.ts@@@ -2737,6 -2776,8 +2785,9 @@@ export const registerRoutes = asyncconst pamDiscoverySourceAccountsDAL = pamDiscoverySourceAccountsDALFactory(db);const pamDiscoverySourceDependenciesDAL = pamDiscoverySourceDependenciesDALFactory(db);const pamAccountDependenciesDAL = pamAccountDependenciesDALFactory(db);+ const pamResourceRotationRulesDAL = pamResourceRotationRulesDALFactory(db);+ const aiMcpServerDAL = aiMcpServerDALFactory(db);++const aiMcpServerToolDAL = aiMcpServerToolDALFactory(db);const aiMcpServerUserCredentialDAL = aiMcpServerUserCredentialDALFactory(db);const aiMcpActivityLogDAL = aiMcpActivityLogDALFactory(db);diff --cc frontend/src/pages/organization/NetworkingPage/components/GatewayTab/GatewayTab.tsxindex ff0444b22e,4191e9fc20..94707f419b--- a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/GatewayTab.tsx+++ b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/GatewayTab.tsx@@@ -45,24 -46,26 +46,31 @@@ importimport { withPermission } from "@app/hoc";import { usePopUp } from "@app/hooks";import { gatewaysQueryKeys, useDeleteGatewayById } from "@app/hooks/api/gateways";-import { useDeleteGatewayV2ById, useTriggerGatewayV2Heartbeat } from "@app/hooks/api/gateways-v2";+import {+ useDeleteGatewayV2ById,- useGetGatewayConnectedResources++ useGetGatewayConnectedResources,++ useTriggerGatewayV2Heartbeat+} from "@app/hooks/api/gateways-v2";+ import { GatewayHealthCheckStatus } from "@app/hooks/api/gateways-v2/types";import { EditGatewayDetailsModal } from "./components/EditGatewayDetailsModal";+import { GatewayConnectedResourcesDrawer } from "./components/GatewayConnectedResourcesDrawer";import { GatewayDeployModal } from "./components/GatewayDeployModal";- const GatewayHealthStatus = ({ heartbeat }: { heartbeat?: string }) => {+ const GatewayHealthStatus = ({+ heartbeat,+ lastHealthCheckStatus+ }: {+ heartbeat?: string;+ lastHealthCheckStatus?: GatewayHealthCheckStatus | null;+ }) => {const heartbeatDate = heartbeat ? new Date(heartbeat) : null;- const now = new Date();- const oneHourAgo = new Date(now.getTime() - 60 * 60 * 1000);- const isHealthy = heartbeatDate && heartbeatDate >= oneHourAgo;+ const isHealthy = lastHealthCheckStatus === GatewayHealthCheckStatus.Healthy;+const tooltipContent = heartbeatDate- ? `Last heartbeat: ${heartbeatDate.toLocaleString()}`- : "No heartbeat data available";+ ? `Last health check: ${heartbeatDate.toLocaleString()}`+ : "No health check data available";return (<Tooltip content={tooltipContent}>@@@ -217,18 -186,13 +241,23 @@@ export const GatewayTab = withPermissio</span></div></Td>+ <Td>+ <GatewayConnectedCell+ gatewayId={el.id}+ isV1={el.isV1}+ onClick={() => {+ setSelectedGateway({ id: el.id, name: el.name });+ handlePopUpOpen("connectedResources");+ }}+ />+ </Td><Td>- <GatewayHealthStatus heartbeat={el.heartbeat} />+ <GatewayHealthStatus+ heartbeat={el.heartbeat}+ lastHealthCheckStatus={+ "lastHealthCheckStatus" in el ? el.lastHealthCheckStatus : null+ }+ /></Td><Td className="w-5"><Tooltip className="max-w-sm text-center" content="Options">