Skip to content

RAST 0.12.0

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 21:24

RAST AI now writes in your own WordCraft window while you watch and edit
alongside it; WordCraft and PdfCraft save by themselves; WordCraft gets
Word's and Google Docs' fonts; administrators open the server's own
folders in File Station; and the 25 findings of RAST's first security
audit are fixed. Database schema v31 → v33.

Highlights

  • RAST AI in your own WordCraft window, live, with you editing in the
    same document, and the work goes on when your browser closes.
  • Autosave in WordCraft and PdfCraft, switched with WordCraft's own
    AutoSave switch.
  • Word's and Google Docs' fonts in WordCraft: documents in Times New
    Roman, Arial or Calibri keep their lines and pages.
  • Server folders (root) in File Station for administrators and the
    accounts they allow.
  • Web page apps open and save your RAST files and start in seconds
    after a reload.
  • Security: the 25 findings of RAST's first audit are fixed (see
    below).

Added

  • RAST AI works in your own app windows: in WordCraft it writes in the
    WordCraft window on your desktop while you watch, and you can edit in the
    same window (its next step waits until you pause, and it hears that you
    worked there). An app package hands each step to the app's window on one
    of your open desktop pages (host API 10). When your page loads again or
    your browser closes during a step, the document goes on exactly as it
    was, from WordCraft's own copy RAST AI keeps after each step, in your
    window or in the app on the server, and the step runs again there; it
    comes back into your window when you open RAST again. "Save As
    /Docs/Report.docx" saves into /Docs (host API 11), and a batch step can
    wait on an earlier step's answer (when). Two documents in one WordCraft
    window that RAST AI saves under the same name each get a file of their
    own.
  • Live windows: an app package can put a window on your desktop that
    shows work it does in an app's window on the server as it happens (RAST
    AI in WordCraft: the picture, its pointer, clicks and typing), with
    Open chat, Stop and Open for the file. It stays on your
    desktop, so it shows again when you open your browser later (host API
    9). You edit in it too: click into the picture and your clicks, typing,
    scrolling and pastes go to the app on the server (a Mac's Command key
    works as Ctrl there), while the app package waits for you to pause.
  • Autosave in WordCraft and PdfCraft: a document with a file (opened
    from your files, or saved once) saves itself about 2 seconds after you
    stop typing, and every 30 seconds while you keep going, your own edits
    and RAST AI's alike. The window's unsaved mark (•) goes once it is saved.
    A new document's first Save still asks where it goes. AutoSave
    turns it off and on: in WordCraft, with WordCraft's own AutoSave switch
    (in its title bar; a browser locks the app's switch, so RAST's takes its
    place, in WordCraft's language, theme and size, and goes with its title
    bar on the File screen and in Focus); in PdfCraft, with a switch in the
    window's title bar. The window keeps its choice (also after a reload),
    and a new window of the app starts with your last choice in that
    browser.
  • Word's and Google Docs' fonts in WordCraft: RAST keeps a set of fonts
    for the apps in its windows and WordCraft takes them as the fonts
    installed on this computer, in every account and browser. Documents set
    in Times New Roman, Arial, Courier New, Calibri and Cambria draw with
    fonts that measure the same (Tinos, Arimo, Cousine, Carlito, Caladea),
    line for line and page for page, and the font box picks from Google
    Docs' fonts (Roboto, Montserrat, Merriweather, Lora, Playfair Display,
    EB Garamond, Caveat, Lobster, Pacifico …) and a few more (Open Sans,
    Lato, Poppins, PT Serif …): 87 files, 26.7 MB, all under the SIL Open
    Font License. RAST fetches the set from Google Fonts once, checked file
    by file (size and SHA-256), into <data_dir>/fonts; an administrator
    may add more font files there (for example Aptos, which Microsoft offers
    for download) and every account gets them too. Each browser downloads
    the fonts once and keeps them; nothing goes into the account's storage.
    WordCraft's Get the Missing Fonts question closes by itself once
    RAST's fonts cover the document.
  • Server folders in File Station: a Server location (with a root
    badge) shows the server's own folders, from /, read and changed as root
    through the Terminal's root helper. Browse, open and preview, download
    (with ranges), upload (also large, chunked uploads), new folder, rename,
    copy and move within the server and to and from Home and shared folders
    (as jobs), and delete for good (Server folders skip the recycle bin, and
    the dialog says so). New items are owned like the folder they land in; a
    replaced file keeps its owner and mode; a link is written through to its
    target; copies into Home belong to RAST and leave links behind. The
    details panel shows owner, group, mode and link; an open server folder
    looks again every 5 seconds, so changes made in a shell show up too.
    Administrators always have it; anyone else only when an administrator
    allows Server folders (root) for the account or one of its groups in
    Control Panel (a full root grant). The root folder, the top folders
    (/etc, /usr …), RAST's data, storage and configuration folders and
    the folders holding them stay put, and /proc, /sys and /dev are
    read only. Every change is in Activity Logs, marked "as root". Needs the
    root helper restarted once after updating:
    sudo systemctl restart rast-terminal (open root shells end).
  • Your RAST files in web page apps (the Craft apps from App Center, and
    any web page app): the app's own Open chooses from File Station (the
    files the app opens, or every file) in place of the browser's file
    dialog, and what the app would download is saved in a folder you pick.
    Saving a document opened this way writes that file.
  • Web page apps start in seconds after a reload of the desktop: the
    app's own files (PdfCraft's 117 MB, WordCraft's 71 MB) stay in this
    browser after its first start, and the window shows the app's icon and
    name until the app runs, with the download's progress the first time. A
    document picked with the app's own Open opens again after the reload.
  • Reload offer after an update: an open desktop page offers Reload
    to use the new version (it notices when live updates reconnect).
  • Apps that open windows as you (Control Panel → Profile, host API 8):
    which app (RAST AI) may open which app's windows on the server as you
    (File Station, Mail, Resource Monitor, Activity Logs), each allowed with
    your password and withdrawn with one click
    (/api/auth/window-consents).

