-
-
Notifications
You must be signed in to change notification settings - Fork 2
en User Manager Auth
wiki-sync edited this page Apr 15, 2026
·
1 revision
- All API requests require
Authorization: Bearer <token> - Tokens stored in
/secure/module_tokens/*.tokenfiles - Each module gets its own token at installation
- Dev token: set
DEV_MODULE_TOKENenv var for testing
-
iptables: UI routes (
/api/ui/*) accessible only from localhost -
API routes (
/api/v1/*) require Bearer token -
Module Bus (
ws://.../api/v1/bus?token=TOKEN) — WebSocket auth with the same module token - Modules cannot access
/secure/directory directly -
core.*events can only be published by core - Module Bus ACL enforces permissions per module type (SYSTEM modules get full access)
- 120 requests per 60 seconds per client
- Configurable in
RateLimitMiddleware
- Multiple user profiles supported
- PIN authentication (4-8 digits)
- PIN brute-force protection: 5 attempts → 10 minute lockout
- Face ID via camera (face recognition)
- Speaker ID via voice print (resemblyzer)
- All processing local, no cloud services
- Biometric data stored in
/secure/
- AES-256-GCM encryption
- Stores OAuth tokens, API keys
- Located in
/secure/tokens/ - API:
POST /api/v1/secrets,GET /api/v1/secrets - Modules access via API, never directly reading
/secure/
- All user actions logged to SQLite
audit_logtable - 10,000 records with automatic rotation
- Fields:
action,user_id,timestamp,details - Query via user_manager system module API
- Google OAuth for account linking
- Tuya OAuth for smart device integration
- Credentials in
.env:GOOGLE_CLIENT_ID,GOOGLE_CLIENT_SECRET, etc.
- Secure remote access via Tailscale
- Auth key in
.env:TAILSCALE_AUTH_KEY - No port forwarding needed
🤖 This wiki is auto-synced from docs/ in the main repo. Hand-edits on the wiki UI get overwritten on the next push. Open a PR against the main repo instead.
MIT License · Sponsor · Ko-fi
SelenaCore
🇬🇧 English
Getting started
Architecture
Voice & translation
Hardware integration
Development
- Modules overview
- Module development
- System module development
- Module API guide
- Module bus protocol
- Widget development
- User manager / auth
Reference
🇺🇦 Українська
Початок
Архітектура
Голос і переклад
Інтеграція заліза
Розробка
- Розробка модулів
- Розробка системних модулів
- Module API
- Module bus
- Widget development
- User manager / auth
Довідник