Commit Graph

326 Commits

Author SHA1 Message Date
Jörn Friedrich Dreyer 2197489c26 enable request tracking prometheus middleware in reva (#4571)
* enable request tracking prometheus middleware in reva

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

* enable metrics for ocdav

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

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-10-13 13:08:34 +02:00
mmattel 6edb44fa83 Improving the description for several environemt variables 2022-10-13 12:07:46 +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
Jannik Stehle ae982e2002 Update web to v6.0.0-rc.2 2022-10-12 09:48:09 +02:00
Benedikt Kulmann de0b8f8ee3 Revert "Set the alias link capability to false"
This reverts commit 492ac5ced4.
2022-10-11 20:55:17 +02:00
Jannik Stehle 5be83e204f Fix xpath selector for files space table 2022-10-11 15:16:15 +02:00
Jannik Stehle 95cb4b5351 Update web to v6.0.0-rc.1 2022-10-11 13:37:29 +02:00
Michael Barz cfd3e9fab7 fix master branch 2022-10-10 17:26:01 +02:00
Michael Barz dd6c60d548 fix base url for drives webURL 2022-10-10 17:07:32 +02:00
Jörn Friedrich Dreyer 1bb7d57caf index and return parentid in search report
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-10-07 10:52:14 +00:00
ownClouders c4b09b0e02 [tx] updated from transifex 2022-10-07 00:50:05 +00:00
Willy Kloucek de76dc72d4 fix env variables for JSONCS3 public driver configuration (#4593)
* fix env variables for JSONCS3 public driver configuration

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

Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* extend list of available sharing drivers

* add changelog

Co-authored-by: Michael Barz <michael.barz@zeitgestalten.eu>
Co-authored-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-10-06 10:02:31 +02:00
Michael Barz a92331668f Merge pull request #4716 from owncloud/wopi-driver-improvements
[full-ci] update reva, wopi folderurl
2022-10-05 09:22:05 +02:00
Ralf Haferkamp 083b9897a0 proxy: Use reva provided method for getting Gateway Client
This removes some duplicated code. And reuses the reva client code
we're also using everywhere else.
2022-10-05 08:45:05 +02:00
Michael Barz ad7b94a543 update reva, wopi folderurl 2022-10-04 18:30:00 +02:00
David Christofas 1b0ec2c9d5 update module path of ttlcache (#4738)
The GitHub repository of ttlcache has been moved from ReneKroon to jellydator.
2022-10-04 17:33:53 +02:00
Jörn Friedrich Dreyer e9e9947f88 bring back CORS env vars (#4723)
* bring back CORS env vars

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

* update CORS descriptions

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

* align writing of 'A comma-separated ...'

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

* fix some desc quotes

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

* Apply suggestions from code review

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

* Apply more suggestions from code review

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

* Apply final suggestions from code review

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

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: Martin <github@diemattels.at>
2022-10-04 16:56:05 +02:00
David Christofas 3babaf1a4d remove the graph-explorer servier from ocis (#4733) 2022-10-04 15:55:30 +02:00
Jörn Friedrich Dreyer b257ba6664 Fix cache config and search logging (#4732)
* make share event logging more distinguishable

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

* fix cache stat table config

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-10-04 14:07:11 +02:00
Jannik Stehle e053f70950 Fix unit tests 2022-10-04 09:18:36 +02:00
Jannik Stehle dd2abc94ee Make the tokeninfo endpoint unprotected as it is supposed to be available to the public 2022-10-04 09:18:36 +02:00
Michael Barz fd6a0702ff Merge pull request #4702 from rhafer/issue/4692
[full-ci] Do not start auth-bearer service by default
2022-09-29 16:49:10 +02:00
Ralf Haferkamp c6664cfe61 Fix share/space link in notification mail
Use OCIS_URL as the link base. This change also makes sure that the
top-level OcisURL config value gets a default assigned, even when
OCIS_URL is unset.

Fixes: #4688
2022-09-29 16:26:21 +02:00
Ralf Haferkamp de1588843a Fix notifications for group grantees
For looking up group members we need to pass an authenticated reva context via
the notification interface. We use the share owner's context that we generated
when stating the share target.

Fixes: #4703
2022-09-29 16:26:21 +02:00
Ralf Haferkamp f71f7c7521 Fix grantee lookup for Share/Space Created event for groups
'ShareCreated' and 'SpaceCreate' events for group shares have an empty
GranteeUserID attribute. We need to lookup the GranteeGroup to get the Grantee
Name for the notification mail

Partial Fix: #4703
2022-09-29 16:26:21 +02:00
Ralf Haferkamp 5d121b4bad Do not start auth-bearer service by default
The auth-bearer service is currently not needed by ocis. Reva tookens
for oidc authenticated clients are currently minted via the auth-machine
service.  This commit does not completely remove the service as we shoud
consider to rework the proxy's oidc middleware to use the auth-bearer
service in the future (see #4701)

Fixes: #4692
2022-09-28 12:11:06 +02:00
Ralf Haferkamp e4c28def8a Request revatoken via machine auth after autoprovsioning user (#4690)
To successfully authenticate a user after it was autoprovisioned, we
need to get a valid reva token.

Fixes: #4616
2022-09-27 21:51:18 +02:00
Willy Kloucek 0a46ef0b0b bring back the settings ui (#4691) 2022-09-27 18:50:45 +02:00
Andre Duffeck eaba396394 Fix unfindable entities (#4651)
* Fix unfindable entities from shares/publicshares

Directories or empty files weren't added to the search index properly
because they were indexed relative to the share instead of the space
root.

Fixes https://github.com/owncloud/ocis/issues/4489

* Add changelog

* Fix tests

* Reuse existing authorized context
2022-09-27 10:39:42 +02:00
Andre Duffeck 68b17eb68d Search dav spaces (#4661)
* Add a Ref option to SearchRequest, e.g. for limiting the search to a space

* Enable REPORT requests for /dav/spaces URLs

* Limit the search to the according space in case of /dav/spaces searches

* Add changelog

* Adapt expected failures

* Comment exported functions
2022-09-27 10:38:15 +02:00
Ralf Haferkamp 01650a5023 Use lazy initialization for the default grpc client
This avoids using a public global variable. It allows us to initialize
the default client a bit later (outside of init()). That way we can e.g.
properly initialize the in-memory registry.
2022-09-26 16:25:56 +02:00
Jörn Friedrich Dreyer 49376178e9 configure reva micro cache store (#4627)
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-09-26 13:43:53 +02:00
Michael Barz 9ef2f742a2 Merge pull request #4615 from rhafer/issue/3713
Restrict admins from self-removal
2022-09-26 11:24:47 +02:00
David Christofas f3a6f92dd6 Merge pull request #4601 from wkloucek/remove-default-insecure
change the default value for PROXY_OIDC_INSECURE to false
2022-09-26 11:19:10 +02:00
Willy Kloucek 569ffd41f8 Merge branch 'master' into remove-default-insecure 2022-09-26 08:59:18 +02:00
Willy Kloucek e4dc458b3e remove extra <> 2022-09-26 08:25:01 +02:00
Willy Kloucek 89dd329280 fix notifications config 2022-09-23 15:44:33 +02:00
Willy Kloucek a10047c2bc Merge pull request #4634 from owncloud/thumbnail-support-tiff-bmp
add thumbnail support for tiff and bmp files
2022-09-23 12:10:05 +02:00
David Christofas 3914f644e6 add tiff and bmp to the preview app config 2022-09-23 10:43:06 +02:00
Ralf Haferkamp cc53071f63 Forbid to remove own user account
And admin user is no longer allowed to remove its own user account.
This to prevent admins from locking themselves out.

Fixes: #3713
2022-09-23 09:13:46 +02:00
Ralf Haferkamp 87eaf72020 Forbid to edit/remove own role assignements
And admin user is no longer allowed to edit/remove its own assignments.
This to prevent admins from locking themselves out.

Fixes: #3713
2022-09-23 09:13:46 +02:00
mmattel 7315dac100 Update Notification Service eMail Template env var text string 2022-09-22 14:26:32 +02:00
David Christofas d7b6ecfaff Merge pull request #4564 from dragonchaser/email-template
Add email templating
2022-09-22 14:02:36 +02:00
Christian Richter e96ab9f9c8 incorporate requested changes
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-09-22 13:13:30 +02:00
Christian Richter 7a8e1b8106 backport url.JoinPath for go1.18
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-09-22 09:39:50 +02:00
Christian Richter 94024125fb enhance templating
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-09-22 09:38:11 +02:00
Christian Richter 0422af2a11 handle spaceshared event
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-09-22 09:38:11 +02:00
Christian Richter c2ef67f661 fix SpacesShared
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-09-22 09:38:11 +02:00
Christian Richter 8e0b07b200 add share url to email text
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-09-22 09:38:11 +02:00
Christian Richter 6ea8623b55 add email subject
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-09-22 09:38:11 +02:00