Repository navigation
Releases
Releases · pierrejochem/rostdav
Rostdav 0.11.0
Changed
- An enrolled RustMFA phone counts as a second factor, like an authenticator app (ADR 0014). Once a user has an active phone, WebDAV and OCS no longer accept their account password (app passwords still work) and the browser sign-in asks for a second step.
Fixed
- Recovery of a user whose only second factor is a phone:
reset-2fa(command line and administration page) now revokes the user's RustMFA phones too, and the administration page sees a phone as a second factor. Before, such a user who lost the phone could not sign in and nobody could help. - Adding or removing the only second factor from the web needs more than a session: enrolling a phone asks for a current authenticator code as well when codes are on, and revoking the phone that is the only second factor asks for the password.
- Reloading the number page does not start a second approval: the open approval of a sign-in is shown again (browser and Login Flow v2), so the phone gets one prompt.
Added
- Phone blocks on the lockouts page: the rate-limit blocks of the phone features (enrollment per address and per user, signed requests per phone, sign-in approvals per user) are listed on Administration › Security and can be lifted there.
- Push delivery through FCM (
[mfa.fcm]:project_id,service_account_file): when a sign-in approval waits, Rostdav wakes the phone with a data message that holds the challenge id only. Off unless both keys are set; a bad service-account file stops the server at start-up. A failed push is logged and never blocks the sign-in. - Phones without a push service (channel
none): a phone can register, or switch withPUT /devices/{id}/push-token, with the channelnoneand an empty token. The server never sends to it; the app finds requests by polling.fcmandunifiedpushstill need a token. Migration 0013 accepts the new value (amended in place, the branch is unreleased). - Phones in the web interface: Devices & security lists the user's RustMFA phones (name, status, last seen) with revoke, and the last security events. "Add a phone" asks for the account password again and shows a single-use enrollment QR code (
rustmfa://enroll?server=…&token=…). Five codes per user in 15 minutes. Revoking a phone ends its open sign-in approvals. - Sign in with the RustMFA phone in the browser: the second step offers "Send to my phone" (next to the code form when authenticator codes are on). The page shows a number, the user picks it on the phone, and the page signs in once the phone approved. A denied or expired request goes back to the second step. The Login Flow v2 page (connecting a Nextcloud app) has the same step.
- A sign-in approval belongs to one sign-in: a challenge started for a sign-in can only be polled and turned into a session by the browser that passed the password step, and only once; a phone revoked after it approved releases nothing. Not reachable from the sign-in page yet.
- Settings for push sign-in approval (
[mfa]section: challenge lifetime, enrollment lifetime, audience, attestation policy), the first step of ADR 0014. They have no effect yet. - Database tables for push sign-in approval (migration 0013: phones, enrollment tokens, challenges, request nonces). Nothing uses them yet.
- Key attestation check for push sign-in approval phones: verifies that a phone's key lives in secure hardware (certificate chain to a pinned Google root, hardware security level, challenge, key match). Nothing calls it yet.
- Enrollment service for the RustMFA app: a signed-in user creates a single-use token (QR code), the phone registers its two public keys with the token and an attestation. Wrong tokens and failed attestations are rate limited per address. Not reachable over HTTP yet.
- Request authentication for the RustMFA app: checks the signed
Authorization: RustMFA-Sigheader of a phone (timestamp within 60 seconds, signature by the request key, nonce used once in 5 minutes, phone and account still active). Five failures for one phone in 15 minutes block it for 15 minutes. Not reachable over HTTP yet. - Sign-in challenges for the RustMFA app: the server can start an approval for one phone (a two-digit number, two decoys, 90 seconds by default), list pending ones, and accept an approve or deny signed with the phone's biometric key. A wrong number denies the challenge. Only one answer can win. Five challenges per user in 15 minutes. Push delivery is a stub until the sign-in page work; not reachable over HTTP yet.
- Phone management for the RustMFA app: list, revoke (this also ends the phone's open sign-in approvals), change the push token, rotate both keys (the new approval key needs a fresh attestation), and a view of the user's own security events. A revoked phone can no longer approve, even an answer that was already in flight. Not reachable over HTTP yet.
- HTTP API for the RustMFA app (
/api/v1/devices/…,/api/v1/mfa/challenges/…,/api/v1/audit): phones register and sign their requests; they list and revoke phones, change their push token, rotate keys, fetch and answer sign-in approvals, and read their own security events. Requests are signed (no cookie, no CSRF token), bodies are limited to 64 KiB, and errors follow the contract. Creating an enrollment token and the sign-in page integration follow separately.
Rostdav 0.10.1
Security
- Updated
zstdto 0.13.4 andzstd-safeto 7.4.0 (RUSTSEC-2026-0391, -0398, -0403).
Changed
- Dependency updates:
ureq3.5.2,encoding_rs0.8.44,office_oxide0.1.17,zip9.5.1. - The Rust toolchain is pinned to 1.99.1 (CI, release workflow, container build): rustc 1.100.0 cannot compile
turso_core0.8.3. Remove the pin when Turso fixes this. - CI tolerates the known litmus
put_no_parentdeviation (we answer 404 like Nextcloud, RFC 4918 says 409).
Rostdav 0.10.0
Changed
- Web interface, mobile first: on phones the navigation is a tab bar at the bottom (Files, Recent, Shares, More) instead of a strip that scrolls sideways at the top; the new page "More" holds Search, Trash bin, Devices & security, Settings, About, Administration and Sign out. Upload and New folder are round buttons above the tab bar, and a selected file opens as a sheet from the bottom. File lists drop the size column on phones, and long values on the About page wrap instead of being cut off. Wide screens are unchanged.
- Font: the web interface now uses Inter (self-hosted, SIL OFL 1.1) instead of Space Grotesk. The documentation site and the brand files keep Space Grotesk.
- Upload progress on phones shows at the top of the screen. The site manual has a section on using Rostdav on a phone; the site screenshots are retaken, and
design/mockups/web-ui/mobile/shows the phone layout (made byscripts/screenshots.mjs).
Rostdav 0.9.0
Added
- Search for the Nextcloud apps: WebDAV
SEARCHon/remote.php/dav/(d:basicsearch: name, type, size, date, favorite, folder, sorting, limit) and the unified search providerfiles(/ocs/v2.php/search/providers/files/search). Both only return what the user may read. Checked against 90 recordings of Nextcloud 35.0.2; the Android app's search (unified search) was seen working on the emulator, the iOS app was not tried. Differences are listed indocs/compatibility.md.
Rostdav 0.8.0
Added
- Search in PDF and Office files: the text of PDF, Word (
docx,doc), Excel (xlsx,xls), PowerPoint (pptx,ppt) and OpenDocument (odt,ods,odp) files is found like the text of other files. The readers run in a separate short-lived process with a memory limit, a CPU limit and a time-out, so a damaged or hostile file cannot take the server down. On by default; Administration, Server, "Search PDF and Office files" switches it off (the stored texts are then removed). Files read before are read again once. ADR 0013.
Changed
- The minimum Rust version is 1.88 (the PDF reader needs it).
Rostdav 0.7.0
Added
- Search (
/search, "Search" in the navigation): finds files and folders by name in everything you can reach, your own and what others shared with you, in all folders at once. You can limit it to a folder and to files or folders; results are paged and the best match comes first. When a folder filter finds nothing, it links to this search. - Search in the text of files:
/searchalso finds files by the words in them (text files: txt, md, csv, json, xml, html, source code, …), shows where, with the words marked, and lists name hits first. Whole words only. A background indexer reads the files a little at a time into a search index of its own (db/search.sqlite, rebuildable, not in backups). On by default; Administration, Server can switch it off (the stored texts are then removed) and set the size limits. The index holds the text of files in plain form in the data directory, so it is as sensitive as the files.rostdav admin search status|rebuild. ADR 0012. PDF and Office files and the search of the Nextcloud apps follow.
Fixed
rostdav admin …commands that need no password (user list,search status, …) waited for a line of input when a server was running (since 0.4.1): in a terminal you had to press Enter, with an open pipe they never finished. Onlyuser addanduser set-passwordread standard input now.- The admin socket was not created when the path of the data directory is long (a Unix socket address holds at most 107 bytes); the socket is now reached through the open directory, so any path works.
Changed
- Names are compared the same way everywhere (the folder filter, the user list in the administration, the sharee search): case and accents do not matter, and an accented letter written as one character or as letter plus accent is the same. Before,
Cafétyped with a combining accent did not findCafé, and non-ASCII capitals were not folded in the sharee search. Sharee search with an empty text still lists everybody.
Rostdav 0.5.2
Fixed
- Menus of the web interface (account, New folder, Upload, Add user) now close like menus should: when you click elsewhere, press Esc (the focus goes back to the menu's button), move on with Tab, or open another menu. Before, they stayed open until their own button was clicked again, and several could be open at once.
- Web interface on a phone: the navigation was a panel as tall as the screen that pushed the content out of sight. It is now one row at the top that scrolls sideways and shows the current page; the account icon sits in its corner, and there is no empty gap under it. (The storage meter is only on the Settings page on a phone.)
Rostdav 0.5.1
Fixed
- File names with the characters U+007F and U+0080 to U+009F are accepted. Nextcloud forbids only the characters 0 to 31 (
FilenameValidator.php), and real data directories contain such names (an emoji decoded as Latin-1); Rostdav refused them, so those files could not be imported or synced. Found with a real Nextcloud data directory.
Rostdav 0.5.0
Added
rostdav admin import-nextcloud <data-dir>: imports a Nextcloud data directory (ADR 0011). Every user's files with names and modification times, and the versions Nextcloud kept (files_versions), into the Rostdav user of the same name (--map NC=USERto rename,--onlyto pick). The directory is only read, so Nextcloud can keep running; the command can be repeated,--updatereplaces files that changed (the old content becomes a version),--dry-runwrites nothing. Not imported, and listed in the output: the trash, group folders, external storage, shares, favorites and files encrypted by Nextcloud.
Rostdav 0.4.1
Fixed
rostdav admin …did not work while the server ran (since 0.3.0, the Turso database locks its file for one process): adding the first user to a container,admin backup("while the server runs"),fsckand the other commands failed with "File is locked by another process". The running server now listens on a Unix socket in the data directory (admin.sock, mode 0600, only root and the server's own user may connect) and the command line sends its command there (ADR 0010). Without a running server the commands open the database directly, as before.