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: add encryption to LLM keys #1897

Closed
wants to merge 9 commits into from

Conversation

ashrafchowdury
Copy link
Collaborator

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 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 23, 2024 1:13am

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request Frontend labels Jul 15, 2024
@bekossy bekossy self-requested a review July 15, 2024 18:58
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Jul 23, 2024
@bekossy bekossy force-pushed the enhance/1879-add-encryption-to-llm-keys branch from 72d00b5 to ebd4c2f Compare July 23, 2024 01:03
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Jul 23, 2024
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 23, 2024
@bekossy
Copy link
Member

bekossy commented Aug 11, 2024

@mmabrouk @aakrem
This PR has been reviewed and approved

@mmabrouk
Copy link
Member

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

@mmabrouk mmabrouk closed this Nov 20, 2024
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 lgtm This PR has been approved by a maintainer 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
3 participants