Usage of hard-coded secret
- Rule ID: java_lang_hardcoded_secret
- Languages: java
- Source: hardcoded_secret.yml
Description
Applications should store secret values securely and not as literal values in the source code.
Remediations
✅ Retrieve secrets from a secure location at runtime
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_secret
To run only this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --only-rule=java_lang_hardcoded_secret