Repository navigation
filex v0.64.0
Self-hosted file manager - Go single binary + multi-framework frontend.
Download a binary below, or pull a Docker image:
docker pull ghcr.io/brf-tech/filex:slim-v0.64.0
docker pull ghcr.io/brf-tech/filex:full-v0.64.0What changed
Security
- A folder's grants go with it when filex renames, moves, deletes or purges it, and a new folder under the old name gets none of them. Exposure: the people and groups a renamed, moved, trashed or deleted folder (or file) had been given reached whatever was later created under its old path, at the level they had been given. Affected: storages with access control on, 0.1.41 through 0.63.0.
- filex is built with Go 1.26. Exposure: a fix the Go project made to its standard library after Go 1.25 left security support was not in filex's builds. Affected: the images and binaries built since then, through 0.63.0.
Added
- New accounts start somewhere, and people can sign up
(GitHub discussion #148,
suggested by @wsw70; task #400). An OIDC account's first sign-in showed
"Nothing has been shared with you yet", because a new storage is closed to
everybody but the administrators and nothing gave a newcomer a way in.
Admin → Settings → General → New accounts now says what every account
filex opens by itself starts with: a role (the built-in User, Viewer or a
custom role), groups to join, and a storage or a folder at a level, in any
combination. It is one setting for the whole install and one function
(auth.StartNewAccount) for every way in: the first sign-in through OIDC,
LDAP, PAM, Windows and the header proxy, and the new sign-up. An account an
administrator makes on Admin → Users, or an invitation, does not get it.
A role the person's SSO groups name (Starting role for SSO groups) still
wins over the setting's role, and an account a provider makes an
administrator stays one. What can no longer be given (a deleted group, a
storage whose access control is off, another tenant's group or storage) is
left out and the account opens with the rest; a group that makes its
members administrators, or one a directory sync brought in, cannot be
chosen (PUT /api/admin/new-accountsanswersadmin_groupor
directory_group). While a new account would start
with no storage and a storage has access control on, the card and Admin
→ Identity providers warn and link to the setting, and the newcomer's
empty page says the account has no storage yet
(RBAC.md → What a new account starts with). - A folder of its own for every new account, in the same setting, off by
default: a storage with per-item access control on and the folder to make
them in. Every account filex opens by itself gets
<storage>/<folder>/<uid>, held as owner (viewer on a Viewer account). The
folder is named after the account's uid (newusers.uid, migration 00141),
never after its username or address, so a rename, a username taken again or
an account opened again with the same address can never point it at someone
else's files; the account is linked to it by the folder's node id, and a
rename or move made in filex keeps the grant on the folder at the next
sign-in. It is made once, for an account that can sign in (a sign-up waiting
for approval gets it at its first sign-in), and a storage that cannot make
it never fails the sign-in: the audit says why (auth.home_folder_failed)
and a later sign-in tries again. Deleting the account leaves the folder in
place, shown by its uid once the account is gone. Nobody reads a uid while
the account exists: the explorer shows the folder to its owner as My
folder (Klasörüm) and to anyone else it appears to (an administrator,
someone it or something in it is shared with) by the owner's name, in
every view: the rows, the breadcrumb and tabs, the details panel, the
Location column, the grid's and gallery's parent line and the command
palette's search hits. Everybody else is told nothing about it. The stored
name stays the uid (home_folderandhome_foldersin
GET /api/files/capabilities), and the setting's summary and warning
count it (RBAC.md → A folder of its own). - Open registration: a Create an account link on the sign-in page,
off by default. Two steps are on by default: an administrator approves
each sign-up (the account waits, switched off, Waiting for approval on
Admin → Users, with a new filter for it), and the address is confirmed
by a mailed link (mail.account_verify, in the language the sign-in page
was in; 7 days, once). The confirmation is skipped while SMTP is not
verified, and the card says so. A sign-up is limited per network (five,
then one every ten minutes), guarded by the bot check as the newregister
form, and closed on a multi-tenant install and while password sign-in is
off.POST /api/auth/register,POST /api/auth/register/verify,
GET/PUT /api/admin/new-accounts,registration.openin
GET /api/capabilities; seedsFILEX_REGISTRATION,
FILEX_REGISTRATION_APPROVAL,FILEX_REGISTRATION_VERIFY_EMAIL,
FILEX_NEW_ACCOUNT_ROLEand theirconfig.yamlkeys
(CONFIGURATION.md).
A sign-in refused for an account waiting for approval now says so
(account_pending) on the password form too, as an unconfirmed sign-up
does (email_unconfirmed). - Get short link takes a code of your own
(filex-shortlink#1,
requested by @jjaard). When the app holding the link-shortener role lets a
person choose the code, the share dialog (a link and a file request) and
the dialog My shares opens draw a field Your own code (optional)
under the link: typeofferand Get short link answers
l.example.com/offer; leave it empty and the app makes its code as
before. The field and its state are one core piece (useShortLinks+
ShortLinkCode) every surface uses. A refusal (a taken code, one against
the app's rule) is the app's sentence under the field, and what was typed
stays. The contract: the app answersown_codeon theexistingask
(ShortenOutput.OwnCode), and filex hands what was typed as
ShortenInput.Code, trimmed and at most 128 bytes (wire.ShortenMaxCode;
a longer one is400 short_code_too_longat the door).GETandPOST /api/files/short-linksanswer{url, own_code},POSTtakescode. An
app that never answersown_codeis offered no field, and a host before
0.64.0 never sendscodeand ignoresown_code, so one app build serves
both.plugintest.Harness.Shortenrefuses a call filex never makes (a code
withexisting, an untrimmed or overlong one)
(APP-PLUGINS-API.md → The link-shortener role,
SHARING.md → Short links). - The public address can be set on the admin panel, and a store install
is no longer stuck withlocalhostlinks (task #408). A new card,
Admin → Settings → General → Public address, sets the address every
share link, file-request link, short link, emailed link and sign-in
callback is built on. It applies at once, no restart; it is checked first
(http/httpsonly, no user name,?queryor#fragment, a path only
when it is the base path) and every change is audited
(public_address.update).FILEX_PUBLIC_URLandpublic_urlin
config.yamlstill win: the card then shows the address read-only and
says which of the two sets it. While nothing names it, the card offers the
address you opened it at (one click saves it, nothing saves it by itself),
and the "public address is not set" banner on every admin page links
straight to it. In the meantime a link handed back to the signed-in person
who asked for it, in the same answer - the share dialog, a file request,
an upload ticket, the realtime connection, the connection guides - uses
the address that person reached filex at, so a share link copied from the
dialog works. Every link sent to somebody else - each emailed link, short
links, anything an anonymous request or a background job makes - stays on
the configured address and never on the request'sHostor forwarded
headers, which are believed only from a trusted proxy
(CONFIGURATION.md → Public URL,
SECURITY.md).
GET/PUT /api/admin/public-address; the generic settings routes refuse
thepublic_urlrow.
Changed
- The starting role of an SSO account is given when the account is
opened, inauth.StartNewAccount, no longer while the sign-in's groups
are recorded. Nothing changes for a person: it is still given once, at the
first sign-in, before the linked groups are joined. - A bot-check forms list saved before this release does not protect the
sign-up. With nothing saved, every form is protected,register
included; a list chosen on Admin → Bot protection or inCAPTCHA_FORMS
keeps exactly what it names. Tick Sign-up before opening registration
(BOT-PROTECTION.md). - extism go-sdk now comes from upstream
main, and the in-tree patch is
gone. extism/go-sdk#106 keeps an app instance's functions between calls,
as filex's own patch did (a warm call still allocates about 5.6 KB), and
it also keeps a call back into the export that is running safe, which the
patch did not (no filex host function makes one today). wazero moves from
1.9 to 1.12 with it. - Apps built with the SDK need Go 1.26 from their next SDK upgrade. The
SDK lives in filex's own module, which now declaresgo 1.26.0: updating
to it raises the app'sgo.modto 1.26, and an older Go refuses to build.
Fixed
- filex waits for a database that is still starting instead of exiting
(GitHub #147, reported by
@factoryhub; task #398). A fresh Helm install with the chart's own
PostgreSQL started filex while PostgreSQL was still starting: the
migration failed withconnect: connection refused, the process exited
and the pod went into a restart loop until PostgreSQL was up.filex serve
now waits up toFILEX_DB_WAIT(db.wait, default2m,0= do not
wait) while the connection is refused or reset, the host name is not in DNS
yet, nothing answers in time, PostgreSQL says it is starting up (57P03)
or MySQL that it is shutting down (1053), with one log line when it
starts waiting, one every 30 seconds and one when the database answers. A
wrong password, a database that does not exist or a rejected TLS handshake
still stops filex at once with the same message as before; when the time
runs out, filex exits with the last error. It helps every installation
that starts filex next to its database (Compose, Portainer, Unraid), and
the chart needs no init container. SQLite and the CLI commands do not
wait (CONFIGURATION.md → Waiting for the database). - A drive's size is what you can open of it
(GitHub #149, reported by
@benjaminstary; task #399). Somebody granted a few folders of an RBAC
storage saw the whole storage's size on Home's storage card and in the
storage line under the navigation ("Cloud: 54.9 GB used"), a figure about
folders they were never shown.GET /api/files/quota/storagesnow answers
the drive's total only to whoever can open its root (RBAC off, an
administrator, a grant on the root), and to everybody else the size and
file count of the folders and files they were granted, each counted once
however many grants (their own, their groups') reach it. Which parts those
are follows the rules the listing shows them by, so a drive you can measure
is still exactly a drive you can open, and only your part of it. On a
lazily catalogued drive the figure says "at least" when your part is not
catalogued in full, not merely because the rest of the drive is still
filling. - A folder you cannot open whole shows the size and date of what you can
open in it (same report, GitHub #149). On an RBAC storage the explorer
lists the folders on the way to a grant so you can walk to what you hold;
such a row carried the folder's whole size and its newest-change date, so
somebody granted/Projects/Acmecould read how much is in the rest of
/Projects, and when anything in it last changed, off it. That row now
carries the size of the folders and files you hold below it, the figure the
drive card adds up for the whole drive, and the newest date among them, on
every surface that shows the row: the explorer's folder list (and its folder
chooser), the explorer's search,/api/files/search, Starred, Recent and
tagged lists, the node list by parent (?storage=&parent=) and the AI and
MCP search (by name and by content). A row with nothing of yours below it (a
file you starred or opened while you could, and can no longer open) is still
listed, with no size and no date: the fields are left out, and the explorer
draws-rather than0 B. A folder you can open keeps its own figures,
and nothing changes for whoever can open the storage's root. When your part
cannot be counted the row likewise carries no size and no date (not0, nor
"at least 0"), and a part with nothing catalogued yet dates nothing: never
the folder's own total or date. The order and the search narrowing follow
the figures the rows show: a search'smodified_after/modified_before
judge such a folder by the date it shows (before, by its own date, so
whether it came back told whether something you were never shown changed in
that window), on/api/files/search, the explorer's search and the AI and
MCP search alike; the folder list'ssort=sizeandsort=modified, and
Starred and Recent sorted by size or date, which the database ordered by the
folder's own figures, so a row's place gave away what the row no longer
printed (those two lists, sorted that way, are now ordered in the server
from the newest 10,000 entries). Tagged lists only hold what you can open,
and searches are ranked by relevance, so neither had anything to reorder.
Each granted folder's figures are one aggregate over the path index and one
row read, reused for 15 seconds by everybody who holds it, and a grant given
or taken away counts at the next load. - "Last sign-in" moved on a sign-in that was refused. The password,
directory and SSO drivers stamped it as soon as the password or the
identity provider said yes, before filex checked the rest: an account
switched off or waiting for an administrator, a suspended tenant, a missing
or wrong second factor. With open registration every sign-up waiting for
approval showed a fresh sign-in for each attempt it was turned away. The
stamp is now written once a session is really opened (after a realm
handoff, on the tenant's address), and the header proxy stamps only an
account the request may act as. Sign-ins over WebDAV, SFTP and FTPS and API
keys never touched it and still do not. FILEX_DEFAULT_STORAGE_*on a database that already has storages are no
longer ignored without a word
(GitHub #147, reported by
@factoryhub; task #402). Like the first administrator, the default storage
is a first-boot seed: filex creates it only while the database has no
storages. A Helm install withstorage.type: s3and the bundled versitygw
ran on an S3 storage without the endpoint and the keys the chart passed
(the log saids3 endpoint AWS S3 (auto) ... no EC2 IMDS role found): its
database was kept from an earlier install, and nothing said that the
values were skipped. At every start where no storage has the driver and the
name, location and keys the values give (S3: endpoint, bucket, prefix and
both keys; local: the path; any other driver every field of its JSON),
filex now logs one warning, without the values and with
database_set_up_atlike the administrator's, saying they were ignored and
that the storage is changed under Admin → Storages. A restart with the
values the storage holds says nothing, and a value left empty is not
compared, so a store package that names no storage stays quiet when it is
renamed. The chart'svalues.yaml,values-full.yamland install notes,
and the configuration and installation guides, say it is a first-boot
seed. CONFIGURATION.md → Zero-touch seeding.- A link to a card of an admin page shows the card's heading. Opening
/admin/settings#thumb-limits(from the panel's search, Tools →
Thumbnail repair, or now the public address banner) put the card 16 px
under the window's top, which is under the panel's sticky top bar: the
card's title was hidden. The card now lands 16 px under the bar. - The macOS, Microsoft Store and snap packages offer "Open with filex"
for videos. These packages declare their file types when they are
built, from the app store's signed catalog. The store's video player
(video0.1.0) came after 0.63.0 was built and opens 23 video kinds
(.mp4,.mkv,.mov,.webm,.aviand the rest), so those packages
did not offer filex for them. They now declare 85 kinds instead of 62.
Windows' installer and Linux learn the kinds from your servers while the
app runs, and already had them.
Full changelog entry, with each security fix in full.
Verify: sha256sum -c checksums.txt
- Documentation - https://docs.filex.sh
- Report a bug - https://github.com/BRF-Tech/filex/issues
- Full changelog - https://github.com/BRF-Tech/filex/blob/main/CHANGELOG.md
- Every release - https://github.com/BRF-Tech/filex/releases