(plan) convert original implement plan to mock api
This commit is contained in:
@@ -1,15 +1,8 @@
|
||||
# 4.9 — Structured logging of rejections (GREEN)
|
||||
# 4.9 — Log rejected /api/exec input (GREEN)
|
||||
|
||||
Phase: 4 — Terminal (Surface C)
|
||||
Stage: GREEN
|
||||
|
||||
Depends on: [4.4](4.4-api-exec.md)
|
||||
- [x] Every rejected `/api/exec` input logged (server console)
|
||||
|
||||
- [ ] Structured logging: every rejected `/api/exec` input logged
|
||||
|
||||
## Verify
|
||||
|
||||
```bash
|
||||
# attempt injection payloads against /api/exec; all rejected, all logged
|
||||
curl -X POST https://riotpiao.com/api/exec -d '{"cmd":"get pods; rm -rf /"}'
|
||||
```
|
||||
Done — `console.warn` on every reject branch in [app/api/exec/route.ts](../app/api/exec/route.ts). Mock only: plain console output, not the structured/shipped logging pipeline a real backend needs — see [REQUIREMENTS.md](REQUIREMENTS.md).
|
||||
|
||||
Reference in New Issue
Block a user