# Future netops: SFTP, TLS libs, monitoring - Status: PLAN for v2, needs ADRs, v1 stopgaps hold - Spec: NG-01, D-06, OPS-03 through OPS-06 - Sources: tasks research report plus notes, `plan.md` steps 8-10, elite report section 3 ## What it is The network-operations bundle: in-process SFTP plus SSH via libssh (LGPLv2.1, mbedTLS backend) with wolfSSH-commercial as the size-critical alternate; in-binary TLS via mbedTLS default or BearSSL fallback; per-protocol WORM enforcement plus full two-way policy (LWW, 30d history, oplocks, 128MB cache); firewall plus VPN rules; health checks plus alerts plus quota warnings at 80 and 95 percent; per-mode write/read/delete tests plus rollback plan. ## How TOSV will do it Order from the research plan: confirm distribution model (LGPL relink offer shippable or not), vendor pinned mbedTLS plus libssh under third_party with LICENSES, abstract shared VFS plus Auth, wire TLS week one, SSH/SFTP weeks two to three, static-build verify (`ldd` says not dynamic), then docs plus compliance bundle. WORM and monitoring land as M3-M4 ops work with runbooks, not as code surprises. ## What it protects against Protocol monoculture (clients that only speak SFTP), edge-TLS dependence, silent quota death, unmonitored night failures, and mode confusion (a grant whose verbs nobody tested). ## Attack realism High for monitoring (unwatched vaults fail unwatched) and honest for SFTP: most SFTP demand is compliance checkboxes, served well by libssh, while the vault threat model barely changes. TLS-in-binary matters only when stunnel is operationally heavier than a lib. ## Pros Researched, scored, and license-mapped before writing a line. Staged so WebDAV plus HTTPS ships with zero new deps. Monitoring is cheap vigilance with outsized incident value. ## Cons and how the vault resolves them - libssh LGPL needs notice plus relink offer in closed ships. Resolved by deciding the distribution model FIRST per the research plan; no code lands before the license answer. - wolfSSL GPL virality risk. Resolved by the bright-line rule: commercial license or no wolf stack in closed binaries, ever. - SFTP doubles the auth surface (host keys, pubkey, channels). Resolved by reusing the grant identity model plus VFS jail, with shell and exec denied by policy. - Monitoring pages can fatigue. Resolved by alert owners plus runbooks per alert (unowned alerts are forbidden) plus the 80/95 two-stage quota ramp. ## v1 stopgap that holds until then Hand-rolled [WebDAV](sec-dav.md) plus HTTP POST plus stunnel plus [minimal audit](sec-audit.md): the researched zero-dep core. ## See also - [Security index](security.md), [transport](sec-transport.md), [modes](sec-modes.md), [future platform](sec-future-platform.md)