Commit Graph

28 Commits

Author SHA1 Message Date
Florian Schade
86d79430a3 chore: use wg.Go instead of add 2026-04-22 14:50:57 +02:00
Juan Pablo Villafáñez
7727c3ff1b fix: linter issue 2025-09-12 12:18:47 +02:00
Juan Pablo Villafáñez
9e1b80a1be feat: use runners to startup the services 2025-09-12 12:18:47 +02:00
Juan Pablo Villafáñez
c0b4a5daa0 chore: change constant name to camelcase 2025-09-08 17:32:36 +02:00
Juan Pablo Villafáñez
ca2dc823ef feat: use names for connections to the nats event bus 2025-09-08 17:32:35 +02:00
fschade
2164cbed51 fix(antivirus): the file bytesize differs if the file is larger than the max-scan-size which leads to a std-lib request validation error. 2025-08-27 14:36:06 +02:00
Florian Schade
bd1fc8a70b feat(antivirus): add partial scan mode
- Introduced partial mode for antivirus scanning to handle large files efficiently.
- Introduced clamAV scan timeout
2025-04-07 17:09:04 +02:00
André Duffeck
e8d35e1280 Use the opencloud reva from now on 2025-01-21 11:16:38 +01:00
Jörn Friedrich Dreyer
b07b5a1149 use plain pkg module
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-13 16:42:19 +01:00
Jörn Friedrich Dreyer
8e028f17e9 change module name
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2025-01-13 09:58:18 +01:00
Jörn Friedrich Dreyer
cb6e3c37fc fix sonarcloud bugs
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-10-22 17:18:11 +02:00
Jörn Friedrich Dreyer
775f75f7fc configurable antivirus workers
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-10-22 17:12:30 +02:00
Jörn Friedrich Dreyer
61e6f1edba make antivirus workers configurable
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-10-22 17:10:53 +02:00
jkoberg
c80ee6e844 feat(storage-users): add scandata to upload command
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2024-04-26 09:17:45 +02:00
Florian Schade
ac8676fff4 enhancement: enable icap preview mode and fix client according to the spec (#8062)
* enhancement: enable icap preview mode and use a forked icap client which fixes tcp socket keepalive

* enhancement: make use of human time for the icap timout config option

* enhancement: update icap-client

* enhancement: bump icap client library and deprecate ANTIVIRUS_ICAP_TIMEOUT env

* chore: vendor icap library

* enhancement: set preview size only if greater than 0

* Update services/antivirus/pkg/config/config.go

Co-authored-by: Martin <github@diemattels.at>

* enhancement: add changelog

---------

Co-authored-by: Martin <github@diemattels.at>
2024-01-05 20:52:26 +01:00
kobergj
377a23ee7d Non-durable SSE streams (#7986)
* make sse streams non-durable

Signed-off-by: jkoberg <jkoberg@owncloud.com>

* bump reva

Signed-off-by: jkoberg <jkoberg@owncloud.com>

---------

Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-12-18 11:47:25 +01:00
André Duffeck
c43b9d9bc6 Allow for retrying postprocessing steps with an exponential backoff 2023-12-12 14:08:21 +01:00
Daniël Franke
8b5687e811 Add tracing to antivirus.
This PR adds tracing to the Antivirus service.
2023-08-21 12:04:54 +02:00
jkoberg
49cdcad129 unify eventstream creation
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-08-16 10:14:12 +02:00
Daniël Franke
97dd855a63 Add reusable context. 2023-08-11 12:01:23 +02:00
Daniël Franke
952ebe7d7d Pass context to event publishing.
To allow tracing propagation via events, we need to pass the context
to the `Publish` function of reva events. This adds the context
everywhere where events are published. If there was no context to pass,
we started a new one with `context.Background()`.
2023-08-11 12:01:19 +02:00
jkoberg
aac793a400 add ctl command to resume postprocessing
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-06-13 10:50:07 +02:00
Christian Richter
8c2abf33e5 add debug switch for antivirus
Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-05-09 14:56:56 +02:00
Michael Barz
16d97d5393 Apply suggestions from code review
Co-authored-by: kobergj <jkoberg@owncloud.com>
2023-04-04 11:10:36 +02:00
Michael Barz
6dde3f6ef6 add more logging to antivirus 2023-04-04 09:20:56 +02:00
kobergj
1f6ddcb620 bump reva (#5921)
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-24 11:44:46 +01:00
jkoberg
81d1521751 abort processing when virus scan errord
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-22 17:34:24 +01:00
jkoberg
f4ba4e0f64 backport antivirus from experimental
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-03-21 10:04:11 +01:00