DELETE /api/v1/platform/tenants/{id}/data drops the tenant's database and removes its files. Its doc asked for {"confirm": "<slug or id>"}, but the handler only checked that confirm was not empty: any value erased the tenant named in the path.
Now confirm must equal the tenant id in the path, exactly. A missing, empty or different value is refused with 400 before anything is touched.
confirms_erasure in api/handlers/platform.rs, with a unit test (match, missing, empty, other id, case, whitespace, "yes").
docs/guide/data-retention.md names the body.
Callers: tenant-registry #154 (unmerged) will call this from the registry purge; it must send {"confirm": "<tenant id>"}. No other caller found.
`DELETE /api/v1/platform/tenants/{id}/data` drops the tenant's database and removes its files. Its doc asked for `{"confirm": "<slug or id>"}`, but the handler only checked that `confirm` was not empty: any value erased the tenant named in the path.
Now `confirm` must equal the tenant id in the path, exactly. A missing, empty or different value is refused with 400 before anything is touched.
- `confirms_erasure` in `api/handlers/platform.rs`, with a unit test (match, missing, empty, other id, case, whitespace, "yes").
- `docs/guide/data-retention.md` names the body.
Callers: tenant-registry #154 (unmerged) will call this from the registry purge; it must send `{"confirm": "<tenant id>"}`. No other caller found.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
DELETE /api/v1/platform/tenants/{id}/datadrops the tenant's database and removes its files. Its doc asked for{"confirm": "<slug or id>"}, but the handler only checked thatconfirmwas not empty: any value erased the tenant named in the path.Now
confirmmust equal the tenant id in the path, exactly. A missing, empty or different value is refused with 400 before anything is touched.confirms_erasureinapi/handlers/platform.rs, with a unit test (match, missing, empty, other id, case, whitespace, "yes").docs/guide/data-retention.mdnames the body.Callers: tenant-registry #154 (unmerged) will call this from the registry purge; it must send
{"confirm": "<tenant id>"}. No other caller found.🤖 Generated with Claude Code
https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9