readings-window
aien-dev/readings-window
Brought by drakestapleton
readings-window / SECURITY.md
| 1 | # Security policy |
| 2 | |
| 3 | ## Reporting a vulnerability |
| 4 | |
| 5 | Report privately. Do not open a public issue, pull request or discussion about it. |
| 6 | |
| 7 | 1. GitHub: open this repository's Security tab and choose "Report a vulnerability". This |
| 8 | creates a private advisory that only the maintainers can see. If that option is not shown, |
| 9 | private vulnerability reporting has not been enabled for this repository yet; use email. |
| 10 | 2. Email: drake@aienos.com with the subject `[readings-window] security report`. |
| 11 | |
| 12 | Include the commit or release you tested, the component (path), steps to reproduce, and what an |
| 13 | attacker gains. If the report involves a secret, say where it was exposed and do not send the |
| 14 | secret itself. Encrypted mail is not required; do not post proof-of-concept payloads publicly. |
| 15 | |
| 16 | ## Response targets |
| 17 | |
| 18 | This project has one maintainer; the targets below are best effort and stated honestly. |
| 19 | |
| 20 | - Acknowledgement: within 3 working days. |
| 21 | - Triage and severity: within 7 days of acknowledgement. |
| 22 | - Fix or mitigation for confirmed issues: aim for 30 days for high and critical, 90 days |
| 23 | otherwise, with a status update at least every 14 days until closed. |
| 24 | - Disclosure: coordinated. An advisory is published with credit (unless you ask otherwise) |
| 25 | once the fix is on the default branch. Default embargo 90 days, negotiable. |
| 26 | |
| 27 | ## Scope |
| 28 | |
| 29 | `readings-window` is a Rust service: `collect` fetches readings from a development machine over |
| 30 | ssh and keeps 30 days of history; `serve` hands readings, cached status and results files, the |
| 31 | exposure-watch result and agent chat feeds to bearer-token holders over HTTPS on port 9443. |
| 32 | `scripts/exposure-watch.sh` scans the house's own public IP. |
| 33 | |
| 34 | In scope: |
| 35 | |
| 36 | - Any `/v1/*` response without a valid bearer token, or a token comparison that leaks more than |
| 37 | the token length. |
| 38 | - Anything user-supplied (path, query string, headers) reaching the remote shell run over ssh. |
| 39 | AGENTS.md states that agent names are matched against a fixed allow-list and `?lines=` is parsed |
| 40 | to an integer and clamped. |
| 41 | - A write to the remote machine or an upload path; AGENTS.md says the service is read-only by |
| 42 | design. |
| 43 | - Resource exhaustion that bypasses the limits in `src/tls.rs` (16 KiB request head, 64 |
| 44 | connections, handshake and header deadline). |
| 45 | - TLS configuration in `src/tls.rs` (rustls, ring provider, TLS 1.2 and 1.3). |
| 46 | - `scripts/exposure-watch.sh` scanning anything other than the house's own public IP. |
| 47 | |
| 48 | Out of scope: |
| 49 | |
| 50 | - The remote-side readings script, the systemd units on the server, the token, TLS key and |
| 51 | certificate, and the exposure baseline: none of them are in this repository. |
| 52 | - rustls, ring, OpenSSH, nmap, upnpc and the host operating system. |
| 53 | |
| 54 | ## Supported versions |
| 55 | |
| 56 | Only the default branch `main`; there is no release (Cargo version `0.1.0`). Reports against older commits are welcome but fixes land on the default branch only. |
| 57 | |
| 58 | ## Status |
| 59 | |
| 60 | README (2026-10-18): running. CI (`.github/workflows/ci.yml`, added by the audit-readiness |
| 61 | change) runs `cargo test --locked`. No certification, no bug bounty. See AUDIT_SCOPE.md for what |
| 62 | to review and how to build and test it. |