Module 02 Summary
What this module established
Read secrets into their own variable, never into an object you might log, and default the model to a fake so misconfiguration fails safely rather than expensively.
Carry forward
- A key that has ever been committed is public. Rotate first - history rewriting is tidying and leaves every clone and CI cache untouched.
- Cost the feature at realistic volume including retries. A 20% retry rate is a 20% cost increase that arrives looking like traffic growth.
- Enforce the spend ceiling in your own code, before each call. A provider alert is a monitor, not a control.
Before moving on
Move on when a fresh clone with no environment passes the tests, and your spend ceiling refuses a call with a clear message.
