syn

Syn access control

Every dashboard account has one of three roles. The server checks the role on every request; the browser only hides what a role can’t use. Hiding a button is never the protection.

Role Who it’s for In one line
Admin whoever runs Syn Can do everything.
Network defender people who watch and work the network Can see everything but can’t change settings.
User household members, device owners Can only see the events for the devices assigned to them.

What each role can do

Capability Admin Network defender User
Sign in, change own password (More → My account) ✓ ✓ ✓
Push notifications on own browsers/phones ✓ ✓ ✓ (assigned devices only)
Urgent alerts (Alerts page, 🔔) all all assigned devices only
Security events for a device (correlated findings, IDS, gateway, endpoint, vulns) all pages all pages My devices page, assigned devices only
Every other page: Overview, Security, Network (including Network → Users, the accounts seen in the logs), Devices, Notes, AI pipeline, Checked ✓ ✓ ✗
Configuration and Dashboard users pages view + change view only ✗
Check off events, write 📝 event notes and host notes, confirm/reject AI correlation verdicts ✓ ✓ ✗
📝 notes on events of own devices (pending until approved; sees only own notes) ✓ ✓ ✓ (assigned devices only)
Send an event to research (📝 popover; Users: own devices’ events only) ✓ ✓ ✓
Approve / reject User notes so the AI may read them ✓ ✓ ✗
Accept / reject host, endpoint, Internet IP and DNS notes (accepted = authoritative for the AI, rejected = never sent to it) ✓ ✓ ✗
Ask AI tool options: Elasticsearch (default on) and web research (default off) ✓ ✓ fixed at Elasticsearch on, web off
Ask AI (chat) ✓ (and can pick the model per message) ✓ (the configured chat model) ✗
Choose own alert devices (Alerts → Notification settings) ✓ ✓ ✗ (an admin assigns them)
Mark alerts read shared 🔔 for everyone shared 🔔 for everyone private marker, doesn’t change anyone else’s 🔔
AI pipeline configuration > Review limits: skip event-type pairs, set the event reviewer’s time window, switch event classification, cap links per event, discard old verdicts ✓ ✓ ✗
🚫 Suppress findings, IDS signatures, segmentation flows and alerts; remove legacy alert mute rules (Alerts page) ✓ ✓ ✗
Add / delete users, reset passwords, change roles, assign devices ✓ ✗ ✗
Integrations (Elasticsearch, UniFi, web search): view and change ✓ ✗ ✗
Audit log (More → Audit log): read, set its Elasticsearch key ✓ ✗ ✗
Model-training status page (/training, written by the training tools into the state folder) ✓ ✗ ✗
Auto-close settings, review-job schedule, “Run now” / Pause, event research limits, reopen auto-closed ✓ ✗ ✗
AI providers and API keys, AI models (event reviewer / review job, event research, chat), Elasticsearch-search switches (event reviewer, event research and Ask AI), notes per event ✓ ✗ ✗

“Settings”, which a defender can’t change, means anything that changes how Syn runs or who can use it: users, roles, device assignments, integrations, auto-close, schedules, limits, AI providers and AI models. Analyst work, such as checking items off, writing notes, confirming or rejecting an AI link, limiting which links the event reviewer sees (AI pipeline configuration > Review limits) and using Ask AI, is not a setting. Defenders can do it.

The User role in detail

Managing access (admins)

More → Dashboard users:

Safety rules:

From the host (recovery, e.g. if every admin is locked out):

docker exec -it netmon-dashboard python /app/server.py set-role <user> admin|defender|user
docker exec -it netmon-dashboard python /app/server.py add-user <user> [admin|defender|user]   # default admin; prompts for a password
docker exec -it netmon-dashboard python /app/server.py set-password <user>

Where it lives

What Where
Role per account role field of the account in the Syn database (users document; the DB file is 0600)
Device assignment push_prefs table in dashboard/state/netmon.db (the same setting that routes alerts)
User-role read marker read_upto field of the same account
Enforcement dashboard/app/server.py: USER_GET / USER_POST allow-lists for Users, ADMIN_POST for admin-only changes; auth.role_of()
Push scope dashboard/app/pushsvc.py

Denied requests are logged to the container log as access denied: <user> (<role>) POST <path>. Role changes, user adds and deletes are logged as user admin: ….

Everything is also written to the audit log (dashboard/app/audit.py, Elasticsearch index logs-syn, page More → Audit log): every sign-in attempt, every POST (with its parameters, secrets redacted), page views, report downloads, audit-log reads, every refused request (403), console user changes (server.py add-user / set-role / set-password), and every conversation between the dashboard and an AI model (prompt, answer, model, tokens, time). See AUDIT_LOG.md.

Upgrade from the single-tier setup

Before roles existed, every account could see and check off everything, and NETMON_ADMINS in dashboard/.env named the accounts allowed to change AI models. On the first start with roles, every existing account was made an Admin (log line access control: existing accounts made admins: …), so nobody lost access. Lower accounts to Network defender or User on the Dashboard users page as needed. NETMON_ADMINS is no longer read and can be removed from .env.

Welcome walkthrough for new accounts

An account created on the Users page is flagged on creation. The first time it signs in, the dashboard shows a short guided setup: welcome (what the role can do), choose your own password, turn on notifications for this device, your devices, and where to find things. Every step can be skipped; finishing or skipping clears the flag (POST /api/account/welcome), so it is shown once. Accounts that existed before this feature, and the first account seeded from DASH_USER/DASH_PASS, are not flagged.