Skip to content
EnrickoPublic

About

RAST — Resource Administration & Storage Toolkit: self-hosted server administration with a desktop-like web UI (Rust + Axum)

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

RAST

Resource Administration & Storage Toolkit

Turn any Linux server into a fast, self-hosted web desktop — shipped as a single Rust binary.

Manage files, monitor live metrics, run Docker Compose stacks, configure NAS-style permissions, open browser terminals, and install apps — all from one lightweight web UI (~18 MiB idle RAM) with no Node.js or external database required on the server.

CI Release Platforms License: MIT

Downloads in the last 7 days Tracked all-time downloads Repository views in the last 14 days

Live Deployment · Quick Start · Screenshots · Features · Changelog · Report an Issue


RAST Desktop

Status: Pre-1.0 active development (latest release linked above). APIs and data formats may still evolve before v1.0 — check CHANGELOG.md and OPERATIONS.md before upgrading production hosts.


Why RAST?

  • Single binary, tiny footprint — Written in Rust + Axum with embedded frontend assets and SQLite. Runs at ~18.3 MiB idle RAM total (web server + Docker worker).
  • Real desktop workflow in the browser — Multi-window workspace, taskbar, pinned apps, mobile layout, light/dark themes, custom wallpapers, and live SSE synchronization across tabs and sessions.
  • NAS-grade access control — Multi-group membership, shared-folder and app rules, per-user overrides with an Effective Access inspector, live revocation, and full audit logs.
  • Extensible via App Center — Install verified language runtimes (Python, Go, Node.js, Rust, Java, .NET, Bun, Zig, and more) plus optional apps like AI Agent and sandboxed web apps (e.g., Craft apps) with direct Open with support from File Station.
  • Security-first defaults — No default password, Argon2id hashing, isolated Docker worker process, and Sigstore keyless build-provenance attestations on every release.

Screenshots

Login File Station
Login File Station
Dark Theme App Center
Dark Theme App Center
Personalize Custom Wallpaper Crop
Personalize Custom Wallpaper Crop
Appearance Settings Resource Monitor
Appearance Resource Monitor
Users & Groups Effective Access
Users & Groups Effective Access

Mobile Layout
RAST Mobile Layout


Built-in Apps & Capabilities

App / Feature What it does
File Station Browse, upload, download, rename, copy, move, preview, and restore files with per-user homes, shared folders, quotas, and Open with integration for compatible apps.
Applications Unified launcher for every app an account can access; drag and pin apps to the desktop or taskbar per account.
Docker (optional) Deploy and manage Docker Compose stacks through an isolated administrative worker. Can be uninstalled in App Center.
Resource Monitor Real-time CPU, memory, swap, disk, network, and container metrics.
App Center Manage optional RAST apps, server components, verified runtimes from a signed catalog (Python, PHP, Go, Node.js, Rust, Java/Temurin, Kotlin, C/C++, Zig, .NET, Bun, Deno, Flutter/Dart, and more) with version switching and rollback, plus packages from GitHub Releases (handoff).
Terminal Multi-tab browser shells that persist across reloads — admin root shells (off by default until sudo rast terminal enable) and isolated per-user sandbox containers with no network (details).
Users & Groups NAS-style groups with shared-folder and application rules, per-user direct overrides, Effective Access explanation, and live reauthorization. Group rules never elevate admin privileges.
Control Panel & Appearance Manage profile, passwords, users, roles, quotas, storage paths, component health, wallpapers, light/dark/system mode, and 10 accent presets saved per account.
Backup Center (optional) Consistent SQLite + configuration backups with schedules, retention policies, and restore guidance. Can be uninstalled in App Center.
Activity Logs Auditable trail of every action — who, what, when, and result.
Live Updates Single authenticated SSE stream per tab keeps files, apps, containers, backups, logs, and settings synchronized in real time — including changes made outside RAST.

Quick Start

Requirements: Linux (x86_64 or aarch64) with systemd. See docs/COMPATIBILITY.md for glibc versions. Docker is optional.

# 1. Install the latest prebuilt, checksum-verified binary
curl -fsSL https://github.com/Enricko/rast/releases/latest/download/install.sh | sudo sh

# 2. Create the first administrator (CLI only — there is no default password)
sudo -u rast rast user create-admin admin --password-stdin

