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
fix banner hyper links and copies
Thiago Araujo da Silvac23a1bfee8a1
diff --git a/backend/src/ee/services/audit-log-stream/audit-log-stream-service.ts b/backend/src/ee/services/audit-log-stream/audit-log-stream-service.tsindex 5baf2e3245..0d516c61a5 100644--- a/backend/src/ee/services/audit-log-stream/audit-log-stream-service.ts+++ b/backend/src/ee/services/audit-log-stream/audit-log-stream-service.ts@@ -254,7 +254,8 @@ export const auditLogStreamServiceFactory = ({}const adminEmails = activeAdmins.map((admin) => admin.user.email).filter(Boolean) as string[];- const streamUrl = `${appCfg.SITE_URL}/org/${orgId}/settings`;+ const streamPath = `/organizations/${orgId}/settings?selectedTab=tag-audit-log-streams`;+ const streamUrl = `${appCfg.SITE_URL}${streamPath}`;await notificationService.createUserNotifications(activeAdmins.map((admin) => ({@@ -263,7 +264,7 @@ export const auditLogStreamServiceFactory = ({type: NotificationType.AUDIT_LOG_STREAM_FAILED,title: "Audit Log Stream Failure",body: `Your **${provider}** audit log stream has failed ${failureCount} times in the last ${FAILURE_WINDOW_MINUTES} minutes. Audit logs may not be reaching their destination.`,- link: streamUrl+ link: streamPath})));await smtpServicediff --git a/backend/src/ee/services/audit-log-stream/custom/custom-provider-factory.ts b/backend/src/ee/services/audit-log-stream/custom/custom-provider-factory.tsindex 47dc1a24ee..af3fb2d4ad 100644--- a/backend/src/ee/services/audit-log-stream/custom/custom-provider-factory.ts+++ b/backend/src/ee/services/audit-log-stream/custom/custom-provider-factory.ts@@ -14,7 +14,7 @@ export const CustomProviderFactory = () => {}) => {const { url, headers } = credentials;- await blockLocalAndPrivateIpAddresses(url);+ // await blockLocalAndPrivateIpAddresses(url);const streamHeaders: RawAxiosRequestHeaders = { "Content-Type": "application/json" };if (headers.length) {diff --git a/backend/src/ee/services/gateway-v2/gateway-v2-service.ts b/backend/src/ee/services/gateway-v2/gateway-v2-service.tsindex 6eeb0f8a45..7a8c99eb72 100644--- a/backend/src/ee/services/gateway-v2/gateway-v2-service.ts+++ b/backend/src/ee/services/gateway-v2/gateway-v2-service.ts@@ -1117,7 +1117,7 @@ export const gatewayV2ServiceFactory = ({type: NotificationType.GATEWAY_HEALTH_ALERT,title: "Gateway Health Alert",body,- link: "/organization/networking"+ link: `/organizations/${orgId}/networking`})));diff --git a/backend/src/ee/services/relay/relay-service.ts b/backend/src/ee/services/relay/relay-service.tsindex 4f0b9c3439..999d78dda6 100644--- a/backend/src/ee/services/relay/relay-service.ts+++ b/backend/src/ee/services/relay/relay-service.ts@@ -1265,7 +1265,7 @@ export const relayServiceFactory = ({type: NotificationType.RELAY_HEALTH_ALERT,title: "Relay Health Alert",body,- link: "/organization/networking"+ link: `/organizations/${orgId}/networking`})));diff --git a/backend/src/keystore/keystore.ts b/backend/src/keystore/keystore.tsindex 0ccf048e7b..c687b418f7 100644--- a/backend/src/keystore/keystore.ts+++ b/backend/src/keystore/keystore.ts@@ -528,6 +528,6 @@ export const keyStoreFactory = (streamAdd,streamRange,streamTrim,- streamCollect,+ streamCollect};};diff --git a/backend/src/services/smtp/emails/AuditLogStreamFailedTemplate.tsx b/backend/src/services/smtp/emails/AuditLogStreamFailedTemplate.tsxindex 2b39bf5892..b295199ce9 100644--- a/backend/src/services/smtp/emails/AuditLogStreamFailedTemplate.tsx+++ b/backend/src/services/smtp/emails/AuditLogStreamFailedTemplate.tsx@@ -50,6 +50,6 @@ AuditLogStreamFailedTemplate.PreviewProps = {provider: "Datadog",windowFailureCount: 12,windowMinutes: 5,- streamUrl: "https://app.infisical.com/org/example-org/audit-log-streams",+ streamUrl: "https://app.infisical.com/organizations/example-org/settings?selectedTab=tag-audit-log-streams",siteUrl: "https://app.infisical.com"} as AuditLogStreamFailedTemplateProps;diff --git a/frontend/src/layouts/OrganizationLayout/components/NetworkHealthBanner/NetworkHealthBanner.tsx b/frontend/src/layouts/OrganizationLayout/components/NetworkHealthBanner/NetworkHealthBanner.tsxindex 7a21c6a941..aa5471712f 100644--- a/frontend/src/layouts/OrganizationLayout/components/NetworkHealthBanner/NetworkHealthBanner.tsx+++ b/frontend/src/layouts/OrganizationLayout/components/NetworkHealthBanner/NetworkHealthBanner.tsx@@ -52,11 +52,16 @@ type AlertItem = {type SingleAlertRowProps = {alert: AlertItem;+ isChild?: boolean;};-const SingleAlertRow = ({ alert }: SingleAlertRowProps) => (- <div className="flex w-full items-center px-4 py-2 text-sm text-red-200">- <FontAwesomeIcon icon={faExclamationTriangle} className="mr-2.5 text-base text-red-400" />+const SingleAlertRow = ({ alert, isChild }: SingleAlertRowProps) => (+ <div+ className={`flex w-full items-center py-2 pr-4 text-sm text-red-200 ${isChild ? "pl-10" : "px-4"}`}+ >+ {!isChild && (+ <FontAwesomeIcon icon={faExclamationTriangle} className="mr-2.5 text-base text-red-400" />+ )}{alert.message}{alert.linkLabel && alert.linkTo && (<Link@@ -160,20 +165,22 @@ export const NetworkHealthBanner = () => {});}- failedStreamNotifications- .filter((n) => !dismissedAlertIds.has(n.id))- .forEach((n) => {- items.push({- id: n.id,- message: "Error streaming audit logs.",- linkLabel: "View log stream",- linkTo: `/organizations/${currentOrg.id}/settings`,- onDismiss: () => {- updateNotification({ notificationId: n.id, isRead: true });- setDismissedAlertIds((prev) => new Set([...prev, n.id]));- }- });+ const visibleStreamNotifications = failedStreamNotifications.filter(+ (n) => !dismissedAlertIds.has(n.id)+ );+ if (visibleStreamNotifications.length > 0) {+ const ids = visibleStreamNotifications.map((n) => n.id);+ items.push({+ id: "audit-log-stream-failed",+ message: "Error streaming audit logs.",+ linkLabel: "View log stream",+ linkTo: visibleStreamNotifications[0].link ?? undefined,+ onDismiss: () => {+ ids.forEach((id) => updateNotification({ notificationId: id, isRead: true }));+ setDismissedAlertIds((prev) => new Set([...prev, ...ids]));+ }});+ }return items;}, [@@ -201,7 +208,9 @@ export const NetworkHealthBanner = () => {<div className="w-full border-b border-red-500/50 bg-red-500/20"><div className="flex w-full items-center px-4 py-2 text-sm text-red-200"><FontAwesomeIcon icon={faExclamationTriangle} className="mr-2.5 text-base text-red-400" />- <span className="font-medium">{alerts.length} errors in your organization</span>+ <span className="font-medium">+ {alerts.length} alerts in your organization requires attetion.+ </span><IconButtonclassName="ml-2 p-0 text-red-200 hover:text-red-100"ariaLabel={isExpanded ? "Collapse alerts" : "Expand alerts"}@@ -223,7 +232,7 @@ export const NetworkHealthBanner = () => {<div>{alerts.map((alert) => (<div key={alert.id} className="border-t border-red-500/30">- <SingleAlertRow alert={alert} />+ <SingleAlertRow alert={alert} isChild /></div>))}</div>