Incident response
For a suspected vulnerability in a running service (the nyuchi-api pattern):
- Reproduce with a failing test before the fix. A fix without a test that failed first is unverified.
- Fix with a signed or bound design: a value the client controls is never trusted for identity or authority; bind it to the session or sign it. Closing the symptom while the trust gap stays is not a fix.
- Ship the normal way: issue, PR, green checks, merge queue. In
nyuchi/nyuchi-api,fly-deploy.ymldeploys to Fly after “Test & Build” succeeds on a push tomain, using the exact commit CI tested. A missingFLY_API_TOKENfails loudly. There is no Fly staging app. - Verify live against the deployed service: the exploit request now
fails, a normal request works, the reported version is the new release.
gh run list -R nyuchi/nyuchi-api --workflow fly-deploy.yml --limit 3. - Give the owner a describe-only audit query list: read-only queries (counts, shapes, time ranges) that show whether the bug was used, each with what it counts. The owner runs them; you do not run them on production data.
- Never read personal data to investigate. Work from code, tests, metrics and payload-free logs. Exploitable detail stays out of public issues. Rotating credentials and any production-data action are the owner’s.