Upgrade notes (Instructions for upgrading to a new version)

Upgrade notes (Instructions for upgrading to a new version)

Contents

General instructions

Regardless of the application version from and to which the update or upgrade is proceeding, the following rules and recommendations apply.

Basic rules

  • Regular updates and upgrades are recommended. Especially when a new major version is released.

  • It is not recommended to skip major version upgrades and then later perform an upgrade through multiple major versions. Nonetheless if this happens, it is necessary to go through all the specific steps for these versions and perform those in ascending version order, see below.

  • It is recommended to perform a backup before an update or upgrade, for example in the form of a VM snapshot, or another appropriate way in which the app is being backed up. In case of an unexpected problem it should be then possible to revert back, using the backup.

Upgrade versus update

Until the version 2.0.6 there was only the update, which always performed an update of the application to the latest released version. Since the version 2.0.6 (including) the process was split in two different steps: update and upgrade.

Update

The update of the application performs an update to the latest minor version in the current version branch (same major version), for example from 2.0.6 to 2.0.8 or from 2.1.1 to 2.1.5. It will no longer do an upgrade between major versions (version branches), for example from 2.0.x to 2.1.x. (This is now true even for older versions, so for example executing update in the version 2.0.1 will just update to the latest 2.0.x and will not jump to next major version 2.1.x or further.)

Upgrade

The upgrade of the application performs an upgrade to a latest version in the next major version branch, if (and only if) one is available. So for example upgrade will perform a transition from the current version 2.0.x to the last version 2.1.x branch. If the next major version branch does not exist, the upgrade will do nothing. It is therefore not possible to use the upgrade to update the app to a new minor version.

How to combine

Perform common regular updates of the application using the update. If a new major version branch is released (eg. 2.1.0), then to stay up to date it is necessary to perform an upgrade. After that just do regular updates again to update to next minor versions in the current branch.

Recommended update or upgrade procedure

Mandatory steps

To update the SOFiE application (to the latest minor version in the current major version branch) run the following command from the command line:

sofie update

This command will automatically perform:

  • backup of the application database

  • download and install the rpm packages with the new version

  • perform a migration of the database structures (schema update)

  • restart of the SOFiE application services

To upgrade the SOFiE application (to the latest version in the next major version branch) run the following command from the command line:

sofie upgrade

This command will perform an upgrade to a new major version branch, if one exists, and then run an update. If a new major version branch does not exist, nothing is done, not even the update.

Next the version specific steps must be performed for all versions through and up to which the upgrade went through. See the details for each version below.

Since version 2.5.10, the update and upgrade commands do not execute the action immediately, but first interactively ask for confirmation. The prompt can be suppressed and the action started immediately without asking, as before, by adding the -y or --yes parameter.

Optional, but recommended, steps

Before and after the update or upgrade it is recommended to check the current version and status of the application using the following commands:

# lists the status of services, should be active (running) for all sofie status # lists the current version, to find out from and to which version the upgrade goes sofie version

Besides updating or upgrading the SOFiE application itself, it is also recommended to perform an upgrade of the operating system, which in the RHEL based systems can be done using the command:

# RHEL 7 and similar yum upgrade # RHEL 8 and similar dnf upgrade

Then it is recommended to restart the server, so it can be verified, that after all the updates and upgrades the system and the application will start up correctly when rebooted:

shutdown -r now

Finally we check, that the application is working as it should. For example by performing an application test by sending a test package to a user and checking that it arrived and that the user can download it. From the administrator’s point of view we check, that all the configured scans for the package were performed and that the audit log does not contain any errors.

Update or upgrade to a specific manually specified version

Since version 2.5.10, the sofie command supports extended syntax for update and upgrade. Specifically:

Support for this syntax depends on the version of the sofie command already installed, not on the target version of the update. For an installation older than 2.5.10, selecting the target version with this parameter therefore cannot be relied upon.

sofie update [-y|--yes] [<version>] sofie upgrade [-y|--yes] [<version>]

It is therefore no longer necessary to always move to the latest released version in the branch, but it is possible to specify a particular version to which the update or upgrade should be performed. The version must be higher than the current one (downgrade is not supported) and must exist; otherwise, an error will occur and the action will not be executed.

It still applies that update can only move within the current major version branch, and upgrade within the nearest higher major version branch.

The purpose of this manual version selection is that if, within an organization, an update or upgrade is first performed and tested in a test environment, and only after testing (which may take days or weeks) is it performed in the production environment, a new version may have been released by the vendor during that time. Without specifying a particular version, production would then be updated to a newer and untested version than the one used in the test environment.

Specific instructions for particular versions

Especially when upgrading to a new major version of the application (e.g. from 1.3.x to 1.4.x), it often happens, that the automatic upgrade process cannot perform all the necessary steps and some steps must be done manually (typically modifying the nginx configuration).

