
Your agent's error logging leaks the API key: plant canary secrets and fail the build when one shows up
A Vitest test, a scrubbing logger and a call-site fix that stop an agent-written API client from writing credentials into your logs. About 15 minutes to try.
12 min read