Skip to main content

Before you start with DCP 1.0.21

Before an update of DCP 1.0.21, do the preparation of the first section, check the server requirements and read how operations and delivery folders behave. If you install DerScanner for the first time, start with chapter 1 and come back here before the first update. The step-by-step update procedures are in the update chapters.

Prepare for an update​

Why​

An update changes a running product. A few actions taken in advance remove the risk of losing data or of stopping the update halfway.

Before you start​

Access to the server and administrator rights. An update that downloads from the internet also needs the registry account.

The panel runs on the server, and the installation is adopted by it. A classic installation that the panel does not manage yet is adopted first, as chapter 15 describes.

Steps​

  1. Take a snapshot of the virtual machine. For classic DerScanner of older versions it is required, and the update asks you to confirm it.
  2. Update the panel first: open the Products screen and click Update the panel. Chapter 21 gives the details. An old panel may show a newer DerScanner version that it cannot install yet, so the order matters.
  3. Make a backup as the task Make a backup describes.
  4. Copy this backup off the server as the task Keep a backup off the server describes. Copy the whole backup folder.
  5. If the server reaches the internet through a proxy, set it on the Network access screen and apply it to Docker (chapter 29). The server also needs access to the mirrors of the operating system packages and to the DerSecur registry. AlmaLinux, Rocky Linux and RHEL need the mirrors of their own distribution.
  6. For an update from a delivery folder, use only a folder that holds all the modules installed on the server.
  7. Check the free space that the update plan shows for each partition. If the plan refuses, free up space or use a larger disk.
  8. Stop the scans or let the plan wait for them. Then update DerScanner.

Result​

The server is ready for the update: you have a snapshot of the virtual machine and a backup off the server, the panel is newer than the product, and the plan has enough space.

The update makes one more backup itself and keeps it with the previous version, so that you can return to that version. Delete what the update has kept only after you have copied this backup off the server (chapter 24).

If it does not work​

If the plan refuses because of space, free up space or enlarge the disk and build the plan again. If a scan does not finish, the plan waits for it only for a limited time. Stop the scan yourself and try again.

You can update the panel from the console too, as the CLI Reference, dcp self-update describes.

Server requirements​

A separate page collects the operating systems, the disk size, the CPU cores, the memory for each set of modules, the ports and the DerAI requirements: Server requirements. Check it before the installation.

The wizard checks the memory again each time you tick a module or clear it. If there is less memory than a server with Core and SAST needs, the installation does not start. If the base memory is enough but not for the chosen modules, the wizard shows a warning. The modules still work, but scans may run slower. See chapter 3 for details.

How delivery folders are checked​

You prepare delivery folders yourself, with the wizard or from the console (chapter 4). The panel shows the fingerprint of the folder but does not ask you to compare it, so compare it yourself. The panel does not detect a package file inside the folder that was changed together with the list of checksums.

So keep the folder on a medium that only you can reach, from preparation until installation. On a server without internet, compare the fingerprint that the wizard and the Delivery folders screen show with the fingerprint printed during preparation. It is also written in a file next to the folder. A different fingerprint means the folder was changed, and you must not use it.

Extra files in the folder give a warning, not a refusal. The panel does not check the Docker packages for the operating system in the folder against the DerSecur signature.

If the folder holds a version newer than the panel knows, it is compared with the image digests listed in the folder itself. DerSecur does not sign that list. Take such folders only from media you trust.

Updating all servers at once takes one source for every server. It is the registry, with the registry account kept in the panel, or one delivery folder. Installing a node from a folder first checks the whole folder on the main server. For a large folder this takes a noticeable time, and a stop takes effect after this check ends. A delivery folder of the wrong release may be rejected only after the upload.

Notes on how operations behave​

Time estimates for large downloads are approximate.

If the server was restarted during an operation, it finishes the operation by itself. The Overview screen shows what is really happening.

A long console command interrupted with Ctrl+C stops not at once, but at its next step. This applies to loading a delivery folder, archiving a backup and preparing an update of all servers.

Docker publishes the port of the task queue, and the rules of firewalld and ufw do not apply to the ports it publishes. The panel opens this port to a node itself when it places a module there, and closes it when the server is removed from the list. If the panel warns that the queue port is open to the whole network, limit it as the procedure Limit access to the task queue in the CLI Reference describes.

If the return failed on all servers, return the whole installation from the main server as the procedure Return the previous version on all servers in the CLI Reference describes. The panel starts the node scanners it stopped for the return by itself.

To take SAST, DAST or SCA off a node, remove the whole installation of the node as the procedure Remove the installation from a scanner server in the CLI Reference describes.

Adding a module on a loaded server waits for its database to start. This can take a noticeable time.

Backups, logs and cloning​

You make a copy outside the server by hand. Copy the whole backup folder and compare it with the list of checksums next to it. There is no upload to a cloud.

If the check of a large backup takes long, you can start the restore while the check is still reading files. This only slows the restore down.

A virtual machine cloned from a server that has already made a backup may carry the identity of that server. The section Backups of a cloned server says how to check and fix it.

The Logs screen shows at most the 300 newest entries. The log for a period is in the support bundle. You choose the period when you build the bundle, and by default it is 7 days.

Versions, license and special cases​

DerScanner updates the SCA vulnerability database. DCP installs the database that comes with the release and does not update it itself.

The DerAI-Lite model loads slowly on a very slow disk. If loading does not finish in the allowed time, the addition returns to the previous state with a clear message. DerAI-Lite on a separate server needs enough memory and CPU cores there, so check them before you add it. The figures are on the Server requirements page.

DerScanner, not DCP, issues the Installation ID.

The check after a restore assesses the restored server on its own, not in comparison with its state before the restore. A server without a license before the restore looks the same after it.

For accounts to which DerSecur has opened the newest DerScanner line, the panel offers its latest version. Without such access this line is not offered.

Classic DerScanner of older versions and installations made before DCP are accepted with a warning that they are not verified, and with a confirmation of the snapshot of the virtual machine.

What changed in this version is described in the release notes of DCP 1.0.21: a separate document in the documentation package, the file RELEASE-NOTES-1.0.21-EN.html. The panel does not show the release notes.