-
Notifications
You must be signed in to change notification settings - Fork 8
Security Fix: Hardcoded API Key #21
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
Conversation
Signed-off-by: Harshit Nayan <[email protected]>
|
@LogicalGuy77 is attempting to deploy a commit to the lighthouse-storage Team on Vercel. A member of the Team first needs to authorize it. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @LogicalGuy77 thanks for this, we are merging it to our main branch and adding to it, in terms of security we also have also ip check enabled on brevo
User description
Removed the hardcoded Brevo API with its environment variable. Requesting maintainers to generate a new API key through the Brevo API dashboard and add the env variable in the Vercel's deployment. Fixes: #20
I will open up a follow up PR to move the email sending logic to server side.
PR Type
Bug fix, Enhancement
Description
Replace hardcoded Brevo API key with environment variable
Add error handling for missing API key configuration
Create environment variable example file
Improve security by removing exposed credentials
Diagram Walkthrough
File Walkthrough
emailService.js
Replace hardcoded API key with environment variableutils/services/emailService.js
brevo_keywithprocess.env.NEXT_PUBLIC_BREVO_API_KEY.env.example
Add environment variable example file.env.example