Commit Graph

337 Commits

Author SHA1 Message Date
Michael Barz
d965f23fd9 Merge pull request #4815 from owncloud/requestID
harden drives api and improve logging
2022-10-17 20:23:50 +02:00
Michael Barz
f84fbdd6ff corrections from code review 2022-10-17 17:22:33 +02:00
markv9401
5082e6c027 Add UserID to context during initial login (#4829)
* Add UserID to context during initial login
UserID is also suffixed with "_init" so that own role assignment safety check is passed

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

* Fix missing gofmt -s bug

Co-authored-by: root <root@localhost.localdomain>
2022-10-17 17:03:39 +02:00
Michael Barz
0b7297d1b4 harden drives api and improve logging 2022-10-16 00:38:44 +02:00
Andre Duffeck
5e220920f0 [full-ci] Rescan spaces (#4777)
* Increase the timeout for indexing spaces

* Allow for making queries that are not constrained to a RootID

* Use nano precision for the Mtime

* Add a SpaceDebouncer

The debouncer can be used to delay operations on spaces until things
have settled down to avoid doing the same operation multiple times.

* Do not index subtrees until they have changed (i.e. the mtime differs)

* Also pass a user to the space debouncer func

* Trigger a rescan of the according space when an event is received

* Improve wording/logging

* Add changelog

* Get rid of superfluous GetUserByClaim call

* Fix tests

* Fix reindexing triggered by shares by using the event's SpaceOwner

* Bump reva to pull in the space owner events changes

* Fix changelog

* Fix linter issues

* Fall back to the executant if no owner was received from the event

* Bump reva and go-cs3apis

* Fix go.sum

* Bump core

* Adapt expected failures

* Tweak debounce settings
2022-10-14 17:03:05 +02:00
Willy Kloucek
308fd005aa remove storage-system events 2022-10-14 11:09:15 +02:00
Florian Schade
5eb43fbbe2 Merge pull request #4809 from wkloucek/dont-cache-web-index-html
don't cache the web index.html
2022-10-13 17:56:34 +02:00
Christian Richter
7ff04c46da Merge pull request #4799 from dragonchaser/improve-email-tempalting
refactor templating, add subject templating
2022-10-13 17:04:26 +02:00
Florian Schade
ff4f160fdc disable cache for certain resources and respect try_files 2022-10-13 16:41:11 +02:00
Willy Kloucek
fbf1eeb4c5 don't cache the web index.html 2022-10-13 16:41:11 +02:00
Christian Richter
b4caf6397c refactor templating, add subject templating
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-10-13 14:29:11 +02:00
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