diff --git a/CHANGELOG.md b/CHANGELOG.md index 42b7de3fb2..afc21bb31c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,101 @@ +Changelog for reva 2.24.0 (2024-09-09) +======================================= + +The following sections list the changes in reva 2.24.0 relevant to +reva users. The changes are ordered by importance. + +Summary +------- + +* Fix #4820: Fix response code when upload a file over locked +* Fix #4837: Fix OCM userid encoding +* Fix #4823: Return etag for ocm shares +* Fix #4822: Allow listing directory trash items by key +* Enh #4816: Ignore resharing requests +* Enh #4817: Added a new role space editor without versions +* Enh #4829: Added a new roles viewer/editor with ListGrants +* Enh #4828: New event: UserSignedIn +* Enh #4836: Publish an event when an OCM invite is generated + +Details +------- + +* Bugfix #4820: Fix response code when upload a file over locked + + We fixed a bug where the response code was incorrect when uploading a file over a locked file. + + https://github.com/owncloud/ocis/issues/7638 + https://github.com/cs3org/reva/pull/4820 + +* Bugfix #4837: Fix OCM userid encoding + + We now base64 encode the remote userid and provider as the local federated user id. This allows + us to always differentiate them from local users and unpack the encoded user id and provider + when making requests to the remote ocm provider. + + https://github.com/owncloud/ocis/issues/9927 + https://github.com/cs3org/reva/pull/4837 + https://github.com/cs3org/reva/pull/4833 + +* Bugfix #4823: Return etag for ocm shares + + The ocm remote storage now passes on the etag returned in the PROPFIND response. + + https://github.com/owncloud/ocis/issues/9534 + https://github.com/cs3org/reva/pull/4823 + +* Bugfix #4822: Allow listing directory trash items by key + + The storageprovider now passes on the key without inventing a `/` as the relative path when it + was not present at the end of the key. This allows differentiating requests that want to get the + trash item of a folder itself (where the relative path is empty) or listing the children of a + folder in the trash (where the relative path at least starts with a `/`). + + We also fixed the `/dav/spaces` endpoint to not invent a `/` at the end of URLs to allow clients to + actually make these different requests. + + As a byproduct we now return the size of trashed items. + + https://github.com/cs3org/reva/pull/4822 + https://github.com/cs3org/reva/pull/4818 + +* Enhancement #4816: Ignore resharing requests + + We now ignore resharing permissions. Instead of returning BadRequest we just reduce the + permissions. + + https://github.com/cs3org/reva/pull/4816 + +* Enhancement #4817: Added a new role space editor without versions + + We add a new role space editor without list and restore version permissions. + + https://github.com/owncloud/ocis/issues/9699 + https://github.com/cs3org/reva/pull/4817 + +* Enhancement #4829: Added a new roles viewer/editor with ListGrants + + We add a new roles space viewer/editor with ListGrants permissions. + + https://github.com/owncloud/ocis/issues/9701 + https://github.com/cs3org/reva/pull/4829 + +* Enhancement #4828: New event: UserSignedIn + + There is a new Event that cam be triggered when a user signs in + + https://github.com/cs3org/reva/pull/4828 + +* Enhancement #4836: Publish an event when an OCM invite is generated + + The ocm generate-invite endpoint now publishes an event whenever an invitation is requested + and generated. This event can be subscribed to by other services to react to the generated + invitation. + + https://github.com/owncloud/ocis/issues/9583 + https://github.com/cs3org/reva/pull/4836 + https://github.com/cs3org/reva/pull/4832 + Changelog for reva 2.23.0 (2024-08-19) ======================================= diff --git a/RELEASE_DATE b/RELEASE_DATE index cbba70a0ab..2d1f1c07a2 100644 --- a/RELEASE_DATE +++ b/RELEASE_DATE @@ -1 +1 @@ -2024-08-19 \ No newline at end of file +2024-09-09 \ No newline at end of file diff --git a/VERSION b/VERSION index da266122d4..f8f895c6aa 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.23.0 \ No newline at end of file +2.24.0 \ No newline at end of file diff --git a/changelog/unreleased/fix-upload-response-code.md b/changelog/2.24.0_2024-09-09/fix-upload-response-code.md similarity index 100% rename from changelog/unreleased/fix-upload-response-code.md rename to changelog/2.24.0_2024-09-09/fix-upload-response-code.md diff --git a/changelog/unreleased/ignore-resharing-requests.md b/changelog/2.24.0_2024-09-09/ignore-resharing-requests.md similarity index 100% rename from changelog/unreleased/ignore-resharing-requests.md rename to changelog/2.24.0_2024-09-09/ignore-resharing-requests.md diff --git a/changelog/unreleased/new-role-editor-wo-versions.md b/changelog/2.24.0_2024-09-09/new-role-editor-wo-versions.md similarity index 100% rename from changelog/unreleased/new-role-editor-wo-versions.md rename to changelog/2.24.0_2024-09-09/new-role-editor-wo-versions.md diff --git a/changelog/unreleased/new-roles-witht-list-grants.md b/changelog/2.24.0_2024-09-09/new-roles-witht-list-grants.md similarity index 100% rename from changelog/unreleased/new-roles-witht-list-grants.md rename to changelog/2.24.0_2024-09-09/new-roles-witht-list-grants.md diff --git a/changelog/unreleased/new-user-signedin-event.md b/changelog/2.24.0_2024-09-09/new-user-signedin-event.md similarity index 100% rename from changelog/unreleased/new-user-signedin-event.md rename to changelog/2.24.0_2024-09-09/new-user-signedin-event.md diff --git a/changelog/unreleased/ocm-fix-federated-userid.md b/changelog/2.24.0_2024-09-09/ocm-fix-federated-userid.md similarity index 100% rename from changelog/unreleased/ocm-fix-federated-userid.md rename to changelog/2.24.0_2024-09-09/ocm-fix-federated-userid.md diff --git a/changelog/unreleased/ocm-generate-invite-event.md b/changelog/2.24.0_2024-09-09/ocm-generate-invite-event.md similarity index 100% rename from changelog/unreleased/ocm-generate-invite-event.md rename to changelog/2.24.0_2024-09-09/ocm-generate-invite-event.md diff --git a/changelog/unreleased/ocm-return-etag.md b/changelog/2.24.0_2024-09-09/ocm-return-etag.md similarity index 100% rename from changelog/unreleased/ocm-return-etag.md rename to changelog/2.24.0_2024-09-09/ocm-return-etag.md diff --git a/changelog/unreleased/trash-listing-bykey-fixes.md b/changelog/2.24.0_2024-09-09/trash-listing-bykey-fixes.md similarity index 100% rename from changelog/unreleased/trash-listing-bykey-fixes.md rename to changelog/2.24.0_2024-09-09/trash-listing-bykey-fixes.md diff --git a/changelog/NOTE.md b/changelog/NOTE.md index 314033beee..8e6ed68225 100644 --- a/changelog/NOTE.md +++ b/changelog/NOTE.md @@ -1,108 +1,98 @@ -Changelog for reva 2.23.0 (2024-08-19) +Changelog for reva 2.24.0 (2024-09-09) ======================================= -The following sections list the changes in reva 2.23.0 relevant to +The following sections list the changes in reva 2.24.0 relevant to reva users. The changes are ordered by importance. Summary ------- -* Fix #4802: Block overwriting mountpoints -* Fix #4782: Fixed the response code when copying from a share to a personal space -* Fix #4805: Fix creating spaces -* Fix #4651: Fix deleting space shares -* Fix #4808: Fixed bugs in the owncloudsql storage driver -* Enh #4772: Allow configuring grpc max connection age -* Enh #4784: Bump tusd to v2 -* Enh #4478: Hellofs -* Enh #4744: Respect service transport -* Enh #4812: Concurrent stat requests when listing shares -* Enh #4798: Update go-ldap to v3.4.8 +* Fix #4820: Fix response code when upload a file over locked +* Fix #4837: Fix OCM userid encoding +* Fix #4823: Return etag for ocm shares +* Fix #4822: Allow listing directory trash items by key +* Enh #4816: Ignore resharing requests +* Enh #4817: Added a new role space editor without versions +* Enh #4829: Added a new roles viewer/editor with ListGrants +* Enh #4828: New event: UserSignedIn +* Enh #4836: Publish an event when an OCM invite is generated Details ------- -* Bugfix #4802: Block overwriting mountpoints +* Bugfix #4820: Fix response code when upload a file over locked - This blocks overwriting mountpoints through the webdav COPY api. It is now returning a bad - request when attempting to overwrite a mountpoint. + We fixed a bug where the response code was incorrect when uploading a file over a locked file. - https://github.com/cs3org/reva/pull/4802 - https://github.com/cs3org/reva/pull/4796 - https://github.com/cs3org/reva/pull/4786 - https://github.com/cs3org/reva/pull/4785 + https://github.com/owncloud/ocis/issues/7638 + https://github.com/cs3org/reva/pull/4820 -* Bugfix #4782: Fixed the response code when copying from a share to a personal space +* Bugfix #4837: Fix OCM userid encoding - We fixed the response code when copying a file from a share to a personal space with a secure view - role. + We now base64 encode the remote userid and provider as the local federated user id. This allows + us to always differentiate them from local users and unpack the encoded user id and provider + when making requests to the remote ocm provider. - https://github.com/owncloud/ocis/issues/9482 - https://github.com/cs3org/reva/pull/4782 + https://github.com/owncloud/ocis/issues/9927 + https://github.com/cs3org/reva/pull/4837 + https://github.com/cs3org/reva/pull/4833 -* Bugfix #4805: Fix creating spaces +* Bugfix #4823: Return etag for ocm shares - We fixed a problem where it wasn't possible to create new spaces when running on a non-writable - working directory. + The ocm remote storage now passes on the etag returned in the PROPFIND response. - https://github.com/cs3org/reva/pull/4805 + https://github.com/owncloud/ocis/issues/9534 + https://github.com/cs3org/reva/pull/4823 -* Bugfix #4651: Fix deleting space shares +* Bugfix #4822: Allow listing directory trash items by key - We no longer check if a share is an ocm sharee if listng ocm shares has been disabled anyway. This - allows unsharing space shares. + The storageprovider now passes on the key without inventing a `/` as the relative path when it + was not present at the end of the key. This allows differentiating requests that want to get the + trash item of a folder itself (where the relative path is empty) or listing the children of a + folder in the trash (where the relative path at least starts with a `/`). - https://github.com/cs3org/reva/pull/4651 + We also fixed the `/dav/spaces` endpoint to not invent a `/` at the end of URLs to allow clients to + actually make these different requests. -* Bugfix #4808: Fixed bugs in the owncloudsql storage driver + As a byproduct we now return the size of trashed items. - https://github.com/cs3org/reva/pull/4808 + https://github.com/cs3org/reva/pull/4822 + https://github.com/cs3org/reva/pull/4818 -* Enhancement #4772: Allow configuring grpc max connection age +* Enhancement #4816: Ignore resharing requests - We added a GRPC_MAX_CONNECTION_AGE env var that allows limiting the lifespan of connections. - A closed connection triggers grpc clients to do a new DNS lookup to pick up new IPs. + We now ignore resharing permissions. Instead of returning BadRequest we just reduce the + permissions. - https://github.com/cs3org/reva/pull/4772 + https://github.com/cs3org/reva/pull/4816 -* Enhancement #4784: Bump tusd to v2 +* Enhancement #4817: Added a new role space editor without versions - Bump tusd pkg to v2.4.0 + We add a new role space editor without list and restore version permissions. - https://github.com/cs3org/reva/pull/4784 + https://github.com/owncloud/ocis/issues/9699 + https://github.com/cs3org/reva/pull/4817 -* Enhancement #4478: Hellofs +* Enhancement #4829: Added a new roles viewer/editor with ListGrants - We added a minimal hello world filesystem as an example for a read only storage driver. + We add a new roles space viewer/editor with ListGrants permissions. - https://github.com/cs3org/reva/pull/4478 + https://github.com/owncloud/ocis/issues/9701 + https://github.com/cs3org/reva/pull/4829 -* Enhancement #4744: Respect service transport +* Enhancement #4828: New event: UserSignedIn - The service registry now takes into account the service transport when creating grpc clients. - This allows using `dns`, `unix` and `kubernetes` as the protocol in addition to `tcp`. `dns` - will turn the gRPC client into a [Thick - Client](https://grpc.io/blog/grpc-load-balancing/#thick-client) that can look up - multiple endpoints via DNS. `kubernetes` will use - [github.com/sercand/kuberesolver](https://github.com/sercand/kuberesolver) to - connect to the kubernetes API and pick up service changes. Furthermore, we enabled round robin - load balancing for the [default transparent retry configuration of - gRPC](https://grpc.io/docs/guides/retry/#retry-configuration). + There is a new Event that cam be triggered when a user signs in - https://github.com/cs3org/reva/pull/4744 + https://github.com/cs3org/reva/pull/4828 -* Enhancement #4812: Concurrent stat requests when listing shares +* Enhancement #4836: Publish an event when an OCM invite is generated - The sharesstorageprovider now concurrently stats the accepted shares when listing the share - jail. The default number of 5 workers can be changed by setting the `max_concurrency` value in - the config map. + The ocm generate-invite endpoint now publishes an event whenever an invitation is requested + and generated. This event can be subscribed to by other services to react to the generated + invitation. - https://github.com/cs3org/reva/pull/4812 - -* Enhancement #4798: Update go-ldap to v3.4.8 - - Update go-ldap/ldap/v3 to the latest upstream release to include the latest bugfixes and - enhancements. - - https://github.com/cs3org/reva/pull/4798 + https://github.com/owncloud/ocis/issues/9583 + https://github.com/cs3org/reva/pull/4836 + https://github.com/cs3org/reva/pull/4832 diff --git a/docs/content/en/docs/changelog/2.24.0/_index.md b/docs/content/en/docs/changelog/2.24.0/_index.md new file mode 100644 index 0000000000..fc0fbcbfcf --- /dev/null +++ b/docs/content/en/docs/changelog/2.24.0/_index.md @@ -0,0 +1,107 @@ + +--- +title: "v2.24.0" +linkTitle: "v2.24.0" +weight: 40 +description: > + Changelog for Reva v2.24.0 (2024-09-09) +--- + +Changelog for reva 2.24.0 (2024-09-09) +======================================= + +The following sections list the changes in reva 2.24.0 relevant to +reva users. The changes are ordered by importance. + +Summary +------- + +* Fix #4820: Fix response code when upload a file over locked +* Fix #4837: Fix OCM userid encoding +* Fix #4823: Return etag for ocm shares +* Fix #4822: Allow listing directory trash items by key +* Enh #4816: Ignore resharing requests +* Enh #4817: Added a new role space editor without versions +* Enh #4829: Added a new roles viewer/editor with ListGrants +* Enh #4828: New event: UserSignedIn +* Enh #4836: Publish an event when an OCM invite is generated + +Details +------- + +* Bugfix #4820: Fix response code when upload a file over locked + + We fixed a bug where the response code was incorrect when uploading a file over a locked file. + + https://github.com/owncloud/ocis/issues/7638 + https://github.com/cs3org/reva/pull/4820 + +* Bugfix #4837: Fix OCM userid encoding + + We now base64 encode the remote userid and provider as the local federated user id. This allows + us to always differentiate them from local users and unpack the encoded user id and provider + when making requests to the remote ocm provider. + + https://github.com/owncloud/ocis/issues/9927 + https://github.com/cs3org/reva/pull/4837 + https://github.com/cs3org/reva/pull/4833 + +* Bugfix #4823: Return etag for ocm shares + + The ocm remote storage now passes on the etag returned in the PROPFIND response. + + https://github.com/owncloud/ocis/issues/9534 + https://github.com/cs3org/reva/pull/4823 + +* Bugfix #4822: Allow listing directory trash items by key + + The storageprovider now passes on the key without inventing a `/` as the relative path when it + was not present at the end of the key. This allows differentiating requests that want to get the + trash item of a folder itself (where the relative path is empty) or listing the children of a + folder in the trash (where the relative path at least starts with a `/`). + + We also fixed the `/dav/spaces` endpoint to not invent a `/` at the end of URLs to allow clients to + actually make these different requests. + + As a byproduct we now return the size of trashed items. + + https://github.com/cs3org/reva/pull/4822 + https://github.com/cs3org/reva/pull/4818 + +* Enhancement #4816: Ignore resharing requests + + We now ignore resharing permissions. Instead of returning BadRequest we just reduce the + permissions. + + https://github.com/cs3org/reva/pull/4816 + +* Enhancement #4817: Added a new role space editor without versions + + We add a new role space editor without list and restore version permissions. + + https://github.com/owncloud/ocis/issues/9699 + https://github.com/cs3org/reva/pull/4817 + +* Enhancement #4829: Added a new roles viewer/editor with ListGrants + + We add a new roles space viewer/editor with ListGrants permissions. + + https://github.com/owncloud/ocis/issues/9701 + https://github.com/cs3org/reva/pull/4829 + +* Enhancement #4828: New event: UserSignedIn + + There is a new Event that cam be triggered when a user signs in + + https://github.com/cs3org/reva/pull/4828 + +* Enhancement #4836: Publish an event when an OCM invite is generated + + The ocm generate-invite endpoint now publishes an event whenever an invitation is requested + and generated. This event can be subscribed to by other services to react to the generated + invitation. + + https://github.com/owncloud/ocis/issues/9583 + https://github.com/cs3org/reva/pull/4836 + https://github.com/cs3org/reva/pull/4832 + diff --git a/docs/content/en/docs/config/grpc/services/ocminvitemanager/_index.md b/docs/content/en/docs/config/grpc/services/ocminvitemanager/_index.md index 15975b937d..cefcfcd466 100644 --- a/docs/content/en/docs/config/grpc/services/ocminvitemanager/_index.md +++ b/docs/content/en/docs/config/grpc/services/ocminvitemanager/_index.md @@ -9,7 +9,7 @@ description: > # _struct: config_ {{% dir name="provider_domain" type="string" default="The same domain registered in the provider authorizer" %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/ocminvitemanager/ocminvitemanager.go#L56) + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/ocminvitemanager/ocminvitemanager.go#L57) {{< highlight toml >}} [grpc.services.ocminvitemanager] provider_domain = "The same domain registered in the provider authorizer" diff --git a/docs/content/en/docs/config/grpc/services/ocmshareprovider/_index.md b/docs/content/en/docs/config/grpc/services/ocmshareprovider/_index.md index f1681c4e2d..4ab7e77048 100644 --- a/docs/content/en/docs/config/grpc/services/ocmshareprovider/_index.md +++ b/docs/content/en/docs/config/grpc/services/ocmshareprovider/_index.md @@ -9,7 +9,7 @@ description: > # _struct: config_ {{% dir name="provider_domain" type="string" default="The same domain registered in the provider authorizer" %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/ocmshareprovider/ocmshareprovider.go#L64) + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/ocmshareprovider/ocmshareprovider.go#L65) {{< highlight toml >}} [grpc.services.ocmshareprovider] provider_domain = "The same domain registered in the provider authorizer" diff --git a/docs/content/en/docs/config/grpc/services/storageprovider/_index.md b/docs/content/en/docs/config/grpc/services/storageprovider/_index.md index 4fa5683f5c..b7ba942ea3 100644 --- a/docs/content/en/docs/config/grpc/services/storageprovider/_index.md +++ b/docs/content/en/docs/config/grpc/services/storageprovider/_index.md @@ -6,130 +6,130 @@ description: > Configuration for the storageprovider service --- -# _struct: eventconfig_ +# _struct: config_ -{{% dir name="nats_address" type="string" default="address of the nats server" %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L75) +{{% dir name="driver" type="string" default="localhome" %}} +The storage driver to be used. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L64) {{< highlight toml >}} [grpc.services.storageprovider] -nats_address = "address of the nats server" +driver = "localhome" {{< /highlight >}} {{% /dir %}} -{{% dir name="nats_clusterid" type="string" default="clusterid of the nats server" %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L76) +{{% dir name="drivers" type="map[string]map[string]interface{}" default="localhome" %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L65) {{< highlight toml >}} -[grpc.services.storageprovider] -nats_clusterid = "clusterid of the nats server" +[grpc.services.storageprovider.drivers.localhome] +root = "/var/tmp/reva/" +share_folder = "/MyShares" +user_layout = "{{.Username}}" + {{< /highlight >}} {{% /dir %}} -{{% dir name="tls_insecure" type="bool" default=Whether to verify the server TLS certificates. %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L77) +{{% dir name="data_server_url" type="string" default="http://localhost/data" %}} +The URL for the data server. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L66) {{< highlight toml >}} [grpc.services.storageprovider] -tls_insecure = Whether to verify the server TLS certificates. +data_server_url = "http://localhost/data" {{< /highlight >}} {{% /dir %}} -{{% dir name="tls_root_ca_cert" type="string" default="The root CA certificate used to validate the server's TLS certificate." %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L78) +{{% dir name="expose_data_server" type="bool" default=false %}} +Whether to expose data server. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L67) {{< highlight toml >}} [grpc.services.storageprovider] -tls_root_ca_cert = "The root CA certificate used to validate the server's TLS certificate." +expose_data_server = false {{< /highlight >}} {{% /dir %}} -{{% dir name="nats_enable_tls" type="bool" default=events tls switch %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L79) +{{% dir name="available_checksums" type="map[string]uint32" default=nil %}} +List of available checksums. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L68) {{< highlight toml >}} [grpc.services.storageprovider] -nats_enable_tls = events tls switch +available_checksums = nil {{< /highlight >}} {{% /dir %}} -{{% dir name="nats_username" type="string" default="event stream username" %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L80) +{{% dir name="custom_mimetypes_json" type="string" default="nil" %}} +An optional mapping file with the list of supported custom file extensions and corresponding mime types. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L69) {{< highlight toml >}} [grpc.services.storageprovider] -nats_username = "event stream username" +custom_mimetypes_json = "nil" {{< /highlight >}} {{% /dir %}} -{{% dir name="nats_password" type="string" default="event stream password" %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L81) +{{% dir name="upload_expiration" type="int64" default=0 %}} +Duration for how long uploads will be valid. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L71) {{< highlight toml >}} [grpc.services.storageprovider] -nats_password = "event stream password" +upload_expiration = 0 {{< /highlight >}} {{% /dir %}} -# _struct: config_ - -{{% dir name="driver" type="string" default="localhome" %}} -The storage driver to be used. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L63) +{{% dir name="events" type="eventconfig" default=0 %}} +Event stream configuration [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L72) {{< highlight toml >}} [grpc.services.storageprovider] -driver = "localhome" +events = 0 {{< /highlight >}} {{% /dir %}} -{{% dir name="drivers" type="map[string]map[string]interface{}" default="localhome" %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L64) -{{< highlight toml >}} -[grpc.services.storageprovider.drivers.localhome] -root = "/var/tmp/reva/" -share_folder = "/MyShares" -user_layout = "{{.Username}}" +# _struct: eventconfig_ +{{% dir name="nats_address" type="string" default="address of the nats server" %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L76) +{{< highlight toml >}} +[grpc.services.storageprovider] +nats_address = "address of the nats server" {{< /highlight >}} {{% /dir %}} -{{% dir name="data_server_url" type="string" default="http://localhost/data" %}} -The URL for the data server. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L65) +{{% dir name="nats_clusterid" type="string" default="clusterid of the nats server" %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L77) {{< highlight toml >}} [grpc.services.storageprovider] -data_server_url = "http://localhost/data" +nats_clusterid = "clusterid of the nats server" {{< /highlight >}} {{% /dir %}} -{{% dir name="expose_data_server" type="bool" default=false %}} -Whether to expose data server. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L66) +{{% dir name="tls_insecure" type="bool" default=Whether to verify the server TLS certificates. %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L78) {{< highlight toml >}} [grpc.services.storageprovider] -expose_data_server = false +tls_insecure = Whether to verify the server TLS certificates. {{< /highlight >}} {{% /dir %}} -{{% dir name="available_checksums" type="map[string]uint32" default=nil %}} -List of available checksums. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L67) +{{% dir name="tls_root_ca_cert" type="string" default="The root CA certificate used to validate the server's TLS certificate." %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L79) {{< highlight toml >}} [grpc.services.storageprovider] -available_checksums = nil +tls_root_ca_cert = "The root CA certificate used to validate the server's TLS certificate." {{< /highlight >}} {{% /dir %}} -{{% dir name="custom_mimetypes_json" type="string" default="nil" %}} -An optional mapping file with the list of supported custom file extensions and corresponding mime types. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L68) +{{% dir name="nats_enable_tls" type="bool" default=events tls switch %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L80) {{< highlight toml >}} [grpc.services.storageprovider] -custom_mimetypes_json = "nil" +nats_enable_tls = events tls switch {{< /highlight >}} {{% /dir %}} -{{% dir name="upload_expiration" type="int64" default=0 %}} -Duration for how long uploads will be valid. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L70) +{{% dir name="nats_username" type="string" default="event stream username" %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L81) {{< highlight toml >}} [grpc.services.storageprovider] -upload_expiration = 0 +nats_username = "event stream username" {{< /highlight >}} {{% /dir %}} -{{% dir name="events" type="eventconfig" default=0 %}} -Event stream configuration [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L71) +{{% dir name="nats_password" type="string" default="event stream password" %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L82) {{< highlight toml >}} [grpc.services.storageprovider] -events = 0 +nats_password = "event stream password" {{< /highlight >}} {{% /dir %}}