Changed

  • AI Agent is now called RAST AI everywhere RAST shows it (Control Panel
    app list, Ask AI, groups, docs). Its package id ai-agent, app id agent
    and /api/ai/* stay the same, so installs, data and updates carry on.
  • Opening a file again in a web page window that already has it open reads
    it again (it may have changed since), unless the window has unsaved
    changes of its own.
  • Turning on 2-factor authentication asks for your password
    (POST /api/auth/2fa/confirm takes password), and making new recovery
    codes asks for a current 6-digit code or an unused recovery code
    (POST /api/auth/2fa/recovery-codes takes code); both answer 403
    without them.
  • Account lockout counts wrong passwords per name and address, so a
    stranger's guesses lock out only the stranger (migration
    0032_login_lockouts).
  • An app's window on the server (host API 8) opens as one app only (File
    Station, Mail, Resource Monitor or Activity Logs), with your consent,
    from this server only, for at most 12 hours (migration
    0033_window_sessions).
  • Sandbox Studio is for administrators only, whatever an access rule says;
    a Studio app stops when its owner stops being an administrator.

Fixed

  • PdfCraft and WordCraft windows open their document again after a reload
    on a busy computer: a window waits for an app that opens files to start
    (it gave up after 4 seconds and showed the app's start screen).
  • App Center shows a catalog published within minutes after RAST started
    (the catalog watch took it as the one already seen until the next full
    check, hours later).
  • RAST AI gets its answers from a web page app that reads requests only
    while it draws (PdfCraft 0.23): the window wakes the app while a request
    waits.

Security

From RAST's first security audit (run 1); each fix has its regression test.
Details: security-audit-remediation.md.

  • Mail: drafts stay with their author and keep only inert formatting;
    attachments go out as application/octet-stream; the SMTP listener takes
    at most 4 messages at once with a 10-minute deadline, keeps a disk
    reserve, reads at most 50 recipients per header and defers mail whose
    sender checks run past 30 seconds; fetched mail is routed by the
    provider's envelope header only; the newest Authentication-Results
    header decides; a conversation shows only the messages of addresses you
    hold, and only RAST's own requests mark it read.
  • Sign-in and sessions: current-password checks of a signed-in session
    count against the sign-in limits; a successful sign-in keeps the
    address's earlier failures (rate limit and Auto Block); the live event
    stream ends as soon as its session is revoked.
  • App windows and the host API: window sessions are bound to the app
    grant, the server and one app, and end after 12 hours; host API file
    reads go through one no-follow descriptor; only RAST's own windows serve
    a web page app its files.
  • Packages and Studio: package check output is read through RAST's own
    descriptors; imported package commands stay off root's PATH; Studio
    apps serve files only from inside their project and leave RAST's cookies
    alone.
  • Shared folders: a new shared folder or group workspace gets a folder
    of its own, never one a live share already uses.

Upgrade notes

  • Database schema v31 → v33 (0032_login_lockouts, 0033_window_sessions).
    Migrations run forward only: roll back by stopping RAST, restoring the
    backup taken before the update, then installing 0.11.0.
  • Server folders need the root helper restarted once after the update:
    sudo systemctl restart rast-terminal (open root shells end).
  • On its first start RAST downloads its 87 fonts (26.7 MB) from
    raw.githubusercontent.com in the background, checked file by file.
  • RAST AI 1.20.0 (App Center) works in your own WordCraft window with
    RAST 0.12.0 (host API 10 and 11); with an older RAST it works in the app
    on the server, as before.

Installation

curl -fsSL https://github.com/Enricko/rast/releases/download/v0.12.0/install.sh | sudo sh

Pin this exact release:

curl -fsSL https://github.com/Enricko/rast/releases/download/v0.12.0/install.sh | sudo sh -s -- --version 0.12.0

Upgrading an existing installation preserves /etc/rast, /var/lib/rast and /srv/rast.

Release assets

Asset Description
rast-linux-x86_64 Static frontend embedded; x86_64 Linux (glibc >= 2.35)
rast-linux-aarch64 Static frontend embedded; aarch64 Linux (glibc >= 2.39)
SHA256SUMS SHA-256 checksums for every asset
install.sh Installer (POSIX sh, pinned to this release)
uninstall.sh Uninstaller
rast.toml.example Fully commented configuration reference

Verification

sha256sum -c SHA256SUMS
sh install.sh --help

Runtime verification

Both binaries were smoke-tested on their native build runners
(GitHub-hosted x86_64 and arm64): the server started with a temporary
config, answered /healthz, accepted CLI administrator creation and a
JSON API login. The installer itself is exercised on Ubuntu 24.04 in a
disposable systemd container.

Provenance

Both binaries and SHA256SUMS carry GitHub artifact attestations
(Sigstore keyless build provenance). Verify them after downloading:

gh attestation verify rast-linux-x86_64 --repo Enricko/rast
gh attestation verify rast-linux-aarch64 --repo Enricko/rast
gh attestation verify SHA256SUMS --repo Enricko/rast

Provenance proves the files were built by this repository's release
workflow for the tagged commit; it is not a reproduction or code-review
guarantee. The installer can enforce it with --verify-attestation.