java-design-patterns icon indicating copy to clipboard operation
java-design-patterns copied to clipboard

Fixed severity posed by sonarqube

Open PALASH2201 opened this issue 1 year ago • 1 comments

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 avatar Oct 13 '24 17:10 PALASH2201

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

PALASH2201 avatar Oct 13 '24 18:10 PALASH2201

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Dec 04 '24 04:12 stale[bot]

This PR is stale because it has been open 60 days with no activity.

github-actions[bot] avatar Feb 03 '25 01:02 github-actions[bot]