Skip to content

Our first adapter: malware scanning#363

Merged
maxjmohr merged 16 commits into
devfrom
320-malware-scanning
May 8, 2026
Merged

Our first adapter: malware scanning#363
maxjmohr merged 16 commits into
devfrom
320-malware-scanning

Conversation

@maxjmohr
Copy link
Copy Markdown
Collaborator

@maxjmohr maxjmohr commented May 5, 2026

Description

This is our first adapter, extending the core functionality of TruSpace: malware scanning via clamAV.
If activated, on document upload and whenever uploading a new version, the file is scanned using clamAV. The scan results are now also stored in DocumentMeta. Only if the scan is successful, the file is uploaded, otherwise a dialog opens in the frontend explaining that the document is not secure and cannot be uploaded.
clamAV is spun up using Docker (./docker-compose-malware.yml).

Documents that are not scanned at all will have a small badge indicating this, as well as those that are scanned.

Testing Instructions

Run the application with and without malware scanning (MALWARE_SCANNING_ENABLED in .env) and check whether malware scanning works.

Type of Change

Please delete options that are not relevant.

  • ✨ New feature

Screenshots

If activated, app status shows status of malware scanning

image

Only if activated, documents are scanned, are others are not scanned (there is no "malware found" because those documents aren't uploaded at all)

image

Toast appears when malware is found

IMG_3684

Related Issue

Closes #320

@maxjmohr maxjmohr self-assigned this May 5, 2026
@maxjmohr maxjmohr added the enhancement New feature or request label May 5, 2026
@maxjmohr maxjmohr marked this pull request as ready for review May 7, 2026 14:11
@maxjmohr maxjmohr requested a review from michaelhorvath May 7, 2026 14:11
@maxjmohr maxjmohr linked an issue May 8, 2026 that may be closed by this pull request
@maxjmohr maxjmohr merged commit a159ec7 into dev May 8, 2026
2 checks passed
@maxjmohr maxjmohr deleted the 320-malware-scanning branch May 8, 2026 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Malware and virus scanning on uploaded files needed

2 participants