Files
Live_RC/tests
larssand 9016ce02e4 feat(auth): add optional admin PIN for all API writes
Off by default. Once a PIN is set in Settings -> System & backup, every non-GET /api/*
request (plus GET /api/ammc/config) needs a signed 30-day HttpOnly cookie, which also
closes the unauthenticated /api/update/run restart trigger. A 401 opens a PIN dialog
and the pending save is retried after login. Reads stay open because the public overlay
hydrates through GET /api/state. Optional RC_ADMIN_ALLOWED_CIDRS restricts the same
routes by client address.

The PIN hash and signing secret live in data/, outside the app_state blob, so they
never leak through GET /api/state, exports or backups.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 22:14:58 +02:00
..
2026-08-28 13:47:25 +02:00
2026-09-09 08:08:56 +02:00
2026-09-09 08:08:56 +02:00
2026-09-09 07:52:07 +02:00
2026-09-08 18:26:30 +02:00
2026-09-09 07:52:07 +02:00
2026-09-08 18:26:30 +02:00
2026-08-30 16:14:45 +02:00
2026-09-08 13:21:29 +02:00
2026-09-04 15:58:24 +02:00
2026-09-08 17:26:55 +02:00