Commit Graph

48 Commits

Author SHA1 Message Date
Phil Davis
f600fa8fd7 chore: set introductionVersion 5.0 in antivirus audit audit-service 2024-03-07 13:51:37 +05:45
Phil Davis
d27e33a1bd chore: add introductionVersion pre5.0 to environment variable docs 2024-03-07 13:51:37 +05:45
mmattel
6e721eb4f5 [docs-only] Fix envvar descriptions trailing a double dot 2024-02-06 11:52:10 +01:00
jkoberg
3e55223f2d allow authentication for events
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-12-19 10:44:05 +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
Martin
80b5a6bbe7 Update services/audit/pkg/config/config.go 2023-11-08 15:48:12 +01:00
mmattel
ed3ae669b6 fix typo 2023-11-08 15:32:02 +01:00
mmattel
01bbdde09a [docs-only] Fix some Audit envvar description texts 2023-11-08 15:28:31 +01:00
jkoberg
1f1aa50c54 hard exit when services fail
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-09-21 13:53:18 +02:00
jkoberg
49cdcad129 unify eventstream creation
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-08-16 10:14:12 +02:00
mmattel
6ad53971ef [docs-only] Increase readability for log level values in the description 2023-07-07 10:33:42 +02:00
mmattel
d7b447b791 [docs-only] Increase readability for tracing values in the description 2023-07-07 09:50:39 +02:00
Ralf Haferkamp
c9a9fddef1 Consitently switch to stretchr/testify
We were using stretchr/testify and test-go/testify inconsitently and
sometimes mixed in the same tests. This can cause very strange issue,
e.g when using things like mock.MatchedBy().

This moves all our code to stretchr/testify, which seems to be far
more active and maintained then test-go/testify.
2023-06-29 13:44:49 +02:00
Christian Richter
6d9ad6fcf5 fix tests & bump reva
Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-06-19 14:45:45 +02:00
Christian Richter
14a66a98f1 add token to LinkAccessedEvent
Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-06-19 13:53:05 +02:00
Christian Richter
2d60212e12 incorporate requested changes
Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-06-19 11:16:44 +02:00
Christian Richter
a8934c3655 make linter happy
Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-06-19 08:04:34 +02:00
Christian Richter
a3b8a7742a fix tests
Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-06-19 07:45:04 +02:00
Christian Richter
53dcd93818 add storage id to audit log for spaces
Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-06-19 07:30:00 +02:00
Christian Richter
a7b2193571 fix tests
Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-06-13 16:48:58 +02:00
Christian Richter
f1d0caa72b add missing timestamps to audit service
Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-06-13 16:07:27 +02:00
Christian Richter
18e3b415bf Add timestamps to ShareRemoved & ContainerCreated event 2023-06-13 15:13:19 +02:00
jkoberg
d347448ec0 remove duplicated sutureservice code
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-06-02 12:02:27 +02:00
jkoberg
70391a0bf2 unify CACERT envvars
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2023-05-25 13:32:37 +02:00
Ralf Haferkamp
b20d65177f Fix debug port of audit to not conflict with nats
Also add "audit" service to the port ranges table
2023-05-02 14:13:14 +02:00
Christian Richter
a4df08e0ab add debug to audit
Signed-off-by: Christian Richter <crichter@owncloud.com>
2023-04-27 15:19:33 +02:00
Roman Perekhod
fcfb2ab9fa Introduced global OCIS_EVENTS_ENDPOINT and OCIS_EVENTS_CLUSTER #5901 2023-04-04 15:43:03 +02:00
Jörn Friedrich Dreyer
9b00f02383 bump reva to ec27f5f8feb3
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2023-02-15 15:26:07 +00:00
jkoberg
b29ffeb3a9 use stream pkg instead server pkg
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-12-20 09:53:11 +01:00
Andre Duffeck
1b764d2142 Handle more events (#5071)
* Handle SpaceShared events

* Adapt to changed ID in the SpaceShared event

* Handle the SpaceUnshared events

* Handle the SpaceUpdated event

* update reva to latest edge

* fix typo

* Disable cyclomatic complexity check for StartAuditLogger

Co-authored-by: Michael Barz <mbarz@owncloud.com>
2022-11-23 14:00:29 +01:00
Jörn Friedrich Dreyer
0f7dba53fb use min tls 1.2 (#4969)
* use min tls 1.2

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* add changelog

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-11-03 16:08:56 +01:00
Michael Barz
ec764ea5b1 improve the description of the help texts 2022-10-21 12:50:03 +02:00
David Christofas
45b92fc56f add config option to enable or disable TLS for nats 2022-10-21 12:40:21 +02:00
David Christofas
4623b6c8e7 Nats tls (#4781)
* use tls for nats connections

* add config options for nats client tls config

* add nats tls config to CI

* add function to create a certpool

* add option to provide a rootCA to validate the server's TLS certificate

* add option to provide a rootCA to validate the server's TLS certificate

* add option to provide a rootCA to validate the server's TLS certificate

* add option to provide a rootCA to validate the server's TLS certificate

* configure nats clients in reva to use tls
2022-10-12 14:56:47 +02:00
Christian Richter
0422af2a11 handle spaceshared event
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-09-22 09:38:11 +02:00
Willy Kloucek
9f2be9f4f9 remove Log prefix from configlog functions 2022-08-22 08:08:18 +02:00
Willy Kloucek
e58eaabdeb move config parse error logging into function to ensure new lines and don't parse config for help 2022-08-18 15:27:28 +02:00
Willy Kloucek
46706fff32 Merge pull request #4407 from wkloucek/rename-extensions-to-services-reloaded
rename extensions to services (leftover occurences)
2022-08-18 14:03:20 +02:00
Willy Kloucek
60689c9c1a improve unsupervised description 2022-08-18 10:59:35 +02:00
Willy Kloucek
6154466bbc rename extensions to services (leftover occurences) 2022-08-17 15:36:52 +02:00
jkoberg
152ce60d87 fix audit service
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-08-17 14:20:05 +02:00
jkoberg
e56632681b update description for event structs
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-07-21 10:27:43 +02:00
Ralf Haferkamp
946f3e8feb Remove unused BindEnv code
We dropped this in favour of envdecode a while ago.
2022-07-14 16:34:25 +02:00
Michael Barz
2a113e9f7d use spaceID 2022-07-11 10:44:09 +02:00
mmattel
246377b35b Env variable text fixes 2022-07-07 19:53:27 +05:45
Ralf Haferkamp
4a09d8a948 Remove redundant setting of cli.HelpFlag
The help flag is configured automatically by default already. We don't
need to redo that for every single service.

This also addresses one of the finding of "go race" (#4088)
2022-07-05 14:59:06 +02:00
Christian Richter
f8f1320501 refactor extensions -> services
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-06-27 14:05:36 +02:00
Christian Richter
78064e6bab rename folder extensions -> services
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-06-27 14:05:36 +02:00