|
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>
|
|---|
|
|
| .env.example |
|---|
| docs/api.md |
|---|
| docs/api_tokens.md |
|---|
| docs/auth.md |
|---|
| docs/config.md |
|---|
| docs/index.md |
|---|
| docs/mechanics.md |
|---|
| docs/sessions.md |
|---|
| docs/websocket.md |
|---|
| navi/api/routes/auth.py |
|---|
| navi/auth/_ddl.py |
|---|
| navi/auth/deps.py |
|---|
| navi/config.py |
|---|
| navi/main.py |
|---|
| tests/integration/test_auth_disabled.py 0 → 100644 |
|---|
| tests/unit/auth/test_deps.py |
|---|
| webclient/dist/assets/index-B-XArGgJ.js 100644 → 0 |
|---|
|
Not supported
|
| webclient/dist/assets/index-B9MKY33g.css 100644 → 0 |
|---|
| webclient/dist/assets/index-Bgnk3REC.css 0 → 100644 |
|---|
| webclient/dist/assets/index-DzAywTTN.js 0 → 100644 |
|---|
|
Not supported
|
| webclient/dist/index.html |
|---|
| webclient/src/App.vue |
|---|
| webclient/src/components/settings/ApiKeysPanel.vue |
|---|
| webclient/src/components/sidebar/AppSidebar.vue |
|---|
| webclient/src/stores/auth.js |
|---|