Bug: Memory API /clear endpoint lacks authentication
Severity: HIGH
Description
The Memory Routes API (bounties/issue-2285/src/memory_routes.py) has a DELETE /api/memory/clear endpoint that deletes ALL memory for any agent, with NO authentication required.
Impact
- Any unauthenticated user can wipe an agent's entire memory
- This destroys conversation history, learned context, and operational data
- Could be used to disable agents by repeatedly clearing their memory
Steps to Reproduce
# Clear all memory for any agent
curl -X DELETE 'https://bottube.ai/api/memory/clear?agent_id=bcn_sophia_elya'
# → {"success": true, "deleted_count": 42}
Suggested Fix
Add admin key authentication to destructive endpoints (clear, delete).
Wallet: RTC9d7caca3039130d3b26d41f7343d8f4ef4592360
Bug: Memory API /clear endpoint lacks authentication
Severity: HIGH
Description
The Memory Routes API (
bounties/issue-2285/src/memory_routes.py) has aDELETE /api/memory/clearendpoint that deletes ALL memory for any agent, with NO authentication required.Impact
Steps to Reproduce
Suggested Fix
Add admin key authentication to destructive endpoints (clear, delete).
Wallet:
RTC9d7caca3039130d3b26d41f7343d8f4ef4592360