Plan: 5–18 October 2026
Goal
By 18 October the core path works end to end on the local stand: a user signs in, connects a website, RayScan takes a copy, checks it in an isolated container and shows the findings. The website on the host is not changed.
This is a working plan, not a release announcement. Version 0.1.0 also includes fixing the copy and restoring it; neither is part of these two weeks. The starting state is described in Current state, the full scope of the version in Version 0.1.0.
What must work on 18 October
- A user signs up, confirms their email and signs in to
app. - They create a project — one website.
- They enter SFTP, FTP or FTPS access in a protected form; RayScan tests the connection.
- RayScan downloads the files and stores an immutable snapshot with a manifest.
- A scan job enters the queue; the worker starts a container without network access: archive check, extraction, ClamAV and the static rules.
- The report and findings are stored and survive a service restart.
- The user sees the status, coverage and findings in
appin plain language.
Acceptance
- The scenario passes on the WordPress and OpenCart training sites: one infected, one clean.
- A user from another team cannot see the project, snapshot or report.
- A hostile archive stops the scan with a clear status and does not crash the worker.
- A lost worker does not leave the job hanging: the next attempt picks it up.
- The connection password does not appear in logs, the report or API responses.
- The whole path starts with
makecommands on a clean checkout.
Out of scope
| Not in these two weeks | Why |
|---|---|
| Fixing the copy and rescanning (SECU-6) | Needs the G05 decision and expert labelling |
| History and restore (SECU-7) | Useful only after fixes exist |
| Remote MCP and the customer skill (SECU-5) | Candidate for the end of week 2, read-only status and findings |
| RayScan chat with Agentfy (0.2.0) | Next version |
| Production, real customer websites, pilot | Not allowed until G02, G03, G06 and end-to-end acceptance are closed |
| Billing | Outside the MVP |
Starting point, 4 October
| Area | State |
|---|---|
| Access | Sign-in, sessions, personal team and projects exist as domain operations. Invitations and roles are in review (PR #10). No HTTP, no screens |
| Scanner | Extraction, rules, JSON report and the analyze command are done. The ClamAV image is in review (PR #14). Not connected to the API |
| Queue | Not started on 4 October. Schema done in SECU-27 (job, job_attempt tables, migration, invariant tests); enqueue, claim, lease, heartbeat, retries and fencing done in the API in SECU-28, not exposed over HTTP or MCP. The worker channel and consumer (SECU-29) were open then (closed 13 October). Since SECU-49 the app's «Проверить сайт» button (scan.check.start, table scan_check) is the only product producer of scan jobs (specs/005-scan-launch/contracts/scan-check.md). It works only on the local stand with WORKER_TOKEN and a running worker: production runs the API after the SECU-65 deploy but has no worker and no WORKER_TOKEN, so there the check routes answer 404 and the app hides «Проверка сайта» |
| Connection and snapshot | Only the MCP prototype code exists. No Jira tasks |
| Snapshot and secret storage | Adapters and local SeaweedFS done (T005, SECU-40); not yet used by connections or snapshots |
app | Starter page with no link to the API |
Decisions before work starts
Some tasks cannot start without these. The product owner makes each decision and records it in specs/001-mvp-site-security/research.md.
| No. | Due | Decision | What it blocks |
|---|---|---|---|
| D1 | 5 Oct | HTTP transport between app and api: adapter, session cookie, error format. Decided: the app calls the API at its own address under /v1 with a secure session cookie and one error format; remote MCP for agents is decided separately | Every screen, starting with sign-in and team screens |
| D2 | 6 Oct | Snapshot storage for the stand: an S3-compatible service in Compose and a port in the registry. Provider, region and retention (G02) stay open until the pilot. Decided 8 Oct: SeaweedFS locally, Hetzner Object Storage in production; code uses the plain S3 API only; region and retention stay in G02 | Snapshot, reports |
| D3 | 6 Oct | Connection secret storage: encryption and where the key lives on the stand. Decided 8 Oct: AES-256-GCM in PostgreSQL with a key id; the key lives in API settings, never in the database, and the secret is never returned | Connection form |
| D4 | 7 Oct | Stand rules for G06: training sites and our own test sites only; destination address checks are required now. Decided 8 Oct: explicit host list, one DNS lookup with a pinned IP, internal addresses blocked, PASV address ignored; plain FTP allowed for fixtures and training sites only | Site download |
| D5 | 12 Oct | Container runtime on a developer machine if gVisor from the G04 decision is not available there | Isolation tests, end-to-end run |
Week 1, 5–11 October: access with screens and the site snapshot
Stream A — access (SECU-1)
| Task | Result |
|---|---|
| SECU-14, PR #10 | Rebase onto main and merge on day one: the PR is large and ageing |
| New task: HTTP adapter | Sign-up, confirmation, sign-in, sign-out, projects and team reachable from app per D1 |
| SECU-15 | Team keys with scopes, expiry and revocation |
| SECU-16 | Sign-in, team, project and key screens |
| SECU-17 | Negative tests for isolation between two teams |
Stream B — isolated run (SECU-21)
| Task | Result |
|---|---|
| SECU-30, PR #14 | Merge the analyzer image |
| SECU-31 | ClamAV step in the analyzer |
| SECU-32 | Signature updates on the worker host |
| SECU-33 | Container lifecycle: create, start, wait, remove |
| SECU-34 | Isolation, limit and cleanup tests |
Stream C — connection and snapshot (SECU-2)
There are no Jira tasks yet; create them on 5 October from T003, T005 and T012–T016.
| Task | Result |
|---|---|
| T005 | Private storage and secret adapters per D2 and D3 |
| T003 | Known prototype gaps fixed: password kept on failure, hidden directory read errors, lost incomplete-download flag |
| T012 | Create, test, replace and revoke a connection; form in app |
| T013 | Checks for the root, DNS and real address, IPv4/IPv6, passive FTP |
| T014 | Limits on actual bytes, file count and time; manifest with skipped files |
| T015 | Immutable snapshot with an integrity check after upload |
Checkpoint, Friday 9 October
- A user signs in to
app, creates a project and saves a connection. - A training site is downloaded; the snapshot and manifest are in storage.
- The
analyzecommand passes in the ClamAV container on a prepared snapshot.
If the checkpoint is missed, week 2 starts by cutting scope, not by moving the date.
Week 2, 12–18 October: queue, result and the end-to-end path
| Task | Result |
|---|---|
| SECU-27 | Job and attempt schema, migration |
| SECU-28 | Queue in api: claim, lease, heartbeat, retries, protection against stale completion |
| SECU-29 | Worker ↔ api channel and the consumer in scanner |
| T021 | Report validated by schema, size and paths; report in storage, findings in the database |
| T022 | Status, report and findings API; result screen in app |
| New task: start a scan | A button in app creates a snapshot and queues the job |
| T016, T023 | Tests: corrupt upload, site changing during read, limits, SSRF, lost lease, storage and database failure |
| End-to-end run | One make command takes both training sites from sign-in to report |
| Documentation | Current state, README, AGENTS.md and tasks.md updated: they called the scanner a scaffold and the API an MCP prototype only (addressed by SECU-70) |
Acceptance, Friday 16 October
We go through the Acceptance list on a clean checkout. 17–18 October are a reserve for fixes; no new tasks start on those days.
Candidate if time remains
Read-only remote MCP: scan status and findings with a team key. This needs the rest of G03 closed — one MCP client chosen.
Jira housekeeping on 5 October
- Close SECU-9: the foundation is merged.
- Close SECU-19: all subtasks SECU-22…26 are done.
- Move SECU-21 to in progress: SECU-30 is in review, SECU-31…34 are selected.
- Create tasks under SECU-2 (stream C), the HTTP adapter under SECU-1, the result and scan start under SECU-4.
Jira stays the source of truth for tasks. This page is updated at the checkpoints on 9 and 16 October.
Risks
| Risk | What we do |
|---|---|
| D1 is late — screens are blocked | Decide on day one; API and scanner work continue independently |
| PR #10 conflicts with new API work | Merge before SECU-15 and the HTTP adapter start |
| Parallel tasks change the same database schema | Migrations from streams A, C and the queue land one after another |
| gVisor is not available on a developer machine | D5; the no-network profile and limits are tested either way |
| The connector behaves differently on real hosts | Training sites only; real hosts come after G06 |
| The scope does not fit in two weeks | Cut order below |
Cut order
- Remote MCP goes first.
- The team key screen; the keys stay in the API.
- Connection replacement and FTPS — SFTP and FTP remain on the stand.
Never cut: team isolation, the container without network access, destination address checks and the hostile archive tests.