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

Task/53048 134 documentation virus scanning functionality (#14894)

Maya Berdygylyjova8b5ee21a9e89
diff --git a/docs/system-admin-guide/attachments/README.md b/docs/system-admin-guide/attachments/README.md
new file mode 100644
index 00000000000..e869b21f204
--- /dev/null
+++ b/docs/system-admin-guide/attachments/README.md
@@ -0,0 +1,38 @@
+---
+sidebar_navigation:
+ title: Attachments
+ priority: 955
+title: Attachments in OpenProject
+description: Attachment settings and virus scanning in OpenProject
+keywords: Attachment, attachment settings, virus scanning, clamav
+
+---
+
+# Attachments in OpenProject
+
+In OpenProject you can determine the maximum attachment size and activate the virus scanning functionality. To do that navigate to **System Administration** and select **Attachments**
+
+![Navigation to attachment settings in OpenProject](openproject_system_adminstration_attachments.png)
+
+
+
+## Attachment settings
+
+1. Here you can increase or decrease **maximum attachment size** (in kB).
+
+2. The box next to **Attachment upload whitelist** is an open-entry text box in which some common file formats are pre-populated by default. The file formats in this list are specifically whitelisted or allowed to be attached to work packages.
+ If you wish, you can add additional file formats. Use only one file format entry per line, and keep to the following cadence:
+
+ `*****.[**file extension**]`
+
+ Example: To add mp3-files to the whitelist, your entry would be `***.mp3**`.
+
+3. Do not forget to **save** your changes.
+
+ ![attachment settings](openproject_system_adminstration_attachment_settings.png)
+
+
+
+## Virus scanning (Enterprise-add-on)
+
+For information about virus scanning, please see the [documentation on virus scanning](./virus-scanning/).
diff --git a/docs/system-admin-guide/attachments/openproject_system_adminstration_attachment_settings.png b/docs/system-admin-guide/attachments/openproject_system_adminstration_attachment_settings.png
new file mode 100644
index 00000000000..9700924b171
Binary files /dev/null and b/docs/system-admin-guide/attachments/openproject_system_adminstration_attachment_settings.png differ
diff --git a/docs/system-admin-guide/attachments/openproject_system_adminstration_attachments.png b/docs/system-admin-guide/attachments/openproject_system_adminstration_attachments.png
new file mode 100644
index 00000000000..b976b79b392
Binary files /dev/null and b/docs/system-admin-guide/attachments/openproject_system_adminstration_attachments.png differ
diff --git a/docs/system-admin-guide/attachments/settings/README.md b/docs/system-admin-guide/attachments/settings/README.md
deleted file mode 100644
index de3050c04c1..00000000000
--- a/docs/system-admin-guide/attachments/settings/README.md
+++ /dev/null
@@ -1,30 +0,0 @@
----
-sidebar_navigation:
- title: Attachments settings
- priority: 940
-title: Attachments settings
-description: Settings for max attachment size and allowed file types
-keywords: Attachments Settings
-
----
-
-# Attachments - Max size and allowed file types
-
-1. Here you can increase or decrease **maximum attachment size** (in kB)
-
-2. The box next to **Attachment upload whitelist** is an open-entry text box in which some common file formats are pre-populated by default. The file formats in this list are specifically whitelisted or allowed to be attached to work packages.
- If you wish, you can add additional file formats. Use only one file format entry per line, and keep to the following cadence:
-
- `*****.[**file extension**]`
-
- Example: To add mp3-files to the whitelist, your entry would be `***.mp3**`.
-
-2. Do not forget to **save** your changes.
-
- ![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
deleted file mode 100644
index 2c82b649593..00000000000
Binary files a/docs/system-admin-guide/attachments/settings/image-20240220-hgce.png and /dev/null differ
diff --git a/docs/system-admin-guide/attachments/virus-scanning/README.md b/docs/system-admin-guide/attachments/virus-scanning/README.md
index a06ae0c5e8c..ac0812ea4d7 100644
--- a/docs/system-admin-guide/attachments/virus-scanning/README.md
+++ b/docs/system-admin-guide/attachments/virus-scanning/README.md
@@ -8,7 +8,8 @@ keywords: Virus scanning, clamav
---
-# Virus scanning
+# Virus scanning (Enterprise add-on)
+> **Note**: This functionality is an Enterprise add-on. It is currently not available on the Hosted Enterprise Cloud.
You can configure OpenProject to automatically scan uploaded attachments for viruses using the [ClamAV antivirus](https://www.clamav.net/) engine.
@@ -16,12 +17,6 @@ ClamAV can detect different kinds of harmful software such as viruses and worms.
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.
@@ -101,47 +96,41 @@ In both these cases, use the `ClamAV (Host)` option with `clamav:3310` as the ho
## Configuration in OpenProject
-To enable the virus scanning functionality, visit Administration > Attachments > Virus scanning.
+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.
+ - **Disabled**: Uploaded files will not be scanned for viruses.
+ - **ClamAV (Socket)**: A local socket for installed packages or locally mounted docker sockets will be used.
+ - **ClamAV (Host)**: A TCP connection to the clamd daemon will be used.
2. **Socket or Host value.**
- - This value is only shown when Scan mode is not disabled.
+ - This value is only shown when Scan mode is enabled.
- 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)
-
+
+ Here you can select the action to take place when a virus was found:
+
+ - **Quarantine the file**: quarantined files will be displayed under *Administration > Attachments > Quarantined attachments* for review or deletion.
+ - **Delete the file directly**.
+![Virus scanning settings socket](openproject_system_settings_virus_scanning.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.
-
-
+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 this window remains open, it will provide notifications regarding any detected viruses upon completion. Depending on the number of existing attachments, this initial scan may require 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.
+If the virus scanning mode has been enabled, all uploaded attachments will be 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.
+> **Note**: While attachments are in the process of 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.
diff --git a/docs/system-admin-guide/attachments/virus-scanning/openproject_system_settings_virus_scanning.png b/docs/system-admin-guide/attachments/virus-scanning/openproject_system_settings_virus_scanning.png
new file mode 100644
index 00000000000..cee2c77825c
Binary files /dev/null and b/docs/system-admin-guide/attachments/virus-scanning/openproject_system_settings_virus_scanning.png differ
diff --git a/docs/user-guide/file-management/file-management-faq/README.md b/docs/user-guide/file-management/file-management-faq/README.md
index 7317c4db1af..0589a0a2293 100644
--- a/docs/user-guide/file-management/file-management-faq/README.md
+++ b/docs/user-guide/file-management/file-management-faq/README.md
@@ -17,4 +17,8 @@ Another explanation may be that you have been removed from a project in OpenProj
It can also be that case, that a project admin revoked your permission to view files on file storages within a project in OpenProject.
## Can I rename a project with an established file storage (Nextcloud or OneDrive/SharePoint) connection?
-Yes, that is possible. If you work with automatically managed folders, the corresponding project folder will also be renamed automatically after a few minutes.
\ No newline at end of file
+Yes, that is possible. If you work with automatically managed folders, the corresponding project folder will also be renamed automatically after a few minutes.
+
+## Is there a virus scanner for the files attachments in OpenProject?
+
+Yes, there is a virus scanner for attachments in OpenProject. At the moment it is only available for on-premises installations and is an Enterprise add-on. Your system administrator will need to [configure it first](../../../system-admin-guide/attachments/virus-scanning).