Core: - paths.py: centralized ~/.soosef/ path constants - config.py: JSON config loader with dataclass defaults - exceptions.py: SoosefError hierarchy - cli.py: unified Click CLI wrapping stegasoo + verisoo + native commands Keystore: - manager.py: unified key management (Ed25519 identity + channel keys) - models.py: IdentityInfo, KeystoreStatus dataclasses - export.py: encrypted key bundle export/import for USB transfer Fieldkit: - killswitch.py: ordered emergency data destruction (keys first) - deadman.py: dead man's switch with check-in timer - tamper.py: SHA-256 file integrity baseline + checking - usb_monitor.py: pyudev USB whitelist enforcement - geofence.py: haversine-based GPS boundary checking Web frontend (Flask app factory + blueprints): - app.py: create_app() factory with context processor - blueprints: stego, attest, fieldkit, keys, admin - templates: base.html (dark theme, unified nav), dashboard, all section pages - static: CSS, favicon Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
22 lines
465 B
Python
22 lines
465 B
Python
"""
|
|
Admin blueprint — user management and system settings.
|
|
|
|
Will be adapted from stegasoo's admin routes in frontends/web/app.py.
|
|
"""
|
|
|
|
from flask import Blueprint, render_template
|
|
|
|
bp = Blueprint("admin", __name__, url_prefix="/admin")
|
|
|
|
|
|
@bp.route("/users")
|
|
def users():
|
|
"""User management."""
|
|
return render_template("admin/users.html")
|
|
|
|
|
|
@bp.route("/settings")
|
|
def settings():
|
|
"""System settings."""
|
|
return render_template("admin/settings.html")
|