mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 04:20:45 +08:00
feat(auth): add local login, audit, API keys, and system admin UI
Gate netx Web/API/WebCRT with JWT and per-user API tokens, bootstrap an admin with forced password change, and expose users/audit/API-key management under a System section. MCP can reuse data/auth/mcp_token without extra env for local labs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
14f14d34bd
commit
6d4cd741ef
35 changed files with 2699 additions and 21 deletions
|
|
@ -37,3 +37,9 @@ NETX_UME_ALARM_WS_ENABLED=true
|
|||
NETX_UME_NOTIFICATION_ESTABLISH_PATH=/restconf/operations/zte-notifications:establish-subscription
|
||||
NETX_UME_NOTIFICATION_DELETE_PATH=/restconf/operations/zte-notifications:delete-subscription
|
||||
NETX_UME_NOTIFICATION_TOPIC=ALARM
|
||||
# Auth (optional — lab defaults: admin/admin123 + data/auth/mcp_token)
|
||||
# NETX_AUTH_ENABLED=true
|
||||
# NETX_AUTH_SECRET=change-me-in-production
|
||||
# NETX_BOOTSTRAP_ADMIN_USERNAME=admin
|
||||
# NETX_BOOTSTRAP_ADMIN_PASSWORD=admin123
|
||||
# NETX_API_TOKEN= # MCP: leave empty to auto-read data/auth/mcp_token
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue