Перейти к содержимому

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 ​

  1. A user signs up, confirms their email and signs in to app.
  2. They create a project — one website.
  3. They enter SFTP, FTP or FTPS access in a protected form; RayScan tests the connection.
  4. RayScan downloads the files and stores an immutable snapshot with a manifest.
  5. A scan job enters the queue; the worker starts a container without network access: archive check, extraction, ClamAV and the static rules.
  6. The report and findings are stored and survive a service restart.
  7. The user sees the status, coverage and findings in app in 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 make commands on a clean checkout.

Out of scope ​

Not in these two weeksWhy
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, pilotNot allowed until G02, G03, G06 and end-to-end acceptance are closed
BillingOutside the MVP

Starting point, 4 October ​

AreaState
AccessSign-in, sessions, personal team and projects exist as domain operations. Invitations and roles are in review (PR #10). No HTTP, no screens
ScannerExtraction, rules, JSON report and the analyze command are done. The ClamAV image is in review (PR #14). Not connected to the API
QueueNot 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 snapshotOnly the MCP prototype code exists. No Jira tasks
Snapshot and secret storageAdapters and local SeaweedFS done (T005, SECU-40); not yet used by connections or snapshots
appStarter 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.DueDecisionWhat it blocks
D15 OctHTTP 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 separatelyEvery screen, starting with sign-in and team screens
D26 OctSnapshot 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 G02Snapshot, reports
D36 OctConnection 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 returnedConnection form
D47 OctStand 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 onlySite download
D512 OctContainer runtime on a developer machine if gVisor from the G04 decision is not available thereIsolation tests, end-to-end run

Week 1, 5–11 October: access with screens and the site snapshot ​

Stream A — access (SECU-1) ​

TaskResult
SECU-14, PR #10Rebase onto main and merge on day one: the PR is large and ageing
New task: HTTP adapterSign-up, confirmation, sign-in, sign-out, projects and team reachable from app per D1
SECU-15Team keys with scopes, expiry and revocation
SECU-16Sign-in, team, project and key screens
SECU-17Negative tests for isolation between two teams

Stream B — isolated run (SECU-21) ​

TaskResult
SECU-30, PR #14Merge the analyzer image
SECU-31ClamAV step in the analyzer
SECU-32Signature updates on the worker host
SECU-33Container lifecycle: create, start, wait, remove
SECU-34Isolation, 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.

TaskResult
T005Private storage and secret adapters per D2 and D3
T003Known prototype gaps fixed: password kept on failure, hidden directory read errors, lost incomplete-download flag
T012Create, test, replace and revoke a connection; form in app
T013Checks for the root, DNS and real address, IPv4/IPv6, passive FTP
T014Limits on actual bytes, file count and time; manifest with skipped files
T015Immutable 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 analyze command 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 ​

TaskResult
SECU-27Job and attempt schema, migration
SECU-28Queue in api: claim, lease, heartbeat, retries, protection against stale completion
SECU-29Worker ↔ api channel and the consumer in scanner
T021Report validated by schema, size and paths; report in storage, findings in the database
T022Status, report and findings API; result screen in app
New task: start a scanA button in app creates a snapshot and queues the job
T016, T023Tests: corrupt upload, site changing during read, limits, SSRF, lost lease, storage and database failure
End-to-end runOne make command takes both training sites from sign-in to report
DocumentationCurrent 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 ​

RiskWhat we do
D1 is late — screens are blockedDecide on day one; API and scanner work continue independently
PR #10 conflicts with new API workMerge before SECU-15 and the HTTP adapter start
Parallel tasks change the same database schemaMigrations from streams A, C and the queue land one after another
gVisor is not available on a developer machineD5; the no-network profile and limits are tested either way
The connector behaves differently on real hostsTraining sites only; real hosts come after G06
The scope does not fit in two weeksCut order below

Cut order ​

  1. Remote MCP goes first.
  2. The team key screen; the keys stay in the API.
  3. 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.

RayScan · Документация проекта · Прототип → MVP