Technical changes from CrushFTP 11#
This page is for engineers who know how CrushFTP 11 works inside and want to know what CrushMFT 27 does differently underneath: how the processes are laid out, how nodes trust each other, how jobs run, where data is kept, and what crosses the wire. What's new is the tour of the features; this page is the architecture behind them. Each part ends with the pages that have the detail.
"Version 11" means the last CrushFTP 11.5 builds. Several parts built for version 27 were carried back into them; those are listed at the end, under Not a difference, so that nobody looks for a change that is not there.
At a glance#
| Area | Version 11 | Version 27 |
|---|---|---|
| Java | no minimum check, older Java runs | Java 21 at least, 25 or later recommended; FIPS mode and the macOS app need 25 |
| Third-party libraries | Maverick Legacy, a PGP library, Bouncy Castle, Derby, jdom, syslog4j, WinRun4J and others | Maverick Synergy (SSH) only; cryptography, PGP, mail, PDF, the SMB and NFS code are CrushMFT's own |
| Program files | loaded as found | signed, checked at every start; plugins not signed by us are not loaded unless allowed |
| Web session protection | the CSRF value is the last 4 characters of the session cookie | a random 43-character token per session, SameSite=Lax by default |
| Admin rights | flags in the user's site field |
access roles: permissions with scopes, tokens, an audit record |
| Users' passwords | SHA512 by default | PBKDF2 (HMAC-SHA-256, 100,000 rounds, salted) by default, upgraded at login |
| Stored secrets | DES under a key built into the program | AES-256-GCM under a key of the server's own, once an admin chooses one |
| TLS certificates | a keystore path and passwords per port | a certificate store kept by the server: checked before use, versions kept, Let's Encrypt built in |
| Outgoing TLS | pinning on some links | pinning on every outgoing link, "accept any" included |
| Trust between servers | an IP list and a shared secret, over TLS with the built-in certificate | a key pair per node, pinned, mutual TLS 1.3, joined with a one-time code |
| DMZ | links v1, v5 and v6; obeys the internal server that connects | link v6 only; paired by keys, serves nobody until paired |
| ServerBeat | shared secret on a plain socket | pinned TLS between members of one cluster, no older form |
| Jobs | a "job broker" JVM: ten ports, a shared key, serialized objects, polled every second | an engine of its own: a supervisor and runners, one link of typed frames, a journal, leases, memory levels |
| Events | run in step by default, per event Auto, Yes or No | always in the background, except the few that must finish first |
| Statistics, search, sync | an embedded database (Derby) or yours | plain files; your own database stays an option where it makes sense |
| Logging and monitoring | log files, syslog, a database | one event stream to the activity record, SIEM formats, Prometheus metrics, SNMP traps, health addresses |
| API | command= on /WebInterface/function/, XML, always 200 OK |
adds /WebInterface/api/v1: JSON, real status codes, OpenAPI, tokens |
| License | a registration code | a signed license document tied to the server's own key |
The program on disk and at start#
Java. Version 27 is compiled for Java 21 and refuses to start on anything older: "CrushMFT 27 requires Java 21 or later (Java 25 or later is recommended)." On 21 to 24 it starts with a warning. The server can keep a Java of its own in the folder java and update it by itself. See Requirements, CrushMFT's own Java.
Libraries. Version 11 merged a dozen outside jars into CrushFTP.jar. Version 27 merges only Maverick Synergy for SSH. The rest is our own code: the cryptography and PGP, mail, the PDF writer of reports, the activity store, the SMB 2/3 server and client, the NFS 4 server and client, HTTP/3 and AS2. Derby is gone (see Data without a database).
The launcher. Services and start scripts run CrushLauncher.jar, which runs a checked copy of CrushMFT.jar, so an update can replace the files while the server runs.
- Windows: WinRun4J and
elevate.exeare gone. A small exe of our own starts Java as a child, restarts it when it exits with code 64 or crashes (10 seconds later, at most 5 times in 10 minutes), rolls its log, and stops Java by closing its standard input. The service isCrushMFTv27, so it can sit beside the version 11 service. See The Windows service. - The control panel replaces the old window with seven buttons. See The control panel.
Signed files. A build is a small set of files with a signed release.txt that lists each file's SHA-256. The server checks the signature and the hashes at every start. Plugin jars that are not ours are not loaded unless allow_unsigned_plugins is on (Preferences, Updates). The server's own classes always load first, so a plugin cannot replace one of them with a class of the same name. -UNSIGNED turns the checks off for one run, for a developer's machine only. See Writing a plugin.
FIPS 140-3 is a start argument, -Dcrushftp.fips=true, read once when Java starts. It is not a setting and cannot be changed from inside the product. Without it nothing about FIPS is in the server; version 11's FIPS switches are gone. See FIPS mode.
The license is no longer a registration code. It is a document signed with Ed25519, checked offline against the roots built into the program, and tied to the server's node key (the key of the cluster, made at the first start in the folder cluster/; the license is kept in license/). A server without a license serves no users. See License.
Web sessions and cross-site requests#
In version 11 the CSRF value (c2f) was the last 4 characters of the session cookie CrushAuth, compared without regard to case. In version 27:
| Version 27 | |
|---|---|
| the token | 32 random bytes, base64url, 43 characters. No relation to CrushAuth. Issued at every login, replaced when the session id changes, compared in constant time and case-sensitively. |
| how a page gets it | in the login answer (<c2f>), in the cookie CrushC2F (host-only, not HttpOnly), and from command=getC2F for a client that holds only a CrushAuth |
| where it is needed | every command= request from a cookie session, download and logout included. Requests signed in by an Authorization header need none. |
whitelist_web_commands |
can exempt read-only commands only; default getXMLListing (was batchComplete,logout,getXMLListing) |
http_same_site |
Lax by default (was None); plain HTTP ports send it too |
CORS * |
answers a literal *, never the caller's origin with credentials |
| multipart uploads | the user's password is no longer accepted in place of the token |
a ?u=…&p=… link from another site |
does not silently replace a browser's session with another account: the server asks first. Share links and single sign-on callbacks are unchanged. |
The old 4-character value is refused. Clients that read <c2f> from the login answer keep working; scripts that cut it from CrushAuth do not. csrf_legacy_users names accounts that may still send the old value, for old update clients only. The token is masked in every log. See Cross-site protection.
The API#
Version 11 has one interface: command=<name> posted to / or /WebInterface/function/, about 300 commands, mostly XML, every answer 200 OK with FAILURE: or ERROR: in the body. It stays, as the legacy API: the web interface and the client programs use it.
Version 27 adds /WebInterface/api/v1: JSON resources, HTTP status codes, one error shape, an OpenAPI description served by the server, tokens that carry a part of their owner's rights, events and webhooks, and an MCP endpoint for AI agents. It is a second face on the same code, and every call is decided by the access roles. It is off until api_enabled is set. Turning legacy_admin_basic_auth off (it is on by default) refuses admin commands sent to the old interface with a Basic header, so that scripts move to the new one. See The API, Authentication.
Administration rights#
Version 11 keeps an admin's rights as flags in the user's site field: (CONNECT), (USER_ADMIN), (USER_EDIT), (JOB_EDIT), (PREF_EDIT) and so on, checked by a long chain of command names. Several partial flags reached full control by another way (a user editor could save (CONNECT) on someone, a job editor could add an Execute task).
Version 27 decides every admin action in one engine: web commands, SITE commands, API calls, jobs, events and tokens.
- About 280 permissions in 22 ready-made roles; each grant can have a scope (which users, jobs, storage, task types, preference sections).
- Nobody can give more than they hold. A grant that amounts to running commands on the server is shown as full control.
- A job runs with an authority of its own, fixed when it is saved from what the person saving it may do, not with the rights of whoever starts it. Task types are an allow list.
- Tokens are time-boxed and carry a slice of their owner's rights.
- Every use of administration is written to an audit record.
- Groups and inheritance change one step at a time (
groups.members.add,inheritance.members.moveand so on), each checked for the person making it. Only the Administrator may still save the whole map at once.
The site flags keep working until they are converted to roles; the conversion reports what was over-granted. See Access roles, Tokens, Auditing, Groups.
Passwords and stored secrets#
Users' passwords. The default password_encryption is PBKDF2SHA256:100000 (was SHA512): a salt and the round count in every hash. A password stored in an older form is stored again in the current one at the user's next login. See Passwords.
Secrets the server must use itself (passwords of remote storage, mail, keystores, databases): in version 11 they are DES under a key that every copy of the program has. In version 27 an admin chooses, on the server, one of:
at_rest_key_mode |
The key |
|---|---|
| built in | as in version 11. A new or upgraded server starts here. |
keyfile |
secret.key in the settings folder, made for this server, readable by the server's account only |
passphrase |
wrapped under a passphrase (PBKDF2, 600,000 rounds) that an admin types after each start |
A secret sealed with the server's key is AES-256-GCM, written as v2.…; old values are read beside new ones and sealed when next written. The key reaches the job runners on the same machine and a paired DMZ (in memory only); it is never sent to an engine on another machine, nor to the other servers of a cluster, which need the same secret.key copied by hand. See Secrets at rest.
Keystores, certificates and outgoing TLS#
Keystores and certificates. Version 11 has a keystore path and two passwords per port, and a LetsEncrypt plugin. In version 27 the server keeps the certificates itself:
- Each certificate is a PKCS#12 file of its own in
keystores/(BCFKS in FIPS mode) with a password the server made and stores sealed. Chain certificates are kept apart inkeystores/chain.p12and chains are completed by the server. - A certificate is checked before any port uses it. A file that stops opening never takes a port down: the port keeps what it had and serves the last working version at the next start. A change of what a port serves goes back by itself unless an admin keeps it. The last three versions per port are kept.
- A key store file someone else maintains (certbot, a script) stays where it is; the server watches it and reloads it when it changes.
- Let's Encrypt (ACME) is built in, through port 80, 443 or DNS, and answered by DMZs and every server of a cluster. The plugin's settings are taken over at the first start.
- A DMZ keeps no certificate on disk: its server sends the files into its memory.
Pinning. Version 11 pins certificates on some links (a DMZ, and replication if switched on). Version 27 pins on every outgoing TLS connection of the server, the DMZ and the job runners: storage, tasks, mail, LDAP, AS2, syslog, STOMP, SMB over QUIC, the DMZ, replication. A certificate from a public authority for the host passes as before; anything else, a self-signed one or an item set to accept any certificate, is pinned on first use and refused if it changes. Only cert_pin_trusted_domains skips the check.
See How CrushMFT keeps certificates, Let's Encrypt, Certificate pinning.
Cluster and replication#
In version 11 each server has its own hand-typed list of peers (host:port), an IP list of allowed peers and a shared secret. The replication link is TLS with the built-in certificate, which every copy of the program has, so it encrypts but proves no identity. A server is known by a host name, and nothing shows the cluster as a whole.
Version 27 gives every node an identity:
| Piece | What it is |
|---|---|
| node identity | an EC P-256 key pair and a self-signed certificate carrying a random node id, made at the first start in cluster/. The private key never leaves the machine. Its SHA-256 pin is shown as a fingerprint such as 3F9A-01C2-77B0-E4D5. |
| member list | cluster.XML, the same on every server: each member's id, role, name, pin, addresses and state. Merged per member; a removed node never comes back. |
| trust | every link between nodes is TLS 1.3 with a certificate on both sides. A peer is accepted only when its pin is in the member list for that kind of link. Host names, IP addresses and expiry dates play no part. |
| joining | a one-time code, valid 30 minutes, carried from one server to the other. It holds part of the first server's pin; both sides prove they know the code without sending it. A link made the version 11 way can be taken over and is marked unverified until fingerprints are compared. |
| the cluster link | one connection per pair of servers, on the replication port, for membership, status and requests. The listener gives its node certificate to a peer that asks for it and the built-in one to everyone else, so older peers see no change. |
| status | every node makes a small status record every 5 seconds; every server holds the newest record of every node, its DMZs and job engines included, and one hour of history. Any server can show the whole cluster. |
| seeding | a server that just joined can take users, settings, jobs, shares and keys from the one that let it in, with a preview first |
Replication itself still sends the same messages, with the same retry rules, but its peers come from the member list and are checked by pin; once set to pinned only, the secret and the IP list are ignored. ServerBeat speaks pinned TLS between members only, with no older form: a version 11 node and a version 27 node do not elect together. The session hop (a login cookie that lives on another node) is pinned the same way.
See High availability, Trust between servers, Joining, Replication, ServerBeat.
DMZ#
| Version 11 | Version 27 | |
|---|---|---|
| link versions | v1, v5 and v6, chosen per DMZ port | v6 only; a port still marked v5 links as v6 |
| who the DMZ obeys | the address given at its start, or the first that connects; the internal server pins the DMZ's certificate on first sight, which is the built-in one | only servers it is paired with, by their keys, both ways |
| unpaired | works | accepts a pairing and nothing else, and needs TLS for that |
| pairing | none | the DMZ prints a one-time code (60 minutes, also in cluster/pairing_code.txt); an admin enters it under Server Admin, Cluster, Pair a DMZ |
| its key | none of its own | its node key in its own cluster/ folder, which must be writable (a volume in a container) |
| what it is sent | settings, license, keystores and SSH host keys | the same, plus the stored-secrets key, in memory only |
-dmz_unpair undoes a pairing on the DMZ. See The DMZ, Pairing a DMZ.
Jobs#
Version 11 runs jobs in a "job broker": a second JVM with the whole server on its class path, sent all the server's settings and secrets. It listens on ten ports, takes a shared key in clear text from its command line, and exchanges serialized Properties. Each followed run and the list of all runs are sent to the server every second, cancel and pause are status writes over new sockets, and a run whose engine died is found by the age of its in-progress file and restarted after 120 seconds. distributed_jobs and jobs_host_param spread runs over other machines, each way with its own rules.
Version 27 rebuilds the part between the server and the work:
- The orchestrator, in the server, owns the job definitions, schedules, triggers, the queue, the placement of runs and the record of every run. One is active per cluster.
- An engine is always a program of its own: a small supervisor that runs no task code, a shared runner for ordinary runs, and runners of their own (a JVM per run) for jobs that ask for one. Runners start with
-XX:+ExitOnOutOfMemoryError; the supervisor sees the death, names the run it suspects, and resumes that run in a runner of its own. A run that dies there as well fails with a message instead of looping. - One link per engine, opened by the engine: frames with a fixed header and a small typed encoding (strings, numbers, lists, maps, bytes). No class names cross, so nothing is deserialized. Control, events, calls and bulk data travel on separate queues, so a large transfer never delays a cancel.
- Nothing is polled. The engine sends changes as events. Events are journaled on disk until acknowledged, so either side can restart. A call from a task to the server has a deadline and fails with an error; it never returns an empty answer.
- Leases. A run has exactly one holder, with an epoch number; an engine that comes back with an old epoch is told to stop the run.
- Memory. Admission counts a weight per run against the room in each runner, and a run that does not fit waits in the queue, saying so. The supervisor watches the heap still held after collection and the time spent in GC, and acts in levels: Green, Yellow (no new runs), Red (moves the heaviest run out at its next step).
- What a run gets is what it needs, not every secret the server has.
- Engines elsewhere enrol with a one-time code and keep a key of their own that can be revoked; they connect to an engine port or to the HTTPS port as a WebSocket on
/JOBLINK/. - Large lists. A list of more than 10,000 items lives on disk and is read in pieces; the lists of all runs share a quarter of the engine's memory; a finished run keeps the counts and the first 1,000 items of each list. A customer's own Java task still gets a real in-memory list.
- Flow. A Branch task with one line per outcome, a Loop task, and Wait as a real joiner. Named schedule plans that many jobs share.
distributed_jobs and the job broker are gone; job files need no change. See Job engines, How an engine stays healthy, Engines on other machines, Large lists, Flow, Who may do what with jobs.
Events#
Version 11 runs events in step with the action that fired them unless event_asynch is on, and each event can override that (Auto, Yes, No). Version 27 has neither setting: an event always runs in the background, so a slow mail server or job never holds up a transfer. The exceptions wait for their result, up to event_thread_timeout, because they are part of the step: events of the CrushDuo and HomeDirectory plugins, and a SITE command's event that runs a plugin or job. A login event of CrushDuo still running at the timeout refuses the login. See Events.
Data without a database#
Version 11 keeps statistics, the search index and CrushSync's state in an embedded Derby database, or in a database you name. Version 27 ships no Derby and needs no database:
| Version 27 | |
|---|---|
| activity record and reports | one event stream feeds the store, the SIEM targets and the Prometheus counters. The store is our own column files, with rollups, kept 3 years in detail and 10 years summed by default. Reports are JSON definitions, not code or SQL. MySQL, MariaDB, SQL Server, Oracle or PostgreSQL can hold it instead (Enterprise). Transfer quotas are answered from counters in memory, not from a query. |
| search | a catalog of text files per indexed location, changed at once by uploads, renames and deletes through the server, and walked on a timer for changes made outside it |
| sync | a journal of files instead of a database |
Recording is on in version 27, also on a server that had statistics off. A version 11 Derby statistics database can be imported once, with derby.jar put in the server's lib folder for it. See The data behind the reports, Where the record is kept, Importing from CrushFTP 11, Search and the file index, Databases CrushMFT can use.
Logging and monitoring#
Version 11 writes log files, syslog and a database log. Version 27 adds, from the same event stream as the reports: SIEM events in CEF, LEEF, ECS and OCSF by syslog, file or database; Prometheus metrics; SNMP traps for alerts; health addresses for load balancers. See Sending events to a SIEM, Metrics, Health checks, SNMP traps.
Protocols#
- SSH and SFTP run on Maverick Synergy 3.2 instead of Maverick Legacy 1.8: NIO, a context per connection, current ciphers and key kinds. The login code (passwords, keys, keyboard-interactive, several factors) is the same code behind a small interface. See SFTP.
- NFS 4 server, new. See NFS server.
- The S3 server is rebuilt. See S3 server.
- Kerberos sign-in, new. See Kerberos.
- The web interface sends several uploads at once, and its pages come as prebuilt bundles; HTTP answers are written with
TCP_NODELAYand one write per response head, which matters over long round trips.
Coming from version 11#
Version 27 does not install over version 11. It goes into its own folder with its own service, and the migration assistant copies users, settings, jobs, keys, a DMZ and the rest from the old folder, which it only reads. Settings whose meaning changed are mapped on the way (for example replication pinning on). See Upgrading from CrushFTP 11.
Not a difference#
These were built for version 27 and are in the last CrushFTP 11.5 builds as well:
| In both | |
|---|---|
| the SMB 2/3 server, HTTP/3, AS2 version 2, the OIDC server | the same libraries in both builds |
| logins without global locks | users are read without the global user and XML cache locks |
| the log queue | lines are added without a lock, and none is dropped |
| one thread for session time limits | instead of one per session |
| SSH work on a worker pool | SSH-WORKER-… threads, so the network threads never start a thread |
See Performance.