Furthermore, when introducing new features or changes, a conservative approach is usually chosen, so that whenever possible, the upgrade does not introduce changes in the behavior of the application. But that also means, that after the upgrade the new features can be disabled and inactive, and to use them, the configuration must be modified.

Version 2.6.1

Necessary manual upgrade steps (CLI)

No manual steps necessary.

Recommended configuration modifications and checks (web)

Version 2.6.1 includes new or modified features. After updating, the application administrator should review the following settings in particular and consider whether and how to use these features:

  • Settings → Domains → Internal Domains / Blocked Domains:

    • Existing Domains have been converted to Internal Domains.

    • The list of Blocked Domains is empty after the update. To use this feature, add the desired domains. Blocking applies to exact domain matches and is case-insensitive. Subdomains must be entered separately.

    • A domain cannot be both internal and blocked.

    • Validation applies when adding recipients, including through the API and when notifications are not sent. Existing recipients and access permissions are not revoked retroactively.

  • Settings → Configuration → Diagnostics: an extended Queues overview and new Emails and Database overviews:

    • Queues – a consolidated overview of application queues and Kafka topics. It also displays pending and ongoing file inspections, scheduled retries, messages waiting to be forwarded to Kafka, emails, and long-running tasks.

    • Emails – a list of pending emails with filtering by queue time, recipient, and subject. An administrator with the appropriate permissions can delete pending messages individually or in bulk.

    • Database – an overview of the database size, individual tables, and indexes.

Version 2.6.0

Necessary manual upgrade steps (CLI)

No manual steps necessary.

However, we recommend reviewing and considering the following:

  • The files /etc/nginx/sofie.d/http-content.conf and /etc/nginx/sofie.d/http_server-content.conf will be replaced with new versions during the upgrade. Any custom modifications will be saved by RPM to files with the .rpmsave extension and must be reapplied.

  • The new /etc/nginx/sofie.d/http-real_ip.conf file is intended for configuring trusted reverse proxies. Without this configuration, nginx sees the proxy's IP address for all requests, meaning that per-IP connection and request limits also apply to that address. If nginx should use the client IP address forwarded by the proxy, configure specific trusted addresses using set_real_ip_from and the appropriate processing of X-Forwarded-For. Do not extend this trust to arbitrary clients. After making changes, validate the configuration using nginx -t and reload it. This feature does not need to be enabled for direct access without a reverse proxy.

  • New CLI commands are available for configuring an outbound explicit proxy: sofie proxy status, sofie proxy set <host> <port>, and sofie proxy unset. After changing the proxy configuration, restart the application services using sofie restart.

Recommended configuration modifications and checks (web)

The version 2.6.0 contains new or modified features.

Before the upgrade, cosider the following:

  • DLP rules. The new version 2.6 supports a maximum of 100 custom DLP rules per profile. If an existing profile in version 2.5 contains more than 100 regular expressions, you must reduce their number to a maximum of 100 before upgrading; otherwise, issues may occur during the upgrade. Regular expressions must now also be compatible with RE2 syntax, be shorter than 10,000 characters, and must not match an empty string. Otherwise, the DLP profile will not function correctly. We therefore recommend thoroughly testing the new DLP functionality after the upgrade.

  • The SFTP server no longer offers the deprecated HMAC-SHA1 algorithm. It continues to support HMAC-SHA2-256 and HMAC-SHA2-512, including their Encrypt-then-MAC variants. Clients limited to HMAC-SHA1 must be updated, reconfigured, or replaced.

  • Invalid characters < > : " / \ | ? * in the names of existing files within packages will be replaced with underscores.

  • For packages previously released from quarantine whose expiration was not set correctly, the expiration will be recalculated from the time of release according to the applicable policy. Non-persistent packages whose newly calculated expiration time has already passed will be processed and expire shortly after the upgrade.

The application administrator should, after performing the upgrade, go through the following settings and consider if and how he wants to use these features:

  • Settings → User Management → Administrator Groups and Administrators:

    • Similar to the support introduced for user groups in version 2.4.0, group support has now been added for administrators.

    • Previously assigned direct permissions will be automatically migrated to groups, and administrators will be assigned to the corresponding groups. The permissions of the admin account will be migrated to the "Super admin group", while other combinations of permissions will be migrated to groups named "Admin group 1", "Admin group 2", etc. Review the resulting group memberships and permissions of the accounts in use, and rename the groups if necessary.

    • For ADFS/OIDC, mappings between external groups and administrator groups can be configured. These mappings must be configured according to the identity provider's information. Once group mapping is configured for a provider, the group memberships of administrators signing in through that provider will be replaced with the mapped groups at each login, including the removal of groups created during migration.

  • Settings → Configuration → Packages → General:

    • New setting: Users can send packages on behalf of a group. Disabled by default. To use this feature, enable it, configure an email address for the relevant distribution groups, and allow sending on behalf of the group. The user must be a member of the group; in "Only Selected" mode, the user must also have the corresponding permission.

    • New setting: Require a package name. Disabled by default. When enabled, users must enter a package name when sending a package. This also applies to the API, so before enabling this feature, verify that existing API integrations meet this requirement to avoid disrupting them.

    • New setting: Allow notification when a package is first opened. Disabled by default. Once enabled, senders can choose whether to receive this notification for each new package. Available only in the GUI, not through the API.

  • Settings → Configuration → Packages → Size Limits:

    • Configuration sections have been renamed and their descriptions improved for better clarity.

    • New setting: Maximum directory structure depth. The default value is 10. Specifies the maximum number of folder levels in a single uploaded directory tree, counted from the location where the content is added. The allowed range is 0 to 30. A value of 0 allows only files without nested folders to be added, as in previous versions. The limit applies both when creating a package and when adding content to it later. This restriction applies only to the web interface; it does not apply to the API or SFTP.

  • Settings → Configuration → Security → Password Rules:

    • New setting: Password change frequency limit. Disabled by default. When enabled, a local user (including an administrator) can change their password only once within the specified time interval.

    • New setting: Maximum password age. Disabled by default. When enabled, local users must change their passwords after the specified interval has elapsed.

      • Password age is calculated from the last password change recorded in the audit log, or from the account creation date if no change is recorded. Therefore, when maximum password age is enabled, users with older passwords may have their passwords expire immediately. A local user with an expired password cannot authenticate using their password, including via SFTP, until they change it in the web interface. Pay particular attention to technical accounts used for automation.

    • New options for "Mandatory package password - logged in user". Previously, this setting could only be disabled or enabled. The following options are now available:

      • Do not enforce (equivalent to the previous disabled setting)

      • All packages (equivalent to the previous enabled setting)

      • New option: Only public packages created manually in the GUI

  • Settings → Configuration → Users → Multifactor authentication:

    • New options to enforce MFA for local and ADFS/OIDC administrators. Disabled by default. When enabled, administrators who have not configured an additional authentication factor will be prompted to set one up.

  • Settings → Configuration → Data Encryption:

    • If no HPKE key exists, the migration will automatically create one. New packages will then be encrypted exclusively using active HPKE keys. Legacy ECIES keys will no longer be used for new packages and will only be used for existing packages. New ECIES keys can no longer be created.

  • Settings → Configuration → SFTP Server:

    • New setting: SFTP server identification. The text used by the SFTP server to identify itself to clients. The SSH-2.0- prefix is added automatically.

  • Settings → Configuration → Logs:

    • The original "Logging" menu has been renamed to "Logs" and divided into three sections:

      • Audit records - contains the same functionality as the original "Logging" menu.

      • SFTP records - a new menu for configuring SFTP logging. Disabled by default. We recommend enabling it only when diagnosing SFTP issues.

      • Action evaluation - a new menu for configuring the logging of denied actions. Disabled by default. We recommend enabling it only when diagnosing unusual issues in cooperation with the application supplier or manufacturer.

  • Settings → Configuration → Notifications → System notifications:

    • New system notification: Alert on package encryption errors. Enabled by default. Verify that this setting meets your requirements and that recipients of system notifications are configured.

  • Settings → Configuration → Diagnostics:

    • The original Diagnostics menu has been divided into the following submenus:

      • General - part of the original Diagnostics menu where you can view and configure what information is sent to the application manufacturer.

      • Send logs for analysis - part of the original Diagnostics menu where you can send a file containing detailed logs and system information to the application manufacturer on a one-time basis.

      • Services - a new menu displaying the status and details of running application services.

      • Queues - a new menu displaying information about individual internal message queues in the application.

      • Remote access - part of the original Diagnostics menu where you can enable a reverse SSH tunnel to allow the manufacturer remote access to the application server.

  • Settings → Templates:

    • New templates: PACKAGE_OPENED_SENDER and PACKAGE_ENCRYPTION_FAILED.

    • Removed template: PACKAGE_REQUEST.

    • Minor text corrections and typo fixes have been made to most other templates. Review your custom notification modifications, particularly those related to packages, requests, and sending on behalf of a group.

  • Settings → Detection Settings → DLP:

    • The configuration has been significantly redesigned, and the engine's capabilities have been expanded.

    • Existing non-empty regular expressions will be migrated to enabled custom rules. Their original mode will be preserved: "notify only" will be converted to WARN, and all other modes to BLOCK. New built-in rules will be disabled after the upgrade.

    • The default profile action is WARN and applies to rules without an explicitly assigned action. Migrated custom rules retain their explicit actions. When enabled, built-in rules will only generate warnings until you assign them the BLOCK action or change the default profile action. Select the required built-in rules and configure the appropriate actions.

    • The default extraction limits are 100 nesting levels, 1,000 nested objects, and 5 MiB of extracted UTF-8 text. The "Treat oversize as clean" option is enabled, meaning that exceeding a limit alone results in a warning rather than quarantine. Adjust these settings according to your policy.

    • Built-in rules for personal names and physical addresses require the DLP module sofie-dlp-entity-litert, which is installed automatically with the new version. This is a small, locally running, multilingual neural network called Redact.

