- profiler: Literal instead of Query(enum=...) (broke on FastAPI 0.162)
- pin fastapi/starlette/uvicorn/pydantic for the profiler, upper bounds for APP_CORE
- health check: show the service log when an HTTP check fails
- update.sh: the "before" version comes from deploy.state
- migrate.py: hint about OVPMON_*_DB_PATH when the default database is missing
- docs: --source --no-pull mode, dependency pinning, PIP_CONSTRAINT
- tests: new test for the section parameter, fixed test_server_process.py
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Docker: variant B needs Docker Compose 2.17+ (additional_contexts); install.sh
and update.sh check it in the preflight. Native: backup.sh, update.sh,
restore.sh and --rollback now copy and restore ovpmon_backup.db (Backup and
Restore settings) as an optional file. Verified install, update, backup,
restore and rollback on Debian 12 (systemd), Alpine 3.23 (OpenRC) and both
container variants.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Documentation
- Three levels: DOCS/General (overview, configuration), DOCS/Deployment
(choose a method, first steps), details per method in Containers/ and
System_Services/; new root README and DOCS/README map.
- Remove superseded pages (Deployment.md, Deployment_Docker/Native.md, Index.md);
split the two scenario guides by section.
- Isolate the Timeweb/Hysteria2 records in DEPLOYMENTS/timeweb-hysteria2/
(not linked from DOCS, listed in .graphifyignore).
- Add DOCS/code_review/ with a time-stamped analysis of the code base.
Gatherer (BUG-02, BUG-03)
- Session key (CN, address, connected_since_ts), baseline from the
active_sessions snapshot, grace period for sessions missing from the status.
- Status file integrity (TITLE/TIME/END) and freshness; a torn read skips the tick.
- Cache applied after commit; main loop survives exceptions, backs off, and
stops cleanly on SIGTERM/SIGINT; new client rows start with the first
frame's totals; five tests.
JWT signing key (SEC-01)
- No built-in default: Core and Profiler refuse to start with a missing,
placeholder or short (< 32) key; shipped config.ini has an empty value.
- Same rule in install.sh, update.sh (issues a new key when missing or weak),
docker lib/entrypoint; five tests, conftest.py for the test key.
Each change has a plan and a summary under DOCS/Changes/.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
deploy/native/firewall.sh reads the server interfaces and applies, for traffic
from the VPN network to all other networks: masquerade, TCP MSS clamping
(path MTU tuning) and TTL tuning, in its own table `ip ovpmon`. Rules are
persisted in /etc/ovpmon/nftables.nft and loaded at boot by the ovpmon-nft
service (systemd and OpenRC). Opt-in: install.sh and update.sh do not call it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- install.sh always asks for the install directory (--prefix or a prompt
with confirmation, no default); refuses system directories, the
repository checkout itself, paths inside/containing it and non-empty
directories (a resumed install is allowed). A preflight refusal says
nothing was changed.
- UI is part of the repository: committed build in deploy/ui-dist with
SOURCE_HASH and a staleness guard (check-ui.sh, loud warning). install.sh
and update.sh resolve the UI: --ui-dist FILE|DIR, --build-ui, committed
build; install stops without a UI unless --no-ui. update.sh swaps the UI
when its hash differs from the installed one (.ui-source-hash).
- build-ui.sh: --docker, --local (host Node >= 20.19, temporary copy),
--node-download (portable Node, SHA-256 verified), --publish.
- Verified on Alpine 3.23: install without UI options installs the real UI;
local build equals the Docker build; update skips an unchanged UI and
warns on a stale build. --node-download is untested (needs network).
- Docs: Scenario 2 guide, change summary, plan, README.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>