Skip to content

Commit 6e18001

Browse files
chore(notifications): remove LiteLLM security notification (#1708)
Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
1 parent 9306faf commit 6e18001

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

src/lib/notifications.ts

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ export async function generateUserNotifications(user: User): Promise<KiloNotific
113113
generateMiniMaxNoLongerFreeNotification,
114114
generateFirstDayWelcomeNotification,
115115
generateKiloPassNotification,
116-
generateLiteLLMSecurityNotification,
117116
];
118117

119118
const resolvedConditionalNotifications = (
@@ -357,36 +356,6 @@ async function generateFirstDayWelcomeNotification(
357356
];
358357
}
359358

360-
async function generateLiteLLMSecurityNotification(
361-
user: User,
362-
_ctx: NotificationContext
363-
): Promise<KiloNotification[]> {
364-
try {
365-
const litellmUsers = await cachedPosthogQuery(
366-
z.array(z.tuple([z.string()]).transform(([userId]) => userId))
367-
)('litellm-security-incident-users', 'select id from notification_litellm_mar_24 limit 5e5');
368-
369-
if (!litellmUsers.includes(user.id)) {
370-
console.debug('[generateLiteLLMSecurityNotification] user is not using LiteLLM provider');
371-
return [];
372-
}
373-
374-
console.debug('[generateLiteLLMSecurityNotification] user is using LiteLLM provider');
375-
return [
376-
{
377-
id: 'litellm-security-mar-24',
378-
title: 'LiteLLM Security Advisory',
379-
message:
380-
'Following a recent security incident with LiteLLM, we recommend reviewing your configuration and rotating credentials; if helpful, our gateway offers a more secure, managed alternative.',
381-
showIn: ['extension'],
382-
},
383-
];
384-
} catch (e) {
385-
console.error('[generateLiteLLMSecurityNotification]', e);
386-
return [];
387-
}
388-
}
389-
390359
async function generateKiloPassNotification(
391360
user: User,
392361
ctx: NotificationContext

0 commit comments

Comments
 (0)