Version 2.5.18

Necessary manual upgrade steps

No manual steps are required for the new OIDC timeout settings. During the update, the database migration sets both the connection timeout and the response timeout to 5000 ms (5 seconds) for existing OIDC providers.

Recommended configuration modifications and checks

In Settings → User management → OpenID Connect, expand Advanced settings in the provider form to adjust Connection timeout and Response timeout. The default values do not need to be changed for normal operation; they can be increased as needed for slower networks or provider responses. Descriptions and permitted ranges are available on the Settings - User management - OpenID Connect page.

Version 2.5.12

Necessary manual upgrade steps

This should not normally happen, but if manual modifications were made to nginx configuration files in the “/etc/nginx/sofie.d/” directory, a subsequent update/upgrade may create a new file with the .rpmnew extension instead of updating these files. If this occurs, some recommended updates may not take effect, such as the activation of http2, which was implemented in version 2.5.9 in the file “/etc/nginx/sofie.d/http_server-listen-https.conf“. We therefore recommend checking for the existence of .rpmnew files in the nginx configuration and, if they exist, performing an overwrite/merge from the .rpmnew files into the corresponding configuration files and then deleting them.

Recommended configuration modifications and checks

No changes have been made in the application that would require configuration adjustments or checks.

Version 2.5.9

Necessary manual upgrade steps

No manual steps necessary.

However, official support for increasing the number of concurrently executed file checks has been introduced. Previously, it was supported only unofficially and the default state is set to 1, meaning serial execution.

  • We recommend using this if it is necessary to increase file scanning performance and sufficient processors are available.

  • Display the current value using sofie file-check-concurrency. Increase it using sofie file-check-concurrency N, where N is an integer of at least 1. An increase requires confirmation; on successful completion, the configuration is saved, the number of partitions of the file_check queue in Kafka is increased, and the sofie-worker service is restarted.

  • The recommended maximum is 1 for a server with no more than three available CPU cores; on a larger server, it is the number of cores minus 2, for example 2 for 4 cores and 6 for 8 cores. If the command detects the core count and the selected N exceeds this recommendation, it displays an additional warning and requires another confirmation. This is not a hard upper limit.

  • After increasing the value, it cannot be easily reduced again, see: Configuring the Number of Parallel Checks (file check concurrency).

Recommended configuration modifications and checks

In Configuration → Security → Password rules, check the minimum password length for administrators. Since version 2.5.9, the server has required at least 12 characters when saving modified rules, although the GUI still indicates a minimum of 8. If a lower value was configured previously, increase it to at least 12 when modifying these rules; otherwise the server rejects the change. The new validation does not itself overwrite previously saved settings or change existing passwords. For users and packages, the minimum when saving password rules remains 8 characters.

Version 2.5.8

Necessary manual upgrade steps

No manual steps necessary.

Recommended configuration modifications and checks

The version 2.5.8 contains new or modified features. The application administrator should, after performing the update, go through the following settings and consider if and how he wants to use these features:

  • Settings → Configuration → Packages → File Expiration:

    • A new configuration item “Expiration of shredded files” has been added. It can also be set for individual packages.

    • The structure of the remaining items in this menu has been adjusted.

  • View settings for the file list in the package detail (for users and administrators):

    • The default view shows active and quarantined files. Deleted files are not shown by default; the administrator's default view also excludes shredded files.

    • The view can be adjusted using the cogwheel on the right above the file list. Shredded files can be enabled only in the administration interface, not in the user interface.

    • The displayed columns can now also be selected; the Title column cannot be hidden.

    • The settings are stored in the current browser, separately for the user and administration interfaces, not globally for the entire application. Previously saved custom settings are retained and take precedence over the new defaults.

Version 2.5.5

Necessary manual upgrade steps

No manual steps necessary.

Recommended configuration modifications and checks

The version 2.5.5 contains new or modified features. The application administrator should, after performing the update, go through the following settings and consider if and how he wants to use these features:

  • Settings → Configuration → Security → Password rules → Password rules for packages → Mandatory access link password:

    • A new setting item explicitly determining whether setting a password is required for access links (package sharing).

    • Previously (from 2.5.0 to 2.5.4), this was governed together by the setting “Mandatory package password - logged in user”. After the update, the default will be taken from the value of this setting.

    • The setting does not apply to requests, even though since version 2.5 they are implemented as access links. They have an exception to preserve the behavior from previous versions.

Version 2.5.0

Necessary manual upgrade steps

No manual steps necessary.

For new installations, Certbot is no longer installed for issuing and renewing Let’s Encrypt certificates; instead, the new native nginx functionality is used – the acme module. Existing installations are not migrated and remain as they are. This does not cause any issues.

