Ability to scan a file before it's uploaded.
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
Research direction
Start by reviewing the waiting PR mentioned in the issue, since the requested work is already under way. Check that it adds an endpoint to scan a file body, optionally with an encrypted component, using the same check as download routes without the content repository; existing download scanning should remain in place.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
Some users would prefer to have their client scan on upload rather than just download, to prevent problematic files appearing on the server in the first place. This seems reasonable enough.
Describe the solution you'd like
An endpoint to scan a body of a file (optionally with an encrypted component) which performs the same check as the download routes, without having to use the content repository.
Describe alternatives you've considered
A transparent proxy to the CS /upload endpoint was considered but rejected. Clients could bypass the scanning with an encrypted file, so this needs to be done as two steps. One step for the client to test their file on the content scanner, and then once successful to upload the file to the homeserver. Scanning on download will remain in place for other clients so the upload scan merely serves as a friendly protection to the uploader.
Additional context
I have a PR for this in waiting, I do not expect any development other than review :)
- Dominant language
- Python
- Stars
- 25
- Forks
- 16
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 12
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from element-hq/matrix-content-scanner-python
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
element-hq/matrix-content-scanner-python#162 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
element-hq/matrix-content-scanner-python#77 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
element-hq/matrix-content-scanner-python#56 · 2 reactions ·
All issues in element-hq/matrix-content-scanner-python
Similar issues
-
area: harness bug status: needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Human-Agent-Society/reef#625 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
learningequality/kolibri#15351 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Name consistency Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
eellak/triplestore#65 · 1 comment ·