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:
ayurishchevandClaude Sonnet 5.5 committed 2026-10-05 20:30:45 +03:00
1 parent f95a0b63e6
commit ad6995bb63
85 files changed
+2805 -1280

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
# Deployment records: ENTRY on Timeweb with a Hysteria2 chain
Records of **one concrete deployment**: the OpenVPN Monitor on an Alpine host at Timeweb ("ENTRY") whose VPN clients leave the internet through a Hysteria2 tunnel to an exit node ("EXIT", Debian, Gcore). Host addresses, the account name and the certificate fingerprint appear in these files; no passwords or keys are stored.
**This folder is not part of the product documentation.** To install the application use [DOCS/Deployment](../../DOCS/Deployment/README.md). Nothing in `DOCS/` depends on these files, and you do not need Hysteria2 to run the application.
| Document | Content |
|---|---|
| [Hysteria_Chain_Manifest.md](Hysteria_Chain_Manifest.md) | The entry-exit chain: prerequisites, EXIT and ENTRY setup, clients, diagnostics, error table |
| [Egress_via_Hysteria2.md](Egress_via_Hysteria2.md) | Routing the OpenVPN client network through the `hytun` tunnel (policy routing, anti-leak) |
| [SUMMARY-ovpn-monitor.md](SUMMARY-ovpn-monitor.md) | State of the host, access, install, security findings and fixes, open items (Russian) |
| [REBOOT-TEST.md](REBOOT-TEST.md) | Reboot tests of both nodes |
| [PLAN-validation-and-privilege-drop.md](PLAN-validation-and-privilege-drop.md) | Plan: settings validation and running the APIs unprivileged (Russian) |
| [IMPLEMENTATION-01-settings-validation.md](IMPLEMENTATION-01-settings-validation.md) | Rollout record: settings validation |
| [IMPLEMENTATION-02-privilege-separation.md](IMPLEMENTATION-02-privilege-separation.md) | Rollout record: privilege separation and CRL publishing |
The product-side description of the same changes is in [DOCS/Changes](../../DOCS/Changes/README.md) (settings validation, privilege separation).