Recommended configuration modifications and checks

The version 2.5.0 contains new or modified features. The application administrator should, after performing the update, go through the following settings and consider if and how he wants to use these features:

  • Settings → User Management:

    • A new menu sub-section consolidating the management of users, groups, administrators, etc. Some sections were moved here from other parts of the settings.

    • Administrators: it is now possible to have remote administrators authenticated via ADFS or OIDC.

    • User groups: new permissions for users:

      • Reset password

      • Share packages

        • Share packages – publicly

        • Share packages – internally

        • Share packages – privately

      • Add files to sent packages

      • Delete, rename, and move files in sent packages

      • Add and manage package files in quarantine

      • Delete files in packages in quarantine

      • Access to the audit log

        • Access to the extended audit log

    • API tokens:

      • It is now possible to reissue an existing token. The original token is invalidated and a new one is displayed. Previously, it was necessary to delete the existing token and create a new one, including all required settings.

      • For new administrative tokens, it is now possible to configure whether they allow impersonation of users. Previously, this was always enabled and could not be disabled.

    • ADFS + OpenID Connect: it is now possible to create integrations for administrator login, not only for users.

  • Settings → Configuration → Packages → General:

    • Allow adding of files to a sent package + Allow deleting, renaming and moving of files in a sent package:

      • Changed from a switch (enabled/disabled) to an option Yes/No/Selected only, where the Selected only option allows flexible configuration using permissions.

    • Users can share packages: a new setting determining whether users can share access to packages using new unique access links. Even if this setting is disabled, users can still create requests as before (although they are now implemented using access links).

  • Settings → Configuration → Packages → Expiration → Other packages: the setting “Package requests expiration” was removed, because requests were replaced with access links. The validity of the link replacing a request is not limited and is therefore the same as the validity of the given package.

  • Settings → Configuration → Packages → File expiration:

    • A new section allowing configuration of whether individual files in packages should expire independently of the package expiration (i.e., earlier than the package itself, suitable for persistent or long-term packages).

  • Settings → Configuration → Packages → Size limits: previously, this setting applied only when creating a new package, not to subsequent modifications. It is now always enforced. This may affect users’ work with packages, and it may be appropriate to consider increasing the limit or refining it for different users or groups using the new policies.

  • Settings → Configuration → Packages → Access control – new section Access to package data in quarantine, including new options:

    • Users can add and manage package files in quarantine

    • Users can delete files in packages in quarantine

  • Settings → Configuration → Users → Multifactor authentication → new option: TOTP time delay [s] – tolerance in seconds during which a just-expired code is still considered valid.

  • Settings → Configuration → Logging → new section: Limit logging of unauthorized access attempts. Allows limiting the number of logs of this type to prevent log flooding.

  • Settings → Configuration → E-mail – new options:

    • Send e-mails – allows completely disabling sending of all e-mails from the application.

    • Set Reply-To header based on the sender – allows notification e-mails sent to recipients, when a user creates a package or a request, to be configured so that replies go to the user’s e-mail address instead of the global application e-mail address.

  • Settings → Configuration → Diagnostics – new options:

    • Send environment information

    • Send error reports

      • Anonymize data

    • By default, all these options are enabled, allowing better diagnostics of potential application issues. We recommend keeping them enabled, or possibly considering disabling data anonymization for even more accurate error analysis.

  • Settings → Templates:

    • The default texts of some templates were updated to better reflect the new package options (persistent, cooperative, empty, etc.).

    • New template “PACKAGE_SHARED”.

  • Settings → Detection settings:

    • For individual detection engines, so-called “profiles” were introduced, in which their configuration is now stored. Each engine can have multiple detection profiles with different settings. These can then be used in new detection engine policies.

    • After upgrading to the new version, each engine has one profile created, “Default”, to which the entire original configuration is moved. This profile is set as default, so it is used if no other profile is specified in a policy. As a result, there is no change in behavior unless the administrator starts using policies and profiles.

    • The list of engines has a slightly updated design to make it clearer and more readable.

  • Settings → Network objects:

    • A new settings section where it is possible to prepare a registry of network objects that can then be used in some parts of the configuration (e.g., policies and ADFS and OIDC). It will likely be further expanded in the future.

    • It is possible to create and name network addresses and ranges in CIDR format, for both IPv4 and IPv6. These addresses can also be grouped.

  • Settings → Policies – new section containing policy lists for:

    • Size limits

    • Detection engines

    • Packages expiration

    • Each policy list allows administrators to flexibly define different settings for different users or user groups, or IP addresses and ranges. Policies are evaluated from top to bottom, and the settings from the first matching policy are applied. If no policies are created, the settings from the Default policy are used, which is always fixed and derived from the global application configuration, meaning the behavior is the same as before the introduction of policies.

  • Settings → Audit Log + also Settings → Configuration → Logging → Syslog: now includes a ? icon. When clicked, it displays a list of all audit log types valid in the current version, including severity, application version (when introduced), and an example message when it occurs. This inline documentation replaces the manually maintained audit log documentation previously available here in the wiki.

Version 2.4.1

Necessary manual upgrade steps

No manual steps necessary, however, to ensure proper operation of the new "Load Public Key" button in Settings → ADFS, it is recommended to update the nginx configuration file "/etc/nginx/sofie.d/http_common-variables.conf" by adding the specific FQDN (Fully Qualified Domain Name) of the ADFS server. See the example below:

# After updating this file, you need to restart nginx # systemctl restart nginx # # Example: # # set $admin__connect_src "adfs.test.com"; # Content-Security-Policy - connect_src ... comma separeted fqdn set $admin__connect_src "adfs.sonpo.cz";

Recommended configuration modifications and checks

The version 2.4.1 contains new or modified features. The application administrator should, after performing the update, go through the following settings and consider if and how he wants to use these features:

  • Settings → Configuration → Users → Appearance:

    • User name display. It is now possible to configure how the user’s name is displayed in the top bar after login. Instead of the login (username), users can choose to display either their email address or their full name (first and last name). Each user can also customize this setting in their user profile.

  • Settings → ADFS:

    • Title: Optional custom text for the login button for users using ADFS.

Version 2.4.0

Necessary manual upgrade steps

No manual steps necessary.

However, the new Java 21 will be automatically installed, and the system's default Java version will be switched from 1.8 to 21. The application should ideally be installed on a separate dedicated server, as recommended, so this change should not affect anything. If, contrary to recommendations, other services or applications are installed and running on the server, it is necessary to verify that they still function correctly and, if needed, fix them. The old Java 1.8 remains in the system but is no longer the default. If it is not required, it can be removed.

Optionally it is now also possible to restrict access to the admin interface (/admin) not just on the application level, but also on the nginx web server level. It can be done by modifying the configuration file “/etc/nginx/sofie.d/http_admin-restriction.conf”:

# Limit access to admin gui # # Example: # # allow 10.10.10.0/24; # allow 1.1.1.1/32; # allow 8.8.8.8/32; # deny all; allow all; deny all;

Recommended configuration modifications and checks

The version 2.4 contains new or modified features. The application administrator should, after performing the upgrade, go through the following settings and consider if and how he wants to use these features:

  • Settings → User Groups:

    • Newly introduced group support. Users can now be grouped either locally within the application or by importing group memberships through mapping from an external directory (AD/ADFS/OIDC).

    • To enable group mapping from ADFS, it is necessary to add an attribute to the claims. Refer to the guide: ADFS server configuration.

    • Permissions moved from users to groups. All user permissions have been automatically migrated during the upgrade to corresponding newly created groups, of which the users are members.

    • Default permissions for new users (previously in Settings → Configuration → Users) are now moved to the default group, "default".

  • Settings → API Tokens:

  • Settings → Configuration → Users:

    • A new option, User Login - Allow direct user login, has been introduced.

  • Settings → Configuration → SFTP Server:

    • New section and functionality. This feature requires an additional license.

  • Settings → Detection Settings:

    • Internal Modules → MIME types detection, new options:

      • Maximum embedded content depth (e.g. for archives and documents)

      • Limit maximum number of embedded objects

        • Maximum number of embedded objects

    • Sandboxes:

      • A new option, “Check only selected file types”, has been added for all sandboxes. This allows limiting inspections to specified file types only (for example those that the sandbox can process).

Version 2.3.11

Necessary manual upgrade steps

If we use the new (since version 2.3.0) “Content Disarm and Reconstruction (CDR)“ module, it needs modifications for optimal function, performed by running the following commands in the command line:

# cleanup of old no longer used docker components docker stop libreoffice docker rm libreoffice docker image prune -a # activation of new necessary services (also installs and runs a new docker container) systemctl enable sofie-cdr systemctl start sofie-cdr

Version 2.3.0

Necessary manual upgrade steps

If we want to use the new “Content Disarm and Reconstruction (CDR)“ module, it needs to be installed first according to the following instructions: Installation manual

Recommended configuration modifications and checks

The version 2.3 contains new or modified features. The application administrator should, after performing the upgrade, go through the following settings and consider if and how he wants to use these features:

  • Settings → API Tokens → for individual tokens:

    • Allowed IP ranges

  • Settings → Configuration → Security:

    • new section: Access Restrictions, including:

      • Access Restrictions - IP Filter

      • Access restrictions - reverse record lookup

      • Access restrictions - country

      • Access restrictions - User-Agent header

  • Settings → Configuration → Data Encryption:

    • Key encryption keys (KEK)

      • new recommended key type: HPKE

  • Settings → Configuration → Users:

    • Default settings for new users, new permissions:

      • Set package as persistent

      • Persistent account

  • Settings → Detection Settings:

    • CDR (Content Disarm and Reconstruction)

      • new integrated engine for converting compatible content into a safe form

    • Avast, Trellix

      • newly supported antiviruses

  • Settings → ADFS:

    • new attribute: Directory (tenant) ID

      • no need to change after upgrade to work as before, for ADFS it should be “adfs”

    • newly displayed: Redirect URI

  • Settings → OpenID Connect:

    • an entirely new section allowing integration with OIDC user sources and logins (including Azure AD or Google)

