# Vulnerability management

See how Platforma is checked, which versions run in the cluster, and who updates each part.

## Checks before each release

On each change of the code (these checks do not stop a release):

| Check                    | What it finds                                                                                                                                                 |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Go vulnerability check   | Known vulnerabilities in the code of the Backend (The server program of Platforma. It keeps the projects, runs the Blocks and starts jobs.) and its libraries |
| Static security analysis | Unsafe code patterns                                                                                                                                          |
| Secret scan              | Keys and passwords in the code                                                                                                                                |

Before each release:

| Check                       | What it finds                                                                                                 |
| --------------------------- | ------------------------------------------------------------------------------------------------------------- |
| Scan of the container image | Known vulnerabilities, secrets and wrong settings in the image. A high or critical finding stops the release. |
| Approval by a person        | A person approves each release before it is published                                                         |

Automatic dependency updates bring new versions of Go libraries every week; a fix for a known vulnerability is proposed at once and comes with the next release. MiLaboratories fixes critical vulnerabilities within 48 hours. Fixes come only in a new release, and older releases do not get them (see [Supported versions](/reference-versions/#supported-versions)).

The container images of the tools of a released Block (A small application for one step of an analysis, for example the import of reads or clustering. It can combine several tools.) version are never updated: for the reproducibility of the science, a released Block always runs with the same image. A fix comes with a new Block version.

These checks cover the Backend and its container image. The Desktop App (The program that each user installs on their own computer to work with Platforma. It is a client of the Backend.) is signed for macOS and Windows, so the computers of users can check that it comes from MiLaboratories.

## Fixed versions of components

You always know what runs in the cluster. Each release of the Terraform modules (The Terraform code that MiLaboratories provides to install Platforma. The cloud-specific Terraform modules make the cluster and its cloud parts in AWS or Google Cloud; the cloud-agnostic Terraform modules install Platforma into the cluster.) fixes the version of every component: the Backend and the components that queue the jobs (One run of a tool on data. The Backend starts jobs on the server where it runs, or in a Kubernetes cluster.). On AWS, it also fixes the versions of the storage drivers. The Backend image is fixed by its version (tag). The images of the queue components are also fixed by their digest: a checksum of the image, so that the image cannot change.

The Backend gets tools only from the registries that the operator (The person who installs and runs Platforma in your company, for example an IT engineer or a bioinformatician.) sets: by default, the registries of MiLaboratories, or the corporate mirrors of them. It refuses container images from other registries. The tools of Blocks from other developers come from the same registries.

The Desktop App gets Blocks only from trusted registries. By default, the only trusted registry is the registry of MiLaboratories, which holds only the Blocks of MiLaboratories. A user can add the registry of another developer: then this registry is trusted by the choice of the user. The Desktop App checks the integrity of each Block at the level of the archive that brings the components of the Block: the archive must be consistent.

> **Caution:**
>
> A mirror must hold the same versions and digests as the original registry.

## Who updates what

In Kubernetes (A system that runs programs on a group of machines (a cluster). Platforma can run in a Kubernetes cluster.), the modules turn off the automatic updates of the Backend and the nodes: the operator chooses the time of each update. Only the patches of the control plane still apply by themselves.

| Part                     | Who updates it                                                 | When                                                                                                                                          |
| ------------------------ | -------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Backend                  | Operator, with a new release of the modules                    | When the operator chooses. Users cannot work for a few minutes (see [Restart of the Backend](/configuration-storage/#restart-of-the-backend)) |
| Kubernetes nodes         | Operator                                                       | In a maintenance window, when no jobs run                                                                                                     |
| Kubernetes control plane | The cloud provider applies patches; the operator does upgrades | Patches at any time; upgrades when the operator chooses                                                                                       |
| Desktop App              | The Desktop App itself                                         | It downloads a new version by itself and installs it when the user quits it, or at once when the user agrees                                  |
| Blocks and tools         | Users, in each project                                         | A project keeps its Block versions until the users update them                                                                                |

> **Caution:**
>
> The cloud can still restart a node, for example at the end of support of a Kubernetes version or for a repair. A job on that node fails and must run again.

## Next

- [Security overview](/security-overview/)

Source: https://docs.platforma.bio/security-vulnerability-management/
