IT and security
This page is for IT and QA staff who review an installation of the File Hub on a lab PC. It describes what is installed, what the File Hub can access, how it talks to Scifeon, and how it keeps the uploaded files complete and unchanged. The test evidence of each release, and a detailed description of the supplier tests, are available from Scifeon on request; see Validating the File Hub.
What is installed
Section titled “What is installed”The installer ScifeonFileHub.msi adds:
| Item | Details |
|---|---|
| Windows service | Name ScifeonFileHub, shown as Scifeon File Hub. It runs as LocalSystem and starts automatically (delayed start) with Windows, also when nobody is signed in. |
| Tray app | Starts when a user signs in to Windows. It shows the File Hub’s status and opens the configuration page. It does not upload or change anything itself. |
| Start menu entry | Scifeon File Hub, which opens the configuration page. |
| Program files | C:\Program Files\Scifeon File Hub. The installer bundles the .NET runtime, so no other software is installed. |
| Data folder | C:\ProgramData\Scifeon\FileHub, with the settings (hub.json), the upload queue and upload log (spool) and the stored API keys (secrets). |
The installer and the File Hub’s own program files are signed by Scifeon ApS. Windows shows the publisher when the installer starts; see Installing on Windows.
Administrator rights are needed to install, upgrade or uninstall the File Hub. Day-to-day use needs no administrator rights. Uninstalling removes the program and the service, but keeps the data folder and never touches the instrument folders.
Network
Section titled “Network”- The File Hub only makes outbound HTTPS connections, to the instance URL of each environment added on the PC.
It calls the Scifeon endpoints under
/api/instrument/to register the hub, register its watched folders, fetch their settings and upload files. - It sends no heartbeats and does not poll. It contacts Scifeon when it starts, when a file is ready to upload, when a watched folder is changed on the PC, and when someone clicks Refresh Config. The one exception is a watched folder whose device has been put in debug mode in Scifeon for troubleshooting: while the flag is set, the File Hub fetches that watched folder’s settings regularly.
- It opens no inbound ports to the network.
The configuration page listens on
127.0.0.1:17800, so it can only be opened in a browser on the PC itself. - The configuration page has no separate sign-in: anyone who is signed in to the PC can open it and change the environments and watched folders. Access to the PC controls access to the configuration page.
- The File Hub gives Scifeon no access to the PC or to your network. Scifeon never connects to the File Hub; all connections are made by the File Hub.
File system access
Section titled “File system access”- The File Hub reads the watched folders, including their subfolders. It uploads files only from these folders. When a watched folder is added for a path that does not exist, the File Hub creates it.
- By default, the File Hub only reads the instrument files and leaves them where they are.
A watched folder can be set up, when it is added or later in Scifeon, to move each file into an
uploadedsubfolder, or to delete it, after the upload. It does so only after Scifeon has confirmed the upload, and only if the file still has the same content as the uploaded copy. See What happens to the original file. - The settings of a watched folder, including this choice, are stored in Scifeon and can be changed there by users with access to its File Agent device.
- The File Hub writes its own data only to
C:\ProgramData\Scifeon\FileHub.
Anyone who can write to a watched folder can add files that the File Hub then uploads. Set the folder permissions on the PC so that only the instrument software and authorized users can write to the instrument folders. Validating the File Hub has steps to record them.
The File Hub can run on a file server that the instruments save to, or watch a network share from a PC. It still only needs outbound HTTPS to the Scifeon instance. The File Hub reads a watched folder on a network share as the PC’s computer account, and the copy from the instrument to the file server is outside the File Hub. See Instruments that save to a file server.
The API key
Section titled “The API key”The File Hub signs in to Scifeon with an API key that has the InstrumentHub scope, created by a Scifeon administrator on the API Keys page. See Create an API key.
- The File Hub uses the key for its calls to the
/api/instrument/endpoints described above. In Scifeon, these calls run under Scifeon’s built-in hub identity, not as a named user. - The key is stored on the PC encrypted with Windows DPAPI, in the
secretsfolder. - The key is never written to the settings file, the logs or the upload log, and the configuration page never shows it again after it is entered. It can only be replaced.
- Use one key per lab PC. To stop a PC from uploading, for example when it is retired or compromised, revoke its key on the API Keys page in Scifeon.
Data integrity
Section titled “Data integrity”The File Hub and Scifeon together make sure that the file stored in Scifeon is the complete, unchanged file the instrument wrote.
On the lab PC
Section titled “On the lab PC”When the instrument has finished writing a file, the File Hub copies it into its upload queue, computes the SHA-256 hash of the copy and uploads it with the hash, its path in the watched folder and its created and modified times. Queued files are kept on disk and retried, with a longer wait after each attempt, through restarts and outages, and are never discarded to make room for new ones.
In Scifeon
Section titled “In Scifeon”- Scifeon computes the SHA-256 hash of the file it receives and compares it with the hash computed on the PC. If they differ, Scifeon rejects the file and stores nothing.
- A file that Scifeon refuses, for example because of a hash mismatch, is moved to Failed Uploads on the PC together with the reason. It is kept there until someone clicks Retry after fixing the cause; it is never deleted silently. See Failed uploads.
- A file with the same watched folder, path and content is stored only once. When the File Hub uploads it again, for example after a restart during an upload, Scifeon returns the file it already has. This makes every retry safe.
- A file that changes after it was uploaded is a new upload. The earlier version stays in Scifeon unchanged.
- Scifeon stores the SHA-256 hash, the path in the watched folder and the file’s created and modified times with each uploaded file.
In an experiment
Section titled “In an experiment”When a spreadsheet macro uses an uploaded file in an experiment, it processes the file once and links it to the experiment step without copying it; processing it again needs a confirmation that is recorded in the audit trail.
See context.openHubFile.