Version 2.2.0

Necessary manual upgrade steps

No manual steps necessary.

Recommended configuration modifications and checks

The version 2.2 contains new or modified features. Also the structure of the Settings → Configuration menu has undergone serious overhaul. The application administrator should, after performing the upgrade, go through the following settings and consider if and how he wants to use these features:

  • Settings → Users → for individual users:

    • User’s email aliases

    • Set approvers

  • Settings → Configuration → Basic:

    • Configuration management - Configuration export

  • Settings → Configuration → Packages → General:

    • Users can use the briefcase

    • Users can create cooperative packages

  • Settings → Configuration → Packages → Expiration:

    • Shredded packages

      • Automatically delete metadata about shredded packages

      • Expiration of shredded packages' metadata

  • Settings → Configuration → Packages → Access control:

    • Closed environment

      • IP ranges of the closed environment

      • Allow closed → closed transfer

      • Allow closed → open transfer

      • Allow open → closed transfer

      • Allow open → open transfer

      • Allow upload of packages from the closed environment

      • Allow upload of packages from an open environment

  • Settings → Configuration → Packages → Approval of sending:

    • Preferred approver

    • A user can choose his approvers

    • An approver can access all packages that require approval

  • Settings → Configuration → Users:

    • Default settings for new users, new permissions:

      • Use the briefcase

      • Access all packages that require approval

      • Select the approver of packages to be sent

      • Access to detailed check results

      • Create cooperative packages

    • Access detailed results of file checks

      • Logged in users

      • Anonymous users

  • Settings → Configuration → Logging:

    • Retention of audit logs

      • Automatically delete old audit logs

      • Delete audit logs older than

  • Settings → Templates:

    • Modified some existing default templates.

  • Settings → Detection settings:

    • MIME

      • Maximum number of stored records of detected objects

Version 2.1.0

Necessary manual upgrade steps

Since this version the structure of the nginx configuration was substantially modified and also the update and upgrade process was improved in such a way, that in most cases no manual intervention should be necessary. For this improved automation to work correctly, it is required that the installation adheres to the instructions from the installation manual, including:

  • The installation should be done on a dedicated server only for this purpose. Especially it should not contain any manual modifications to the nginx configuration. If it does contain such manual modifications, those will be overwritten during the upgrade to the version 2.1 and the administrator will have to manually fix it or do again.

  • If a custom own SSL/TLS certificate for HTTPS is used, it is expected it will be in the default path mentioned in the installation manual. If another path for the key/certificate was used, the same thing as above in the case of custom nginx modifications applies (will be overwritten and will need manual fix).

The upgrade specifically overwrites the files /etc/nginx/conf.d/default.conf and /etc/nginx/nginx.conf. But it creates a backup of the original files before overwriting them, which look like this:

/etc/nginx/conf.d/default.conf.18048.2022-09-05@09:16:45~ /etc/nginx/nginx.conf.17998.2022-09-05@09:16:43~

Recommended configuration modifications and checks

The version 2.1 contains new or modified features. The application administrator should, after performing the upgrade, go through the following settings and consider if and how he wants to enable and use the new features:

  • Settings → Configuration → Basic settings:

    • Allowed languages for administrators

    • Allowed languages for users

  • Settings → Configuration → Security:

    • new section: Password rules for packages, including:

      • Mandatory package password - not logged in user

      • Mandatory package password - logged in user

    • Login and authorization lifetime:

      • Validity period of one access to a package with a limited number of accesses

  • new section: Settings → Configuration → Security limits, including:

    • section Limit authentication attempts

    • section Limit password reset requests

    • section Limit attempts to access a password protected package

    • section Limit attempts to access a password protected request

    • section Limit attempts to access a non-existent package

    • section Packages with a limited number of accesses

  • Settings → Configuration → Notifications:

    • new section: Approval of sent packages

    • System notifications

      • Notify when the detection engine's quota is exceeded

  • Settings → Configuration → Appearance:

    • new section: Display the terms of use

  • Settings → Configuration → User settings:

    • Default settings for new users, new permissions:

      • Do not enforce a multifactor authentication

      • Approve sending of packages

      • Send packages without additional approval

      • Send packages to yourself

      • Download files from own sent packages

    • new section: Multifactor authentication:

      • Require multifactor authentication for local users

      • Require multifactor authentication for AD users

      • Require multifactor authentication for ADFS users

    • new section: User restrictions by IP ranges

    • new section: Settings for sent packages, including:

      • Users can send packages to themselves

      • Users can download files from their own sent packages

      • Users can send packages without approval

      • Allow access to packages being approved without requiring their password

  • Settings → E-mail templates renamed to Templates:

    • Modified some existing default templates.

    • Created new templates: DETECTION_ENGINE_QUOTA_EXCEEDED, EMAIL_TEMPLATE_CSS, EMAIL_TEMPLATE_PREFIX, EMAIL_TEMPLATE_SUFFIX, PACKAGE_APPROVE_REQUEST, SEND_PACKAGE_APPROVED, SEND_PACKAGE_DISAPPROVED, TERMS_OF_USE.