# 3. Put 127.0.0.1:8720 behind your HTTPS reverse proxy and sign in
Inspect before running, dry-run, or verify Sigstore provenance
# Download and inspect the installer first
curl -fsSLO https://github.com/Enricko/rast/releases/latest/download/install.sh
less install.sh
sudo sh install.sh

# Preview what the installer will do without changing the system
curl -fsSL https://github.com/Enricko/rast/releases/latest/download/install.sh | sh -s -- --dry-run

# Enforce Sigstore build-provenance verification during install (requires gh CLI 2.49+)
curl -fsSL https://github.com/Enricko/rast/releases/latest/download/install.sh \
  | sudo sh -s -- --verify-attestation

The installer creates the rast service account, /etc/rast/, /var/lib/rast/, and /srv/rast/, installs rast.service, and binds to 127.0.0.1:8720. See docs/INSTALL.md for reverse proxy setup, flags, and release pinning.


Lightweight & Hardened by Design

Reference Footprint

Measured on the reference host (Ubuntu x86_64, 12 cores / 30 GiB RAM, v0.3.0 audit baseline, 60s idle window) — publicly reachable at https://desktop.lufria.tech behind Cloudflare Tunnel + nginx:

Process CPU (idle) RSS
rast.service (web + jobs + monitor + realtime + access policy + SQLite) 0.22% 10.7 MiB
rast-worker.service (isolated Docker operations) 0.03% 7.6 MiB
Total RAST 0.25% 18.3 MiB

Security Model

  • Strong authentication — Argon2id password hashing (19 MiB, 2 iterations, 1 lane), login rate limiting, account lockout, and no public registration.
  • Session & CSRF protection — Server-side sessions stored as SHA-256 hashes; HttpOnly, Secure, SameSite=Lax cookies; CSRF tokens required on every mutating request.
  • Filesystem isolation — Server-enforced per-user home isolation with path-traversal and symlink-escape protection on every endpoint.
  • Privilege separation — Docker operations run through a dedicated worker process (rast-worker.service); the web server never talks directly to the Docker socket.
  • Supply-chain provenance — Every release publishes SHA256SUMS and keyless Sigstore build-provenance attestations.

See SECURITY.md for reporting vulnerabilities and docs/audit-hardening-handoff.md for the v0.3.0 security audit and verification suite.


Project Activity

The activity badges at the top of this README are updated daily by a GitHub Actions workflow using only GitHub's REST API — no third-party analytics or visitor tracking pixels:

  • Downloads (7d): Difference between UTC snapshots 7 days apart (shows pending until 7 days of snapshots are collected).
  • Downloads (all time): Cumulative GitHub download counts for the two core binaries (rast-linux-x86_64, rast-linux-aarch64) across published core releases. Excludes installers, checksums, optional app packages, and source archives.
  • Repo views (14d): GitHub Traffic's rolling 14-day repository view count (not unique visitors or RAST instance telemetry).

See docs/REPO-STATS.md for setup and exact definitions.


Configuration & Build from Source

Default server paths (configured via /etc/rast/rast.toml or RAST_* environment variables — see docs/CONFIGURATION.md and .env.example):

Item Default Path
Configuration /etc/rast/rast.toml
Database & backups /var/lib/rast/
User files & shared folders /srv/rast/
Binary /usr/local/bin/rast
Systemd units rast.service, rast-worker.service
Build from source (Rust + Node.js 22+)

Node.js and npm are required for the frontend build only — the installed server never needs Node.js.

git clone https://github.com/Enricko/rast.git
cd rast
npm --prefix frontend ci
npm --prefix frontend run build
cargo build --release --locked --bin rast
./target/release/rast version

Documentation

Topic Guides
Deployment Installation · Compatibility · Configuration · Operations (backup, update, rollback)
Administration Users & Groups · Terminal · App Center · Wallpapers & Licenses
Architecture & API Architecture · API Reference · Realtime Sync Contract · Repository Stats
Security & Releases Security Policy · Audit & Hardening Report · Changelog

License

MIT — see LICENSE. Dependency licenses are listed in docs/THIRD-PARTY-LICENSES.md.

About

RAST — Resource Administration & Storage Toolkit: self-hosted server administration with a desktop-like web UI (Rust + Axum)

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages