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

Fixed severity posed by sonarqube #3061

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PALASH2201
Copy link

What problem does this PR solve?

This PR addresses the security concern of hardcoding MongoDB credentials directly into the codebase. Storing credentials in the code can expose sensitive information, especially when working in a shared or open-source repository.

The .env file has been introduced to securely store MongoDB credentials, which are then fetched within the application. Additionally, the test cases have been modified accordingly to ensure that they work seamlessly with this new environment-based credential setup.

Close #2865

@PALASH2201
Copy link
Author

@iluwatar Can you add mongo db secrets in this repo
image
So that they can be accessed in github action

Copy link
Owner

@iluwatar iluwatar left a comment

Choose a reason for hiding this comment

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

The build is failing, please check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix high severity issues reported by SonarCloud
2 participants