All rules →
Rules / Ruby
SHIELD-RUBY-019

Hardcoded secret or password

highRubyCWE-798CVSS 8.2

What it detects

Assigning a literal password, secret key, or API key in source code exposes credentials.

How to fix

Load secrets from environment variables or Rails encrypted credentials.

Scan your repo freeFull documentation
Back to all rules
SHIELD-RUBY-019: Hardcoded secret or password — Zennoxa Shield