Skip to content

Commit 2be1c01

Browse files
authored
Merge pull request #106 from rootcodelabs/wip
Get Update from wip into RAG-192
2 parents b584e44 + 5cc3963 commit 2be1c01

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

GUI/src/services/llmConnections.ts

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -267,13 +267,7 @@ export async function createLLMConnection(connectionData: LLMConnectionFormData)
267267

268268
// After successful database creation, store secrets in vault
269269
if (connection && connection.id) {
270-
try {
271-
await createVaultSecret(connection.id.toString(), connectionData);
272-
} catch (vaultError) {
273-
console.error('Failed to store secrets in vault:', vaultError);
274-
// Note: We don't throw here to avoid breaking the connection creation flow
275-
// The connection is already created in the database
276-
}
270+
await createVaultSecret(connection.id.toString(), connectionData);
277271
}
278272

279273
return connection;
@@ -314,11 +308,11 @@ export async function updateLLMConnection(
314308

315309
const connection = data?.response;
316310

317-
if (connection && (connectionData.secretKey && !connectionData.secretKey?.includes('*')
318-
|| connectionData.accessKey && !connectionData.accessKey?.includes('*')
319-
|| connectionData.apiKey && !connectionData.apiKey?.includes('*')
320-
|| connectionData.embeddingAccessKey && !connectionData.embeddingAccessKey?.includes('*')
321-
|| connectionData.embeddingSecretKey && !connectionData.embeddingSecretKey?.includes('*')
311+
if (connection && (connectionData.secretKey && !connectionData.secretKey?.includes('*')
312+
|| connectionData.accessKey && !connectionData.accessKey?.includes('*')
313+
|| connectionData.apiKey && !connectionData.apiKey?.includes('*')
314+
|| connectionData.embeddingAccessKey && !connectionData.embeddingAccessKey?.includes('*')
315+
|| connectionData.embeddingSecretKey && !connectionData.embeddingSecretKey?.includes('*')
322316
|| connectionData.embeddingAzureApiKey && !connectionData.embeddingAzureApiKey?.includes('*'))) {
323317
try {
324318
await createVaultSecret(id.toString(), connectionData);

GUI/vite.config.ts.timestamp-1760669278597-b5a7f003c52fe.mjs

Whitespace-only changes.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The **BYK-RAG Module** is part of the Burokratt ecosystem, designed to provide *
1212
- Models searchable via dropdown with cache-enabled indicators.
1313

1414
- **Enhanced Security with RSA Encryption**
15-
- LLM credentials encrypted with RSA-4096 asymmetric encryption before storage.
15+
- LLM credentials encrypted with RSA-2048 asymmetric encryption before storage.
1616
- GUI encrypts using public key; CronManager decrypts with private key.
1717
- Additional security layer beyond HashiCorp Vault's encryption.
1818

0 commit comments

Comments
 (0)