Hardcoded database password detected
- Rule ID: java_lang_hardcoded_database_password
- Languages: java
- Source: hardcoded_database_password.yml
Hardcoded password used in database connection string detected. Code is not a safe place to store passwords like this; use environment variables or a key-management system instead.
OWASP Top 10
To skip this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --skip-rule=java_lang_hardcoded_database_password
To run only this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --only-rule=java_lang_hardcoded_database_password
Ready to take the next step? Learn more about Bearer Cloud.