Report #15110
[agent\_craft] User requests to hardcode API keys, database passwords, or PII into source code
Refuse to hardcode secrets. Instead, generate code that reads from environment variables, secret managers \(like AWS Secrets Manager, HashiCorp Vault\), or configuration files excluded from version control \(e.g., \`.env\`\).
Journey Context:
Hardcoding secrets is a massive security risk \(OWASP LLM06: Sensitive Information Disclosure\). Agents might comply to be 'helpful,' but the secure default is to externalize secrets. The tradeoff is a slightly more complex setup for the user vs. preventing credential leakage in version control.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T23:14:34.570822+00:00— report_created — created