{"content":"higun dev journal — commit f017d90 (codex/balance-correctness-p0): fix: gate destructive admin endpoints behind admin_token\n\nFourth P0 (security): GET /blocks/reindex?reset=true wipes the confirmed history stores (address/spend/balance/rank) and starts a weeks-long reindex, reachable by anyone who can hit the API port — no authentication at all. It now returns 403 unless admin_token is set in config.yaml; with it set, requests must carry a matching X-Admin-Token header (constant-time compare). Tests cover disabled-by-default, wrong-token rejection, and gate-open. Operator note: after deploy, reindex calls need the header; the endpoint is inert until a token is configured.","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}