Add NAVI_AUTH_ENABLED switch for optional auth
- Add navi_auth_enabled setting (default true) to navi/config.py and .env.example
- When disabled, treat every request as anonymous admin user (id='anonymous')
- Create/update fixed anonymous navi_users row on startup
- Bypass OAuth/cookie/API-token resolution in navi/auth/deps.py
- Update /auth/status to return {enabled, configured}
- Log security warning on startup when auth is disabled
- Update webclient: skip fetchMe/login screen, show Local mode footer,
  expose /admin link, warn in API keys panel
- Rebuild webclient production bundle
- Add unit and integration tests for no-auth mode
- Update docs: auth.md, config.md, api.md, api_tokens.md, sessions.md,
  websocket.md, mechanics.md, index.md

Co-Authored-By: Claude <noreply@anthropic.com>
1 parent dbb26b4 commit 4923a2bddc367fb5c89a282ef3601f119ad4a790
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored 2 days ago
Showing 25 changed files
View
.env.example
View
docs/api.md
View
docs/api_tokens.md
View
docs/auth.md
View
docs/config.md
View
docs/index.md
View
docs/mechanics.md
View
docs/sessions.md
View
docs/websocket.md
View
navi/api/routes/auth.py
View
navi/auth/_ddl.py
View
navi/auth/deps.py
View
navi/config.py
View
navi/main.py
View
tests/integration/test_auth_disabled.py 0 → 100644
View
tests/unit/auth/test_deps.py
View
webclient/dist/assets/index-B-XArGgJ.js 100644 → 0
Not supported
View
webclient/dist/assets/index-B9MKY33g.css 100644 → 0
View
webclient/dist/assets/index-Bgnk3REC.css 0 → 100644
View
webclient/dist/assets/index-DzAywTTN.js 0 → 100644
Not supported
View
webclient/dist/index.html
View
webclient/src/App.vue
View
webclient/src/components/settings/ApiKeysPanel.vue
View
webclient/src/components/sidebar/AppSidebar.vue
View
webclient/src/stores/auth.js