Skip to content

Add support to validate attachment uploads by an external program#4637

Merged
xet7 merged 2 commits intowekan:masterfrom
NotTheEvilOne:pr/support-upload-anti-virus-verification
Aug 16, 2022
Merged

Add support to validate attachment uploads by an external program#4637
xet7 merged 2 commits intowekan:masterfrom
NotTheEvilOne:pr/support-upload-anti-virus-verification

Conversation

@NotTheEvilOne
Copy link
Copy Markdown
Contributor

This PR adds support to WeKan to validate attachment uploads by an external program. It is expected that the program deleted / moves files based on its purpose. Please note that for the functionality a proper file name sanitization is expected and required. The program is executed in a shell as a sub process. The first occurrence of the placeholder {file} is replaced by the file system path.

Example:

ATTACHMENTS_UPLOAD_EXTERNAL_PROGRAM="/usr/local/bin/avscan {file}"

@xet7 xet7 merged commit 43f380c into wekan:master Aug 16, 2022
@NotTheEvilOne NotTheEvilOne deleted the pr/support-upload-anti-virus-verification branch August 19, 2022 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants