Architecture
MVP architecture
RayScan receives files from an authorised website and stores the original snapshot in a private quarantine area. A Worker validates and unpacks the archive, then runs the scanner in an isolated Docker container. The agent reads the report through MCP and works only on a temporary copy. The result is a report, a diff and a path to restore the copy without changing the live website.
End-to-end flow
text
Customer → website → FTP / SFTP / FTPS connection
↓
files and manifest
↓
quarantine snapshot in S3
↓
archive check → safe extraction
↓
isolated scanner container
↓
reports in S3 + findings in PostgreSQL
↓
agent ↔ MCP ↔ working copy
↓
plan → copy change → repeat scan
↓
report + diff + restore optionVersions
- Version 0.1.0 — MVP: API/MCP, PostgreSQL, Object Storage and an isolated Worker.
- Version 0.2.0 — product evolution: RayScan chat with Agentfy/Bridle and scaling candidates.
- DevOps and Hetzner: infrastructure, Terraform, isolation and backups.
Data model
The core entities are user, team, team_member, team_api_key, project, connection, snapshot, scan, finding and remediation.
Detailed stages
- Website connection
- File collection and manifest
- Snapshot and quarantine
- Archive validation
- Scanning job
- Reports and findings
- Agent, MCP and working copy
- Plan, change and re-scan
- Report, diff and restore
These pages describe the target design. The current repository only covers part of the read-only diagnostic path.