Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions GUI/src/services/llmConnections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,7 @@ export async function createLLMConnection(connectionData: LLMConnectionFormData)

// After successful database creation, store secrets in vault
if (connection && connection.id) {
try {
await createVaultSecret(connection.id.toString(), connectionData);
} catch (vaultError) {
console.error('Failed to store secrets in vault:', vaultError);
// Note: We don't throw here to avoid breaking the connection creation flow
// The connection is already created in the database
}
await createVaultSecret(connection.id.toString(), connectionData);
}

return connection;
Expand Down Expand Up @@ -314,11 +308,11 @@ export async function updateLLMConnection(

const connection = data?.response;

if (connection && (connectionData.secretKey && !connectionData.secretKey?.includes('*')
|| connectionData.accessKey && !connectionData.accessKey?.includes('*')
|| connectionData.apiKey && !connectionData.apiKey?.includes('*')
|| connectionData.embeddingAccessKey && !connectionData.embeddingAccessKey?.includes('*')
|| connectionData.embeddingSecretKey && !connectionData.embeddingSecretKey?.includes('*')
if (connection && (connectionData.secretKey && !connectionData.secretKey?.includes('*')
|| connectionData.accessKey && !connectionData.accessKey?.includes('*')
|| connectionData.apiKey && !connectionData.apiKey?.includes('*')
|| connectionData.embeddingAccessKey && !connectionData.embeddingAccessKey?.includes('*')
|| connectionData.embeddingSecretKey && !connectionData.embeddingSecretKey?.includes('*')
|| connectionData.embeddingAzureApiKey && !connectionData.embeddingAzureApiKey?.includes('*'))) {
try {
await createVaultSecret(id.toString(), connectionData);
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The **BYK-RAG Module** is part of the Burokratt ecosystem, designed to provide *
- Models searchable via dropdown with cache-enabled indicators.

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

Expand Down
Loading