Commit Graph
13 Commits
Author SHA1 Message Date
Matteo 380273bb84 Feat/ocisdev 949/disable direct sharing (#12542)
* build(deps): [OCISDEV-949] bump reva to v2.0.0-20260709150645-a9d5432e6f7f

Includes owncloud/reva#651, which adds the enable_user_sharing and
enable_public_sharing config options this feature depends on.

* feat: [OCISDEV-949] add options to disable direct and public sharing

Adds two independent, per-deployment config options:

- OCIS_ENABLE_USER_SHARING (default true), read by the frontend, graph,
  sharing and ocm services. When false, creating new user, group or
  federated shares is rejected (via reva's usershareprovider and
  ocmshareprovider, and via the graph Invite endpoint for the modern web
  client), the legacy sharees search endpoint returns no results, and
  the files_sharing.user.enabled / user_enumeration.enabled capabilities
  report false so the web UI hides the "share with people" search.
  Space membership invites are exempt.

- OCIS_ENABLE_PUBLIC_SHARING (default true), read by the frontend and
  sharing services. When false, creating new public links is rejected
  via reva's publicshareprovider, and files_sharing.public.enabled
  reports false so the web UI hides public link creation.

The two settings are fully independent of each other.
2026-07-10 11:59:08 +02:00
Ralf Haferkamp 0d88a68c79 fix(ocm): add data_server_url to ocm storage provider
Fixes: #10358
2024-10-30 16:45:51 +01:00
Ralf Haferkamp 04c2dcd427 Revert "use secure config defaults for OCM"
This reverts commit 59589cd7d3.
2024-10-28 11:06:17 +01:00
Jörn Friedrich Dreyer 59589cd7d3 use secure config defaults for OCM
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-10-15 16:49:57 +02:00
Jörn Friedrich Dreyer dbf87bb880 fix ocm token
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-09-13 15:21:07 +02:00
Florian Schade 194921eb0c enhancement: handle ocm event notifications 2024-09-05 17:28:27 +02:00
Jörn Friedrich Dreyer b7fdc59f21 change ocmproviders defaultconfig path
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-08-12 12:27:05 +02:00
Jörn Friedrich Dreyer 9d0af6f281 configurable ocm timeouts
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-06-24 10:49:49 +02:00
Christian Richter fe4cd7a901 make code more readable
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-03-19 14:21:21 +01:00
Christian Richter b5ca297f54 prevent nil pointer
Signed-off-by: Christian Richter <crichter@owncloud.com>
2024-03-19 13:56:10 +01:00
Christian Richter 72916dc53c adapt cors headers
Signed-off-by: Christian Richter <crichter@owncloud.com>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2024-03-19 10:54:58 +01:00
André Duffeck 2ffec5c79f Give the ocm storage provider some storage space 2023-12-14 09:30:41 +01:00
André Duffeck 668f917dba Add an ocm service exposing the ocm related http and grpc APIs 2023-10-24 10:29:29 +02:00