mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 13:59:40 +00:00
* feat(users,yacy): sync master admin password to YaCy + durable search fix (ref #776) secubox-users -> YaCy single-admin password sync, plus two durable fixes for issues surfaced while resetting the admin password: - yacyctl: 'set-admin-password' subcommand — reads the new password from STDIN (never argv), writes the secret file, injects the YaCy Digest hash, restarts the daemon (root, exact-match sudoers for the secubox user). - secubox-users: _sync_yacy_admin_password propagates the master 'admin' user's password to YaCy on create/change, guarded by yacy-installed-and-active; only the 'admin' user maps to YaCy's single admin account. - install-lxc.sh: configure_search_access sets adminAccountForLocalhost=false so LAN/proxied clients are not pseudo-admin — otherwise the search page appends &auth to the yacysearchitem AJAX, which 401s and renders zero results. - engine._save: preserve users.json owner+mode. A root-run 'usersctl set-password' used to recreate it root:root 0600, locking out the secubox auth service (login then fell back to auth.toml and rejected every password). - tests: sync helper (stdin, non-admin skip, unavailable skip, failure) + owner-mode preservation. * fix(users): surface YaCy sync failures loudly + document NNP requirement (ref #776) Review follow-up: _sync_yacy_admin_password used sudo, which NoNewPrivileges=true neutralizes — on a hardened standalone secubox-users unit the sync would silently no-op while the endpoint still reported success. Now it logs a warning with the sudo stderr on any non-zero/exception and returns False (never silent), and the docstring documents that elevation only works under the aggregator (NNP=no) in-process context. --------- Co-authored-by: CyberMind-FR <gandalf@Gk2.net> |
||
|---|---|---|
| .. | ||
| api | ||
| debian | ||
| menu.d | ||
| nginx | ||
| sbin | ||
| schema | ||
| share | ||
| tests | ||
| www/users | ||
| README.md | ||
👥 User Management
Unified identity management
Category: Access
Screenshot
Features
- User CRUD
- Groups
- Service provisioning
- RBAC
Installation
# Add SecuBox repository
curl -fsSL https://apt.secubox.in/install.sh | sudo bash
# Install package
sudo apt install secubox-users
Configuration
Configuration file: /etc/secubox/users.toml
API Endpoints
GET /api/v1/users/status- Module statusGET /api/v1/users/health- Health check
License
LicenseRef-CMSD-1.0 (Source-Disclosed License) — CyberMind © 2024-2026. See LICENCE-CMSD-1.0.md.
