From 514da83db30409baf9bb4d3d8d0cecfcc2e0e632 Mon Sep 17 00:00:00 2001 From: David Christofas Date: Mon, 5 Sep 2022 14:20:23 +0000 Subject: [PATCH] commit c181e1d3920ae38e997dab9e0c354a20ce741907 Merge: 29f52515e c5bde43ba Author: David Christofas Date: Mon Sep 5 16:16:18 2022 +0200 Merge pull request #4436 from aduffeck/jsoncs3-share-manager Jsoncs3 share manager --- grpc_apis/ocis/messages/search/v0/grpc.md | 2 +- grpc_apis/ocis/messages/settings/v0/grpc.md | 2 +- grpc_apis/ocis/messages/store/v0/grpc.md | 2 +- grpc_apis/ocis/messages/thumbnails/v0/grpc.md | 2 +- grpc_apis/ocis/services/search/v0/grpc.md | 2 +- grpc_apis/ocis/services/settings/v0/grpc.md | 2 +- grpc_apis/ocis/services/store/v0/grpc.md | 2 +- grpc_apis/ocis/services/thumbnails/v0/grpc.md | 2 +- .../_includes/adoc/sharing_configvars.adoc | 33 ++++++++++++++++++- .../_includes/sharing-config-example.yaml | 7 +++- services/_includes/sharing_configvars.md | 6 +++- 11 files changed, 51 insertions(+), 11 deletions(-) diff --git a/grpc_apis/ocis/messages/search/v0/grpc.md b/grpc_apis/ocis/messages/search/v0/grpc.md index 7ee7143fbed..4505f46d47f 100644 --- a/grpc_apis/ocis/messages/search/v0/grpc.md +++ b/grpc_apis/ocis/messages/search/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.search.v0" url: /grpc_apis/ocis_messages_search_v0 -date: 2022-09-05T14:00:20Z +date: 2022-09-05T14:19:27Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/settings/v0/grpc.md b/grpc_apis/ocis/messages/settings/v0/grpc.md index 4ea166dd9b3..6e36939878f 100644 --- a/grpc_apis/ocis/messages/settings/v0/grpc.md +++ b/grpc_apis/ocis/messages/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.settings.v0" url: /grpc_apis/ocis_messages_settings_v0 -date: 2022-09-05T14:00:20Z +date: 2022-09-05T14:19:27Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/store/v0/grpc.md b/grpc_apis/ocis/messages/store/v0/grpc.md index 5428a99702b..c12fda8e3dc 100644 --- a/grpc_apis/ocis/messages/store/v0/grpc.md +++ b/grpc_apis/ocis/messages/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.store.v0" url: /grpc_apis/ocis_messages_store_v0 -date: 2022-09-05T14:00:20Z +date: 2022-09-05T14:19:27Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md index 5de29606fea..82860f7d791 100644 --- a/grpc_apis/ocis/messages/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/messages/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.messages.thumbnails.v0" url: /grpc_apis/ocis_messages_thumbnails_v0 -date: 2022-09-05T14:00:20Z +date: 2022-09-05T14:19:27Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/search/v0/grpc.md b/grpc_apis/ocis/services/search/v0/grpc.md index 82adf638d22..8b69d0a14dc 100644 --- a/grpc_apis/ocis/services/search/v0/grpc.md +++ b/grpc_apis/ocis/services/search/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.search.v0" url: /grpc_apis/ocis_services_search_v0 -date: 2022-09-05T14:00:20Z +date: 2022-09-05T14:19:27Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/settings/v0/grpc.md b/grpc_apis/ocis/services/settings/v0/grpc.md index 69132ea408c..8fc0ffe54ec 100644 --- a/grpc_apis/ocis/services/settings/v0/grpc.md +++ b/grpc_apis/ocis/services/settings/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.settings.v0" url: /grpc_apis/ocis_services_settings_v0 -date: 2022-09-05T14:00:20Z +date: 2022-09-05T14:19:27Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/store/v0/grpc.md b/grpc_apis/ocis/services/store/v0/grpc.md index d52aef74568..a0a362e8eb2 100644 --- a/grpc_apis/ocis/services/store/v0/grpc.md +++ b/grpc_apis/ocis/services/store/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.store.v0" url: /grpc_apis/ocis_services_store_v0 -date: 2022-09-05T14:00:20Z +date: 2022-09-05T14:19:27Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/grpc_apis/ocis/services/thumbnails/v0/grpc.md b/grpc_apis/ocis/services/thumbnails/v0/grpc.md index 6f7a0ae9ba4..6f0cfabcee3 100644 --- a/grpc_apis/ocis/services/thumbnails/v0/grpc.md +++ b/grpc_apis/ocis/services/thumbnails/v0/grpc.md @@ -1,7 +1,7 @@ --- title: "ocis.services.thumbnails.v0" url: /grpc_apis/ocis_services_thumbnails_v0 -date: 2022-09-05T14:00:20Z +date: 2022-09-05T14:19:27Z weight: 50 geekdocRepo: https://github.com/owncloud/ocis --- diff --git a/services/_includes/adoc/sharing_configvars.adoc b/services/_includes/adoc/sharing_configvars.adoc index e3307f51353..dc3ef6ae9e6 100644 --- a/services/_includes/adoc/sharing_configvars.adoc +++ b/services/_includes/adoc/sharing_configvars.adoc @@ -152,9 +152,40 @@ Disables the loading of user's group memberships from the reva access token. a| [subs=-attributes] +string+ a| [subs=-attributes] -pass:[cs3] +pass:[jsoncs3] a| [subs=-attributes] Driver to be used to persist shares. Supported values are 'json', 'cs3' and 'owncloudsql'. +|`SHARING_USER_CS3_PROVIDER_ADDR` +a| [subs=-attributes] ++string+ +a| [subs=-attributes] +pass:[127.0.0.1:9215] +a| [subs=-attributes] +GRPC address of the STORAGE-SYSTEM service. +|`OCIS_SYSTEM_USER_ID` + +`SHARING_USER_CS3_SYSTEM_USER_ID` +a| [subs=-attributes] ++string+ +a| [subs=-attributes] +pass:[] +a| [subs=-attributes] +ID of the oCIS STORAGE-SYSTEM system user. Admins need to set the ID for the STORAGE-SYSTEM system user in this config option which is then used to reference the user. Any reasonable long string is possible, preferably this would be an UUIDv4 format. +|`OCIS_SYSTEM_USER_IDP` + +`SHARING_USER_CS3_SYSTEM_USER_IDP` +a| [subs=-attributes] ++string+ +a| [subs=-attributes] +pass:[internal] +a| [subs=-attributes] +IDP of the oCIS STORAGE-SYSTEM system user. +|`OCIS_SYSTEM_USER_API_KEY` + +`SHARING_USER_CS3_SYSTEM_USER_API_KEY` +a| [subs=-attributes] ++string+ +a| [subs=-attributes] +pass:[] +a| [subs=-attributes] +API key for the STORAGE-SYSTEM system user. |`SHARING_USER_JSON_FILE` a| [subs=-attributes] +string+ diff --git a/services/_includes/sharing-config-example.yaml b/services/_includes/sharing-config-example.yaml index 34e7df87078..d597309d6cf 100644 --- a/services/_includes/sharing-config-example.yaml +++ b/services/_includes/sharing-config-example.yaml @@ -27,8 +27,13 @@ events: endpoint: 127.0.0.1:9233 cluster: ocis-cluster skip_user_groups_in_token: false -user_sharing_driver: cs3 +user_sharing_driver: jsoncs3 user_sharing_drivers: + jsoncs3: + provider_addr: 127.0.0.1:9215 + system_user_id: "" + system_user_idp: internal + system_user_api_key: "" json: file: ~/.ocis/storage/shares.json cs3: diff --git a/services/_includes/sharing_configvars.md b/services/_includes/sharing_configvars.md index 456544a4fc0..8083582522c 100644 --- a/services/_includes/sharing_configvars.md +++ b/services/_includes/sharing_configvars.md @@ -21,7 +21,11 @@ | SHARING_EVENTS_ENDPOINT | string | 127.0.0.1:9233 | | | SHARING_EVENTS_CLUSTER | string | ocis-cluster | The clusterID of the event system. The event system is the message queuing service. It is used as message broker for the microservice architecture. Mandatory when using NATS as event system.| | SHARING_SKIP_USER_GROUPS_IN_TOKEN | bool | false | Disables the loading of user's group memberships from the reva access token.| -| SHARING_USER_DRIVER | string | cs3 | Driver to be used to persist shares. Supported values are 'json', 'cs3' and 'owncloudsql'.| +| SHARING_USER_DRIVER | string | jsoncs3 | Driver to be used to persist shares. Supported values are 'json', 'cs3' and 'owncloudsql'.| +| SHARING_USER_CS3_PROVIDER_ADDR | string | 127.0.0.1:9215 | GRPC address of the STORAGE-SYSTEM service.| +| OCIS_SYSTEM_USER_ID
SHARING_USER_CS3_SYSTEM_USER_ID | string | | ID of the oCIS STORAGE-SYSTEM system user. Admins need to set the ID for the STORAGE-SYSTEM system user in this config option which is then used to reference the user. Any reasonable long string is possible, preferably this would be an UUIDv4 format.| +| OCIS_SYSTEM_USER_IDP
SHARING_USER_CS3_SYSTEM_USER_IDP | string | internal | IDP of the oCIS STORAGE-SYSTEM system user.| +| OCIS_SYSTEM_USER_API_KEY
SHARING_USER_CS3_SYSTEM_USER_API_KEY | string | | API key for the STORAGE-SYSTEM system user.| | SHARING_USER_JSON_FILE | string | ~/.ocis/storage/shares.json | Path to the JSON file where shares will be persisted.| | SHARING_USER_CS3_PROVIDER_ADDR | string | 127.0.0.1:9215 | GRPC address of the STORAGE-SYSTEM service.| | OCIS_SYSTEM_USER_ID
SHARING_USER_CS3_SYSTEM_USER_ID | string | | ID of the oCIS STORAGE-SYSTEM system user. Admins need to set the ID for the STORAGE-SYSTEM system user in this config option which is then used to reference the user. Any reasonable long string is possible, preferably this would be an UUIDv4 format.|