Version 2.0.3

Necessary manual upgrade steps

  • Edit the file /etc/nginx/proxy.conf and add the following line to the end:

    proxy_buffering off;

After this change it is necessary to restart or reload nginx:

systemctl restart nginx

Version 2.0.0

Necessary manual upgrade steps

Particularly because of the changed behavior, where the downloaded files are no longer served directly by nginx, but by the SOFiE application itself, the nginx configuration must be changed in the following way:

  • Delete the files:

    • /etc/nginx/download-auth.conf

    • /etc/nginx/download.conf

  • Modify the file: /etc/nginx/conf.d/default.conf

    • Delete the sections:

      location /api/ { client_max_body_size 0; proxy_pass http://127.0.0.1:9090/api/; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; proxy_request_buffering off; } location ~/admin/download-file/(.+) { include download.conf; auth_request /download-file-auth-admin; } location ~/admin/download-archive/(.+) { include download.conf; auth_request /download-file-auth-admin; } location ~/download-file/(.+) { include download.conf; auth_request /download-file-auth-user; } location ~/download-archive/(.+) { include download.conf; auth_request /download-file-auth-user; } location /download-file-auth-user { include download-auth.conf; proxy_pass http://127.0.0.1:9090/api/user$request_uri; } location /download-file-auth-admin { include download-auth.conf; proxy_pass http://127.0.0.1:9090/api$request_uri; }
    • In their place add the following new sections:

      add_header X-Content-Type-Options "nosniff"; add_header Referrer-Policy "same-origin"; location /api/ { set $x_uri_suffix ""; include proxy.conf; } location /admin/download-file/ { set $x_uri_suffix "/api"; include proxy.conf; } location /admin/download-archive/ { set $x_uri_suffix "/api"; include proxy.conf; } location /download-file/ { set $x_uri_suffix "/api/user"; include proxy.conf; } location /download-archive/ { set $x_uri_suffix "/api/user"; include proxy.conf; }
  • Create a new file: /etc/nginx/proxy.conf with the following contents:

    client_max_body_size 0; proxy_pass http://127.0.0.1:9090$x_uri_suffix$request_uri; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; proxy_request_buffering off;

After those changes it is necessary to restart or reload nginx:

systemctl restart nginx

Recommended configuration modifications and checks

The version 2.0 contains a lot of new or modified features. The application administrator should, after performing the upgrade, go through the following settings and consider if and how he wants to enable and use the new features:

  • Settings → Configuration → Basic settings:

    • Allow adding of files to a sent package

    • Allow deleting of files from a sent package

  • Settings → Configuration → Security:

    • Separated password rules for administrators and users, including new feature:

      • Forbid leaked passwords usage

    • Login and authorization lifetime

  • Settings → Configuration → Data encryption:

    • whole new section with configuration for a new functionality

  • Settings → Configuration → Data integrity:

    • whole new section with configuration for a new functionality

  • Settings → Configuration → Logging:

    • The language of syslog records (determined by the default language before)

  • Settings → Configuration → E-mail:

    • A Primary and optionally a secondary language (determined by the default language before)

  • Settings → Configuration → Notifications:

    • new section System notifications

  • Settings → Configuration → User settings:

    • new user permission “Encrypt outgoing packages with a password“

    • new feature “Disable inactive users“

    • new feature “Delete inactive users“

  • Settings → Administrators → add/edit an administrator:

    • new administrator permissions for the new package encryption feature

  • Settings → Users → user permissions:

    • new user permission for the new package encryption feature

  • Settings → Users → add/edit a user:

    • User’s preferred language - affects e-mails sent to the user (determined by the default language before)

    • Temporary user feature - enables an automatic account deletion after the selected date

  • Settings → E-mail templates:

    • Modified some existing default templates.

    • Created a number of new templates.

  • Settings → Detection settings:

    • new anti-virus support: FortiClient (installation and license handled separately from the SOFiE application)

Versions 1.6 and older

These older versions do not have public upgrade notes. All upgrades were performed in close cooperation with Sonpo or a partner.

Special Cases

In particular, if it is necessary to upgrade the operating system to a new version (RHEL7 → RHEL9) due to the end of support for the old version, or to upgrade the application database (PostgreSQL) or another key component (Kafka) outside of the SOFiE application itself, we recommend the following procedure Migration of SOFiE to a new server .