Hardcoded database password detected

Description

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.

Resources

Associated CWE

OWASP Top 10

Configuration

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.