> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** Replace repeated Basic Auth prompts on `dzen.nstarikov.ru` with VK ID for the allowlisted VK user and Face ID, Touch ID, Windows Hello, or another WebAuthn passkey.
**Architecture:** FastAPI will own authentication for `/admin` and `/api`: VK ID bootstrap is restricted to `vk_user_id=32018`, WebAuthn challenge endpoints issue registration and authentication options, verification creates an HttpOnly session cookie, and middleware protects all other admin/API routes. SQLite stores passkey credentials and sessions. Caddy no longer applies Basic Auth to the main host.
- [ ] Add RP ID, RP name, session lifetime, and one-time bootstrap settings.
- [ ] Verify imports and SQLite table creation in the container.
### Task 2: Add FastAPI WebAuthn flows and protection
**Files:**
- Create: `app/auth.py`
- Modify: `app/main.py`
- Modify: `app/routes.py`
- [ ] Add registration options/verification and authentication options/verification using `generate_*_options`, `verify_*_response`, and JSON helpers from `webauthn`.
- [ ] Set and clear Secure, HttpOnly, SameSite=Lax session cookies.
- [ ] Permit only auth bootstrap/challenge/verify/health without a session; require a session for `/admin`, `/api`, and logs WebSockets.