Commit Graph

61 Commits

Author SHA1 Message Date
Ralf Haferkamp
537bceb9d8 audit: workaround unstable prototext string representation
The prototext formater (used by '.String()') inserts spaces randomly
(see: https://protobuf.dev/reference/go/faq/#unstable-text).
2024-07-11 16:32:29 +02:00
Ralf Haferkamp
ff6674f97b Fix fallout of reva bump
reva tries to avoid copying proto messages now. This changed some calls
to take pointers now (mainly e.g. FormatResourceId())
2024-07-11 15:21:56 +02:00
Roman Perekhod
eac5eaea8f Add the backchannel logout event 2024-06-25 12:13:24 +02:00
Thomas Müller
a8cbc612cc chore: remove unused return value from BindSourcesToStructs (#9033) 2024-04-30 18:18:31 +02:00
Thomas Müller
07f0cd5574 fix: typos, naming clashes, error messages and deprecations 2024-04-03 15:34:36 +02:00
Phil Davis
baa19a6868 chore: set introductionVersion 5.0 in antivirus audit audit-service 2024-03-06 17:50:20 +05:45
Phil Davis
9d2be66a85 chore: add introductionVersion pre5.0 to environment variable docs 2024-03-06 17:50:20 +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
Martin
9e5f18b6d9 Fix typo in audit service readme
References: https://github.com/owncloud/docs-ocis/pull/452

`autit` --> `audit`
2023-04-14 09:30:24 +02:00
mmattel
b2504035e0 fix readme service names 2023-04-12 18:40:41 +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
David Christofas
23a41f7d0f renaming of the simple format 2022-11-30 16:32:49 +01:00
mmattel
a0c06d733d update readme 2022-11-30 16:24:57 +01:00
Martin
35e5c6aeda Update services/audit/README.md 2022-11-30 16:18:25 +01:00
Edith Parzefall
ced6820d7a Update services/audit/README.md 2022-11-30 15:41:41 +01:00
Edith Parzefall
e554f7b4ee Apply suggestions from code review
Co-authored-by: Martin <github@diemattels.at>
2022-11-30 15:39:54 +01:00
David Christofas
943e9dfbba add a README to the audit package 2022-11-30 13:28:40 +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