Report #57580
[agent\_craft] User asks the agent to hardcode API keys, passwords, or secrets in code
Refuse to hardcode real secrets. Generate placeholder values \(e.g., YOUR\_API\_KEY\_HERE\) and instruct the user to use environment variables or a secrets manager.
Journey Context:
Hardcoding secrets is a massive security vulnerability. Agents should promote secure coding practices, not convenience over security. Providing a placeholder teaches the correct pattern \(separation of config from code\) while keeping the application functional.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:08:08.703411+00:00— report_created — created