Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add documentation

Oliver Güntherebc66d1f27e9
diff --git a/docs/glossary/README.md b/docs/glossary/README.md
index 0431d25bcd6..bd18d288858 100644
--- a/docs/glossary/README.md
+++ b/docs/glossary/README.md
@@ -324,7 +324,7 @@ In OpenProject, projects can be private or public. Public means that the project
### Quick context menu
-The quick context menu in OpenProject opens when you open a [work package table](#work-package-table) and then right-click on a single work package. It allows you to perform quick actions like *open details view*, *copy link to clipboard* or *create new child*. Please note that the quick context menu differs depending on whether you are in the [Gantt charts](#gantt-chart) module or not.
+The quick context menu in OpenProject opens when you open a [work package table](#work-package-table) and then right-click on a single work package. It allows you to perform quick actions like *open details view*, *copy link to clipboard* or *create new child*. Please note that the quick context menu differs depending on whether you are in the [Gantt charts](#gantt-charts) module or not.
## R
diff --git a/docs/system-admin-guide/README.md b/docs/system-admin-guide/README.md
index 5661e98fab0..989d4b31cbd 100644
--- a/docs/system-admin-guide/README.md
+++ b/docs/system-admin-guide/README.md
@@ -21,27 +21,28 @@ Click on one of the categories in order to proceed with the configuration.
## Overview
-| Topic | Content |
-|---------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------|
-| [Users and permissions](./users-permissions) | How to manage users, groups and permissions in OpenProject. |
-| [Work packages](./manage-work-packages) | How to configure work packages, types, status and workflows. |
-| [Custom fields](./custom-fields) | Set custom fields for work packages, Spent time, projects, versions, users, groups and more. |
-| [Attribute help texts](./attribute-help-texts) | Add help texts to explain attributes (including custom fields) in projects and work packages. |
-| [Enumerations](./enumerations/) | Set enumerations, e.g. work package priorities, time tracking activities, document categories, and more. |
-| [Calendars and dates](./calendars-and-dates/) | Configure working days, dates formats and calendar subscriptions. |
-| [System settings](./system-settings/) | Configure your system settings, e.g. a welcome text block on the landing page, languages, repositories, and more. |
-| [Emails and notifications](./emails-and-notifications/) | Manage notifications and emails. |
-| [API and webhooks](./api-and-webhooks/) | Manage APIs and configure webhooks. |
-| [Authentication](./authentication) | Configure authentication methods in OpenProject, e.g. OAuth, OpenID, Two-factor-authentication, LDAP, and more. |
-| [GDPR](../enterprise-guide/enterprise-cloud-guide/gdpr-compliance/) | Review and sign a Data Processing Agreement (DPA). |
-| [Announcement](./announcement) | How to create a system announcement. |
-| [Design](./design) | Create your own design and make it compliant to your company's corporate identity, upload logo and customize colors. |
-| [Colors](./colors) | Configure colors used in the system, e.g. status colors, work package types, priorities and more. |
-| [Enterprise edition](../enterprise-guide/) | Upgrading and managing OpenProject Enterprise and other administrative topics. |
-| [Time and costs](./time-and-costs) | Configure your currency and create cost types in OpenProject. |
-| [Backlogs](./backlogs) | Configure your backlogs settings in OpenProject, e.g. story types to be displayed in the backlogs, task types, and more. |
-| [File storages - Nextcloud](./integrations/nextcloud/) | Manage and set up file storages with Nextcloud. |
-| [File storages - One Drive](./integrations/one-drive/) | Manage and set up file storages with One Drive. |
-| [Plugins](./plugins) | Manage plugins in OpenProject. |
-| [Information](./information/) | View the latest system information status. |
-| [Integrations](./integrations/) | How to integration OpenProject into other tools (eg. GitHub, Nextcloud...) |
+| Topic | Content |
+| ------------------------------------------------------------ | :----------------------------------------------------------- |
+| [Users and permissions](./users-permissions) | How to manage users, groups and permissions in OpenProject. |
+| [Work packages](./manage-work-packages) | How to configure work packages, types, status and workflows. |
+| [Custom fields](./custom-fields) | Set custom fields for work packages, Spent time, projects, versions, users, groups and more. |
+| [Attribute help texts](./attribute-help-texts) | Add help texts to explain attributes (including custom fields) in projects and work packages. |
+| [Attachments](./attachments) | Settings for attachments and virus scanning functionality in OpenProject. |
+| [Enumerations](./enumerations/) | Set enumerations, e.g. work package priorities, time tracking activities, document categories, and more. |
+| [Calendars and dates](./calendars-and-dates/) | Configure working days, dates formats and calendar subscriptions. |
+| [System settings](./system-settings/) | Configure your system settings, e.g. a welcome text block on the landing page, languages, repositories, and more. |
+| [Emails and notifications](./emails-and-notifications/) | Manage notifications and emails. |
+| [API and webhooks](./api-and-webhooks/) | Manage APIs and configure webhooks. |
+| [Authentication](./authentication) | Configure authentication methods in OpenProject, e.g. OAuth, OpenID, Two-factor-authentication, LDAP, and more. |
+| [GDPR](../enterprise-guide/enterprise-cloud-guide/gdpr-compliance/) | Review and sign a Data Processing Agreement (DPA). |
+| [Announcement](./announcement) | How to create a system announcement. |
+| [Design](./design) | Create your own design and make it compliant to your company's corporate identity, upload logo and customize colors. |
+| [Colors](./colors) | Configure colors used in the system, e.g. status colors, work package types, priorities and more. |
+| [Enterprise edition](../enterprise-guide/) | Upgrading and managing OpenProject Enterprise and other administrative topics. |
+| [Time and costs](./time-and-costs) | Configure your currency and create cost types in OpenProject. |
+| [Backlogs](./backlogs) | Configure your backlogs settings in OpenProject, e.g. story types to be displayed in the backlogs, task types, and more. |
+| [File storages - Nextcloud](./integrations/nextcloud/) | Manage and set up file storages with Nextcloud. |
+| [File storages - One Drive](./integrations/one-drive/) | Manage and set up file storages with One Drive. |
+| [Plugins](./plugins) | Manage plugins in OpenProject. |
+| [Information](./information/) | View the latest system information status. |
+| [Integrations](./integrations/) | How to integration OpenProject into other tools (eg. GitHub, Nextcloud...) |
diff --git a/docs/system-admin-guide/system-settings/attachments/README.md b/docs/system-admin-guide/attachments/settings/README.md
similarity index 83%
rename from docs/system-admin-guide/system-settings/attachments/README.md
rename to docs/system-admin-guide/attachments/settings/README.md
index 55de2204011..de3050c04c1 100644
--- a/docs/system-admin-guide/system-settings/attachments/README.md
+++ b/docs/system-admin-guide/attachments/settings/README.md
@@ -21,5 +21,10 @@ keywords: Attachments Settings
2. Do not forget to **save** your changes.
- ![attachment settings](image-20220125124252869.png)
+ ![attachment settings](image-20240220-hgce.png)
+
+
+# Virus scanning
+
+For information about virus scanning, please see the [documentation on virus scanning](../virus-scanning/)
diff --git a/docs/system-admin-guide/attachments/settings/image-20240220-hgce.png b/docs/system-admin-guide/attachments/settings/image-20240220-hgce.png
new file mode 100644
index 00000000000..2c82b649593
Binary files /dev/null and b/docs/system-admin-guide/attachments/settings/image-20240220-hgce.png differ
diff --git a/docs/system-admin-guide/attachments/virus-scanning/README.md b/docs/system-admin-guide/attachments/virus-scanning/README.md
new file mode 100644
index 00000000000..a06ae0c5e8c
--- /dev/null
+++ b/docs/system-admin-guide/attachments/virus-scanning/README.md
@@ -0,0 +1,150 @@
+---
+sidebar_navigation:
+ title: Virus scanning
+ priority: 940
+title: Virus scanning
+description: Settings for scanning attachments for viruses within OpenProject
+keywords: Virus scanning, clamav
+
+---
+
+# Virus scanning
+
+You can configure OpenProject to automatically scan uploaded attachments for viruses using the [ClamAV antivirus](https://www.clamav.net/) engine.
+
+ClamAV can detect different kinds of harmful software such as viruses and worms. It works on many types of files, such as those used in Windows, Linux, and Mac computers, as well as zipped files, program files, pictures, Flash, PDFs, and more.
+
+If you're using ClamAV locally, it comes with a helper tool called Freshclam that regularly updates its list of known threats to keep it current. It is crucial to keep the virus definitions updated for appropriate protection against malware.
+
+
+> **Note**: This functionality is an enterprise add-on. It is currently not available on the Hosted Enterprise Cloud.
+
+
+
+
+## Installing ClamAV
+
+To be able to use the antivirus integration in OpenProject, you need to first install ClamAV on your environment.
+
+### Packaged installations
+
+On a packaged installation, you can simply install ClamAV locally on your distribution. For more information, please see [information on ClamAV packages](https://docs.clamav.net/manual/Installing/Packages.html) and the [general installation documentation from ClamAV](https://docs.clamav.net/manual/Installing.html).
+
+When installed as a package on the same server, you can configure OpenProject to use the `ClamAV socket` mode of operation, which uses a local unix socket to communicate with ClamAV.
+
+
+
+**Debian, Ubuntu distributions**
+
+ClamAV is part of the standard packages and can be installed as a daemon just like this:
+
+```bash
+apt-get install clamav clamav-daemon
+```
+
+The installer will launch a `clamd` daemon that can be used to transmit files to the daemon for scanning. A `freshclam` daemon is also started to ensure the definitions are kept up-to-date. In any case, double-check the configuration and ensure they are running.
+
+
+
+**RHEL Linux, Centos**
+
+On RedHad Enterprise Linux and Centos, you need to install the epel-release packages first, followed by ClamaV
+
+```
+dnf install -y epel-release
+dnf install -y clamav clamd clamav-update
+```
+
+For these distributions, you need to manually create the configuration files for `freshclam` and `clamd`. For more information, see https://docs.clamav.net/manual/Installing.html#rpm-packages-for-centos-redhat-fedora-suse-etc
+
+
+
+### Docker
+
+To run ClamAV in Docker, follow this guide: https://docs.clamav.net/manual/Installing/Docker.html.
+
+As a quick-start, you can use this command to start clamav with local volume mounts for the virus database:
+
+```bash
+docker run -it --rm \
+ --name clamav \
+ --publish 3310
+ --mount source=clam_db,target=/var/lib/clamav \
+ clamav/clamav:stable_base
+```
+
+This will publish the `clamd` TCP connection on port `3310`.
+
+
+
+**Docker-Compose**
+
+On docker compose, you can register clamav as a separate service to have hostname resolution:
+
+```
+... other configuration
+services:
+ clamav:
+ image: "clamav/clamav:stable_base"
+ container_name: "clamav"
+ ports:
+ - "3310:3310"
+ volumes:
+ # Virus DB
+ - /var/docker/clamav/virus_db/:/var/lib/clamav/
+ restart: unless-stopped
+```
+
+In both these cases, use the `ClamAV (Host)` option with `clamav:3310` as the host value.
+
+
+
+## Configuration in OpenProject
+
+To enable the virus scanning functionality, visit Administration > Attachments > Virus scanning.
+
+You will see the following options:
+
+1. **Virus scan mode**
+ - Disabled: No virus scanning takes place.
+ - ClamAV (Socket): Use the local socket for installed packages or locally mounted docker sockets.
+ - ClamAV (Host): Use a TCP connection to the clamd daemon.
+2. **Socket or Host value.**
+ - This value is only shown when Scan mode is not disabled.
+ - Enter the path to the local socket or `hostname:port` for the host mode according to the ClamAV installation documentation.
+3. **Infected file action**
+ - Here you can select the action to take place when a virus was found
+ - Quarantine the file. Quarantined files are showing up under Administration > Attachments > Quarantined attachments for review or deletion.
+ - Delete the file directly
+
+
+
+![Virus scanning settings socket](image-20240220-iedi.png)
+
+
+
+### When enabling for the first time
+
+If you have an existing installation of OpenProject, enabling the option will first perform a liveliness check of the connection parameters to ClamAV. An error will be shown if OpenProject cannot connect to ClamAV. In this case, you need to verify the settings and socket/host value in the administration.
+
+If the connection was made successfully, all existing files that have not been scanned before, will be scanned for viruses. This will take place in the background, and you will be redirected to a job status screen to inform you when this is done. If you leave this window open, it will inform you at the end about any found viruses. Depending on the number of existing attachments, this initial scan might take some time to process.
+
+
+
+### Disabling virus scanning
+
+If you disable virus scanning with some files still being in quarantine, a notice will be shown to inform you about that fact. These files will remain in quarantine until you delete them.
+
+
+
+## Usage in OpenProject
+
+When the virus scanning mode has been enabled, all uploaded attachments are being scanned for viruses automatically.
+
+> **Note**: While attachments are in the process being scanned, they are only accessible to the original author. As soon as they are scanned without any findings, they are made accessible to all other users.
+
+If viruses are found, they are treated according to the *Infected file action* setting.
+
+- Quarantine: The files are still visible in the container (e.g., in the work package they were uploaded in), but are no longer accessible. A comment is made to inform users about it.
+- Delete: The file is deleted straight away. A comment is made to inform the users about it.
+
diff --git a/docs/system-admin-guide/attachments/virus-scanning/image-20240220-iedi.png b/docs/system-admin-guide/attachments/virus-scanning/image-20240220-iedi.png
new file mode 100644
index 00000000000..42f26c07fec
Binary files /dev/null and b/docs/system-admin-guide/attachments/virus-scanning/image-20240220-iedi.png differ
diff --git a/docs/system-admin-guide/system-settings/README.md b/docs/system-admin-guide/system-settings/README.md
index 8d5c6d81227..8470bc726db 100644
--- a/docs/system-admin-guide/system-settings/README.md
+++ b/docs/system-admin-guide/system-settings/README.md
@@ -21,6 +21,5 @@ To modify these settings, navigate to **Administration → System settings**.
| [General](general-settings) | How to configure general system settings, e.g. a welcome text block on the application landing page, attachment size, and much more. |
| [Languages](languages) | How to configure languages. |
| [Project](project-system-settings) | Settings for new projects. |
-| [Attachments](attachments) | Settings for attachments. |
| [Repositories](repositories) | How to integrate SVN or GIT repositories. |
diff --git a/docs/system-admin-guide/system-settings/attachments/image-20220125124252869.png b/docs/system-admin-guide/system-settings/attachments/image-20220125124252869.png
deleted file mode 100644
index a6b5de856ad..00000000000
Binary files a/docs/system-admin-guide/system-settings/attachments/image-20220125124252869.png and /dev/null differ