Docs restructure, code review, gatherer reliability, JWT key fail-closed
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>
This commit is contained in:
1 parent
f95a0b63e6
commit
ad6995bb63
85 files changed
+2805
-1280
No files matched your search
+9
-1
@@ -2,12 +2,20 @@
|
||||
host = 0.0.0.0
|
||||
port = 5001
|
||||
debug = false
|
||||
secret_key = ovpmon-secret-change-me
|
||||
# Set OVPMON_API_SECRET_KEY or this value; at least 32 characters, random (openssl rand -hex 32). There is no built-in default.
|
||||
secret_key =
|
||||
|
||||
[openvpn_monitor]
|
||||
log_path = /var/log/openvpn/openvpn-status.log
|
||||
db_path = openvpn_monitor.db
|
||||
check_interval = 10
|
||||
# Optional gatherer reliability settings (defaults shown)
|
||||
# ticks before a session missing from the status file is forgotten
|
||||
session_grace_ticks = 3
|
||||
# status file older than this (TIME line) means OpenVPN is stopped, no clients
|
||||
status_stale_seconds = 60
|
||||
# consecutive skipped ticks (bad/missing status file) before logging at ERROR
|
||||
status_invalid_max = 6
|
||||
|
||||
[logging]
|
||||
level = INFO
|
||||
|
||||
Reference in new issue
Block a user