Architecture overview
The Federated Learning Net network and FL-Net software follows a federated star architecture:
- A Platform deployment provides discovery, orchestration, and the interface for Data Scientists and Auditors.
- Multiple Client deployments are operated independently by individual data holders.
The key design choice: data holders don't have to give up local control just to join a shared network. A set of disclosure control mechanisms lives on the Client itself, ensuring that no non-anonymous personal data ever leaves the local environment.
Main building blocks
Platform
The Platform is the central, user-facing layer. It typically handles:
- Authentication of Clients, Data Scientists, and Auditors
- Schema creation and storage
- Secure data discovery across participating Clients
- Building, scanning, and storing Tools and Workflows, along with their audits
- Federated Learning (FL) project creation
- Handling FL project results, from viewing to publication
As the Platform is deployed as a multi service enseble, the following services are relevant for the network architecture:
- Global Learning API
- Data Modeler API
- Relay Server
- Orch API
- Reverse proxy (NGINX)
More information on the Platform's internal structure and its services can be found in the Platform technical architecture.
Clients
Clients are self-hosted nodes operated by Data Holders. They typically handle:
- Data ingestion, where connectors map local source data to global data standards (Schemas)
- Data administration and auditing of local data changes and protected federated access
- Disclosure control lets Data Holders define how their data may be discovered and securely used
As the Client is deployed as a multi service enseble, the following services are relevant for the network architecture:
- Local Learning API
- Controller
- Orch API
- Reverse proxy (NGINX)
For a general overview, see the Client introduction. For a detailed description of the Client's services, see the Client technical architecture, which also then links to the clients data flow.
For a hands-on look at what's configurable on the Client side, see the Client usage docs.
Connection diagram
The following describes any connections going over the internet. Connections happening on the same host are ignored, except for a few Platform-internal hops showing where incoming traffic is routed. The DataHolder is assumed to be on another machine then their Client deployment.
Client connections
Incoming
Data Holder access: Data Holder(browser) —[HTTPS]→ Client (NGINX reverse proxy)
The Client exposes one HTTP entry point for the Data Holder. How it's secured ultimately depends on how the local IT admin deployed the Client, but the FL-Nets deployment scripts and docs support the following options:
- HTTPS with a CA-issued certificate supplied to the Client (recommended). The IT admin supplies the certificate; the Client terminates TLS via NGINX. By default this:
- Allows TLS 1.2 and 1.3 only
- Enables HSTS, with a 1-year max-age and
includeSubDomains
- HTTPS with a self-signed certificate supplied to the Client. A script for generating the self-signed certificate is provided. Unlike the CA-signed option, HSTS should not be enabled here — modern browsers will otherwise refuse the connection.
Alternatively, Clients can put their own reverse proxy in front, or connect via an SSH tunnel. See the Client deployment docs for details.
Outgoing (Client → Platform)
-
Federated secured access:
Client (Local Learning API) ⟷[HTTPS]⟷ Platform (NGINX reverse proxy)An outgoing connection from the Client to the Platform is established over HTTPS (port 443), including a WebSocket (WSS) connection. This connection also includes the pulling of Tools via the Platform deployed Tool registry (same domain and port). On the Federated Learning Net network, this uses the default FL-Net Platform settings: a Let's Encrypt certificate supplied to the Platform, with TLS terminated via NGINX, which:- Allows TLS 1.2 and 1.3 only
- Enables HSTS, with a 1-year max-age and
includeSubDomains
-
Federated learning communication:
Client (Controller) ⟷[TCP]⟷ Platform (Relay Server) ⟷[TCP]⟷ Client/Platform (Controller)To relay messages during an active federated learning run, the Client and Platform open a TCP connection (port %%DEPLOYED_PRODUCT_TCP_PORT%%) secured with mTLS 1.3.On top of that, every message sent from a Client is individually encrypted ECIES-style over X25519. The shared secret is derived via ECDH, combining the recipient's per-run ephemeral public key with a per-message ephemeral private key generated by the sender. This extra layer does not apply to the initial handshake, the per-run ephemeral public key exchange, or aggregated models sent by the aggregator (deployed on either the Platform or a Client, as specified in the FL request).
Bug reports need no connection from the Client: Report an issue opens a prefilled issue on GitHub in the Data Holder's Browser, which they review and submit with their own GitHub account.
Potential connections
Tools run as part of a federated learning run are especially sensitive, since they access non-anonymous, personal data.
At the connection level, most Tools are restricted to the dedicated Federated Learning Communication channel only. Any Tool that requests broader access — for example, to the host machine (a database loader) or to the internet (a model download) — is flagged and always requires manual approval.
Please refer to the security model and data flow client for details on how Tools are vetted and approved, and how their access is restricted.
Intra Client connections
Please refer to the Client technical architecture for details on how the Client's internal services communicate with each other.
Platform connections
These connections are in addition to the ones described above under Client connections. Data Scientist and Auditor access uses the same HTTPS settings described there. The Platform exposes one HTTP entry point shared by Data Scientists, Auditors, and Clients.
Incoming
Apart from the outgoing connections listed under Client connections, the Data Scientist and Auditor connect to the Platform over HTTPS (port 443). The Platform terminates TLS via NGINX, which:
- Allows TLS 1.2 and 1.3 only
- Enables HSTS, with a 1-year max-age and
includeSubDomains
Outgoing
-
UMLS access:
Platform (Global Learning API) ⟷[HTTPS]⟷ UMLSThe Platform may connect to the UMLS API to retrieve UMLS concepts and their relations. -
Semantic Scholar / PubMed access:
Platform (Global Learning API) ⟷[HTTPS]⟷ Semantic Scholar / PubMedThe Platform may connect to the Semantic Scholar and PubMed APIs as part of its research assistance features. These requests contain only text from the Data Scientist. The exact accessed domains are https://api.semanticscholar.org/ and https://eutils.ncbi.nlm.nih.gov/ -
LLM server (UHAM) access:
Platform (Global Learning API) ⟷[HTTPS]⟷ LLM serverThe Platform may connect to the LLM server run by Cosy Bio for the chatbot feature. These requests contain only data provided by the Data Scientist and the public Tool-Store. Alternatively if the default LLM server address is changed, whichever configured LLM server is used. -
Docker hub/chainguard access:
Platform (Global Learning API) ⟷[HTTPS]⟷ Docker hub / ChainguardTools are packaged docker images built on the Platform. The Platform must therefore pull the base images for Tools which may be stored in the Docker hub registry or the Chainguard registry. These requests contain no Client data.
Running a self-hosted FL-Net Platform? Contact your Platform administrator, since these defaults may have been changed. See the Platform deployment docs for more.
Intra Platform connections
The Platform uses an ensemble of docker containers to run its services. These containers communicate with each other via the Docker network, which is isolated from the host network. The Platforms's internal services communicate over plain HTTP, with a deployed NGINX reverse proxy as part of the Platform handling TLS termination and routing incoming traffic from the Client, a Data Scientist or an Auditor to the appropriate service. The Platforms's internal services are not exposed to the host network, and only the NGINX reverse proxy and the Relay Server used for the Federated learning communication are exposed to the host network/the internet.
During deployment
During deployment, the Platform and Client must be able to pull the docker image ensemble that represents a Platform/Client. An outgoing connection will be established to
- the FL-Net github organization package registry (ghcr.io/fedlearnnet/) to pull the Platform/Client images
- the chainguard docker registry (https://registry.chainguard.dev) to pull the nginx base image
- the docker hub registry to pull e.g. the database images.
After deployment, each Client's Orch API pulls Tool images from the Platform's Tool registry when ETL or federated-learning workflows execute. The registry is reached via the Platform domain, which the Client must be able to reach anyway. This runtime image pull is separate from pulling the Client's own deployment images.
Further reading
We recommend diving into whichever side is more relevant to you:
Client The Client technical architecture covers its internal structure — components, how they interact, and how it's deployed — and links on to the Client data flow, which details what data flows in and out. Read the technical architecture first; it provides context the data flow page assumes.
Platform The Platform technical architecture covers its internal structure — components, how they interact, and how it's deployed.