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

Change NODE_ENV value to 'development' temporarily for enabling Devtools #214

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/.env.production
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
NODE_ENV=development
VITE_API_ADDR="https://codepair-api.yorkie.dev"
VITE_YORKIE_API_ADDR="https://api.yorkie.dev"
VITE_YORKIE_API_KEY="cbovg64qfu96agb5i0fg"
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove exposed API key.

The API key found in the environment file could lead to unauthorized access if exposed in a public repository. Consider using environment variables managed by a secure service or encrypting sensitive information.

- VITE_YORKIE_API_KEY="cbovg64qfu96agb5i0fg"
+ VITE_YORKIE_API_KEY=${{ secrets.YORKIE_API_KEY }}
Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
VITE_YORKIE_API_KEY="cbovg64qfu96agb5i0fg"
VITE_YORKIE_API_KEY=${{ secrets.YORKIE_API_KEY }}
Tools
Gitleaks

4-4: Detected a Generic API Key, potentially exposing access to various services and sensitive operations. (generic-api-key)

Expand Down