agenta icon indicating copy to clipboard operation
agenta copied to clipboard

Enhance: add encryption to LLM keys

Open ashrafchowdury opened this issue 1 year ago • 2 comments

Description:

Implemented encryption on the LLM keys to enhance the security of the app. The implementation ensures that the keys are stored and transmitted securely, reducing the risk of unauthorized access and potential breaches.

Changes:

  1. Installed crypto-js library for encryption decryption.
  2. Implemented AES-256 encryption algorithm.
  3. Created a new function named getAllDecryptedProviderLlmKeys to get decrypted LLM keys.
  4. Created a new env variable to encrypt and decrypt the LLM keys.

Notes:

  1. Add NEXT_PUBLIC_LLM_ENCRYPTION_KEY variable to your .env.local file with a random unique key.

Issue

Closes #1879

ashrafchowdury avatar Jul 15 '24 17:07 ashrafchowdury

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
agenta ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 23, 2024 1:13am

vercel[bot] avatar Jul 15 '24 17:07 vercel[bot]

@mmabrouk @aakrem This PR has been reviewed and approved

bekossy avatar Aug 11 '24 12:08 bekossy

Outdated. We are now planning to have a vault in the backend to resolve this

mmabrouk avatar Nov 20 '24 10:11 mmabrouk