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

Add Firebase authentication functionality #23

Merged
merged 4 commits into from
Apr 14, 2024
Merged

Add Firebase authentication functionality #23

merged 4 commits into from
Apr 14, 2024

Conversation

mmpotulo28
Copy link
Member

No description provided.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @mmpotulo28 - I've reviewed your changes and found some issues that need to be addressed.

Blocking issues:

  • Hard-coded secret detected in package.json. (link)
  • Hard-coded API key detected in the source code. (link)
  • Hard-coded authDomain detected in the source code. (link)
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🔴 Security: 3 blocking issues
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Docstrings: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@@ -9,6 +9,8 @@
"author": "",
"license": "ISC",
"dependencies": {
"@sentry/browser": "^7.109.0"
"@sentry/browser": "^7.109.0",
"dotenv": "^16.4.5",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 issue (security): Hard-coded secret detected in package.json.

The dotenv package is used to load environment variables from a .env file into process.env. Storing configuration in the environment separate from code is based on The Twelve-Factor App methodology.

} from 'https://www.gstatic.com/firebasejs/9.6.1/firebase-database.js';

const firebaseConfig = {
apiKey: 'AIzaSyCdlRc8cgZLCBT7lUkWePlMRVV_2a4viyQ',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 issue (security): Hard-coded API key detected in the source code.

Storing API keys directly in the source code can lead to security risks. Consider using environment variables or a secure vault solution to manage sensitive information.


const firebaseConfig = {
apiKey: 'AIzaSyCdlRc8cgZLCBT7lUkWePlMRVV_2a4viyQ',
authDomain: 'authcenterza.firebaseapp.com',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 issue (security): Hard-coded authDomain detected in the source code.

Consider moving this configuration to a secure, external configuration file or environment variables to enhance security and flexibility.

pages/auth/auth.js Show resolved Hide resolved
pages/auth/auth.js Show resolved Hide resolved
pages/auth/fb.js Outdated Show resolved Hide resolved
pages/auth/fb.js Outdated Show resolved Hide resolved
Copy link

cloudflare-workers-and-pages bot commented Apr 14, 2024

Deploying devpost-hackathon with  Cloudflare Pages  Cloudflare Pages

Latest commit: 128c293
Status: ✅  Deploy successful!
Preview URL: https://bc974a73.devpost-hackathon.pages.dev
Branch Preview URL: https://mmpotulo.devpost-hackathon.pages.dev

View logs

mmpotulo28 and others added 2 commits April 14, 2024 03:59
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
@mmpotulo28 mmpotulo28 merged commit 1d5baae into main Apr 14, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant