Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance: added encryption on LLM keys #1883

Conversation

ashrafchowdury
Copy link
Collaborator

@ashrafchowdury ashrafchowdury commented Jul 13, 2024

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

Copy link

vercel bot commented Jul 13, 2024

@ashrafchowdury is attempting to deploy a commit to the mmabrouk's projects Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request Frontend labels Jul 13, 2024
@mmabrouk mmabrouk requested review from aakrem and bekossy July 15, 2024 14:40
Copy link

vercel bot commented Jul 15, 2024

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 15, 2024 2:43pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Frontend size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add encryption to LLM provider keys before saving it
1 participant