Data flows
See where the data is, how it moves and how it is protected.
Where the data is kept
All the data that Platforma stores stays in the corporate infrastructure: in the storage and on the disks of the cloud account of your company or the servers of your company. MiLaboratories does not get any input data or results.
| Data | Where it is | Encrypted at rest |
|---|---|---|
| Results of all projects and the files that users upload | Primary storageprimary storage — The bucket (Amazon S3 or Google Cloud Storage) or folder where Platforma keeps all results and uploaded files. Glossary: an Amazon S3 or Google Cloud Storage bucket | By the bucket: Amazon S3 managed keys, or Google managed keys |
| Database: users, projects, permissions | Disk of the Backend | By the disk: AWS managed keys, Google managed keys, or the disks of your company |
| Working folders of jobsjob — One run of a tool on data. The Backend starts jobs on the server where it runs, or in a Kubernetes cluster. Glossary | Workspaceworkspace — The storage where the Backend and all jobs keep the working files of running jobs. The Backend and the jobs use it at the same time. In Kubernetes, it is a network file system; in Single Server mode, it is a folder on the server. Glossary: Amazon EFS, Filestore, or NFS | By the file system: AWS managed keys, Google managed keys, or the NFS server of your company |
| Log files of the Backend | Disk for logs | Same as the database |
| Backups of the database, made automatically | Primary storage | Same as the primary storage |
| Secrets: license key, master secret, sign-insign in — To show the Backend who you are, with a sign-in provider or a single-user token. The verb is "sign in"; the noun and the adjective are "sign-in". Glossary | KubernetesKubernetes — A system that runs programs on a group of machines (a cluster). Platforma can run in a Kubernetes cluster. Glossary Secrets in the namespace of Platforma | By the cluster: Amazon EKS and Google Kubernetes Engine encrypt Secrets at rest |
| Data on screen, downloaded results and the cache of recently used results | Computer of each user. The Desktop AppDesktop App — The program that each user installs on their own computer to work with Platforma. It is a client of the Backend. Glossary keeps the cache in its data folder (by default ~/Platforma), one folder for each server. |
By the disk encryption of the computer. The cache itself is not encrypted. |
| Data | Where it is | Encrypted at rest |
|---|---|---|
| Results of all projects and the files that users upload | Primary storage: a folder on the server, or an Amazon S3 or Google Cloud Storage bucket | By the disk encryption of the server, or by the bucket |
| Database: users, projects, permissions | The data folder of the Backend on the server (by default ~/.platforma/backend) |
By the disk encryption of the server |
| Working folders of jobs and downloaded tools | The data folder of the Backend | By the disk encryption of the server |
| Log files of the Backend | The data folder of the Backend | By the disk encryption of the server |
| Backups of the database, made automatically | Primary storage | Same as the primary storage |
| Secrets: license key, master secret, sign-in | Files or environment variables that the operator gives the Backend. In the data folder: the single-user token and the key of a self-signed certificate, when the Backend makes them. | By the disk encryption of the server. File rights must let only the system user of the Backend read the files. |
| Data on screen, downloaded results and the cache of recently used results | Computer of each user. The Desktop App keeps the cache in its data folder (by default ~/Platforma), one folder for each server. |
By the disk encryption of the computer. The cache itself is not encrypted. |
The Backend also encrypts the SSOsingle sign-on — Sign-in through the identity service of the company, with the same account as for other company systems. Glossary sessions and the storage keys of the primary storage and the data librariesdata library — A folder or bucket with input data of the company. Users select files from it in the Desktop App. Platforma only reads it. Glossary in its own database, with AES-256-GCM and a key made from the master secret.
The cache of the Desktop App has a size limit, and it stays after sign-out. For how long it is kept, see How long data is kept.
Encryption in transit
Every connection to the services of MiLaboratories uses TLS. Inside the corporate network and the cloud account of your company, some connections do not use TLS: they are marked in the tables. The tables list the connections that carry the data; for all outbound connections, see Outbound connections.
| Connection | Protection |
|---|---|
| Desktop App to the entry pointentry point — The way in to the Backend from outside the cluster, a load balancer or an Ingress with a DNS name. It usually ends TLS and sends the traffic to the Backend pod. Glossary | TLS, always. The certificate must be valid for the address of Platforma and trusted by the computers of users. On AWS it comes from AWS Certificate Manager, on Google Cloud from Certificate Manager. |
| Entry point to the Backend | No TLS by default: the requests, with the sessions of users, go unencrypted inside the cluster. The operator can turn on TLS on the Backend: then all ports of the Backend use TLS, the metrics port included, and these requests are encrypted too. |
| Desktop App and Backend to the primary storage | HTTPS. On AWS, the bucket refuses requests without TLS. |
| Backend and jobs to the workspace | On AWS: NFS with TLS. On Google Cloud: NFS without TLS, open only to the nodes and pods of the cluster. |
| Backend to the corporate identity provider or LDAPLDAP — The directory of users of a company. The Backend can check logins and passwords in it. Glossary directory | HTTPS. For LDAP, TLS when the operator sets it (an ldaps:// address, or StartTLS). |
| Backend to the data libraries | HTTPS |
| Backend to the services of MiLaboratories | HTTPS |
| Jobs to the license service | HTTPS |
| Connection | Protection |
|---|---|
| Desktop App to the Backend | TLS when TLS is on in the Backend: the Backend serves it on all its ports, with a corporate or a self-signed certificate. Without TLS, the requests, with the sessions of users, go unencrypted. |
| Desktop App to the primary storage | A folder on the server: the Backend serves the files on its data address, port 6347, with the same protection as the requests (see Open ports). A bucket: HTTPS. |
| Backend and jobs to the workspace | No network: the workspace is a folder on the disk of the server. |
| Backend to the corporate identity provider or LDAP directory | HTTPS. For LDAP, TLS when the operator sets it (an ldaps:// address, or StartTLS). |
| Backend to the data libraries | A bucket: HTTPS. A folder on the server: no network. |
| Backend to the services of MiLaboratories | HTTPS |
| Jobs to the license service | HTTPS |
How files move
When the primary storage is a bucket, large files do not slow down the Backend: the computers of users upload and download them directly from the bucket. For each file, the Backend gives a link that it signs with its cloud identity. The link works only for a short time (1 minute on Amazon S3, 1 hour on Google Cloud Storage). Only these links open the files, so the bucket does not need any public access settings.
When the primary storage is a folder on the server in Single Server modeSingle Server mode — The mode in which the Backend and all its jobs run on one Linux machine, the server, with no Kubernetes cluster. Glossary, the Backend itself serves the files, also with signed links.
In a folder storage, the Backend checks each part of an upload; on Google Cloud Storage, it checks the whole file after the upload.
What jobs can reach
In Kubernetes, a tool in a job cannot read the corporate buckets: jobs do not get any cloud rights, storage keys or access to the data libraries. This is the same on every installation pathinstallation path — A set of tools and steps that installs Platforma. There are five installation paths: the AWS installer, the Google Cloud installer, the Terraform modules, the Helm chart and Single Server mode. Glossary, the installers included. On AWS, the jobs have an IAM role without policies: it gets rights only when the operator adds a policy. The Backend copies the input of a job to the workspace, starts the job, and moves the results to the primary storage. With the Terraform modules, the cluster also stops the pods of jobs from using the cloud identity of the nodes. In a cluster that the company provides, this is a requirement of the Kubernetes contract.
In Kubernetes, each job sees only its own working folder: its pod mounts only this folder of the workspace. A job cannot see the working folders of other jobs.
In Kubernetes, a job gets only the secret values that its BlockBlock — A small application for one step of an analysis, for example the import of reads or clustering. It can combine several tools. Glossary asks for, and only from one Secret that the operator chooses. By default, this is the license Secret, which holds only the license key: every Block that asks gets the license key. The master secret and the storage keys are in other Secrets, so no Block can get them, as long as the operator keeps them out of the Secret for jobs.
How long data is kept
| Data | Kept for | Removed by |
|---|---|---|
| Results in the primary storage | As long as a project uses them | The Backend |
| Working folder of a job | Until the job ends. In debug mode, 24 hours after the job ends. | The Backend |
| Records of finished jobs in the cluster | Up to 5 days; they can be removed sooner | A cleanup job, every night |
| Log files | The last 10 files of 1 GiB | The Backend |
| Backups of the database | The last 14, one every 24 hours | The Backend |
| Downloaded tools | 3 months for archives, 2 weeks after the last use for installed tools | The Backend |
| Uploads that did not finish | 7 days | A rule of the bucket |
| Cache of results on the computer of a user | Recently used data, within the size limit (up to about 8 GiB for each kind of cache; the oldest files are removed first). The cache stays after sign-out. The folder of a server is removed after 30 days without use of the server. | The Desktop App |
| Data | Kept for | Removed by |
|---|---|---|
| Results in the primary storage | As long as a project uses them | The Backend |
| Working folder of a job | Until the job ends | The Backend |
| Log files | The last 20 files of 20 MiB, compressed | The Backend |
| Backups of the database | The last 14, one every 24 hours | The Backend |
| Downloaded tools | 3 months for archives, 2 weeks after the last use for installed tools | The Backend |
| Cache of results on the computer of a user | Recently used data, within the size limit (up to about 8 GiB for each kind of cache; the oldest files are removed first). The cache stays after sign-out. The folder of a server is removed after 30 days without use of the server. | The Desktop App |
By default, the backups of the database are in the primary storage, and data that is deleted from the database stays in the backups for up to 14 days.
The records of finished jobs are not an audit record: Platforma does not guarantee to keep them for 5 days.
No rule of the bucket deletes or moves the results: only the Backend deletes files, when no project uses them.
Backups and recovery
The Backend backs up its database automatically, once every 24 hours, and keeps the last 14 backups. It stores the backups in the primary storage. Thus the primary storage holds all the data that matters: the results, the files of users and the backups of the database. For where each kind of data is and how long it is kept, see Where the data is kept and How long data is kept.
The one critical point
The safety of the primary storage is the one critical point. Platforma does not make a copy of the primary storage. The operator protects it with the tools of the storage:
- For a bucket: versioning, soft delete or replication to a different location.
- For a folder on a server: the backup of the server.
Recovery
To recover, the operator restores the database from a backup. The Backend must start with the same master secret: the database holds the stored keys sealed with a key made from the master secret, and only the same secret makes them usable again. For the steps, see Restore.
The newest backup is at most 24 hours old. Thus a restore can lose up to 24 hours of changes to projects, users and permissions. The results in the primary storage are not lost.
Uninstall
With the Terraform modules, the Helm chart and the installers, the uninstall keeps the results when the operator follows the procedure. The operator then deletes the data on purpose, with a separate procedure. The teardown of the Google Cloud installer deletes the data only when the operator chooses its mode that deletes all data. See Uninstall Platforma.
When the operator uninstalls Platforma with the Terraform modules, the primary storage, the workspace and the disk of the database stay, and a new installation can use them again:
- The Terraform modules protect the bucket and the workspace that they make (on AWS, S3 and EFS; on Google Cloud, Cloud Storage and Filestore). The removal of the cloud parts stops until the operator takes these two out of the control of the modules.
- The database disk stays when the Backend and the cluster are removed.
- The logs disk stays only when the operator chooses this in the settings of the modules. By default, it is deleted: a new installation works the same with a new, empty logs disk.
- To use the kept data again, the operator gives the bucket, the workspace and the database disk to the new installation in an optional input of the modules. Without this input, the modules make new ones.
To uninstall Platforma, the operator removes the service of the Backend. The data folder of the Backend, with the database and the logs, stays on the server until the operator deletes it. The primary storage also stays.