Skip to content

Commit

Permalink
Merge branch 'master' into searchInProjectSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
ScharfViktor authored Jun 30, 2022
2 parents 01677b3 + 86f7366 commit 6b5748e
Show file tree
Hide file tree
Showing 73 changed files with 845 additions and 882 deletions.
2 changes: 1 addition & 1 deletion .drone.star
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ config = {
"earlyFail": True,
},
"settingsUITests": {
"skip": True,
"skip": False,
"earlyFail": True,
},
"parallelApiTests": {
Expand Down
5 changes: 2 additions & 3 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
accounts/ @kulmann @pascalwengerter @paulcod3
settings/ @kulmann @pascalwengerter @paulcod3
web/ @kulmann @pascalwengerter
services/settings/ @kulmann @pascalwengerter @lookacat
services/web/ @kulmann @pascalwengerter
.drone.star @wkloucek @micbar @phil-davis @individual-it
10 changes: 2 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,13 @@ updates:
open-pull-requests-limit: 2

- package-ecosystem: "npm"
directory: "/accounts"
directory: "/services/settings"
schedule:
interval: "weekly"
open-pull-requests-limit: 2

- package-ecosystem: "npm"
directory: "/settings"
schedule:
interval: "weekly"
open-pull-requests-limit: 2

- package-ecosystem: "npm"
directory: "/idp"
directory: "/services/idp"
schedule:
interval: "weekly"
open-pull-requests-limit: 2
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The following sections list the changes for unreleased.
## Summary

* Bugfix - CSP rules for silent token refresh in iframe: [#4031](https://github.com/owncloud/ocis/pull/4031)
* Bugfix - Remove unused configuration options: [#3973](https://github.com/owncloud/ocis/pull/3973)
* Enhancement - Add capability for alias links: [#3983](https://github.com/owncloud/ocis/issues/3983)
* Enhancement - Refactor extensions to services: [#3980](https://github.com/owncloud/ocis/pull/3980)

Expand All @@ -21,6 +22,19 @@ The following sections list the changes for unreleased.
https://github.com/owncloud/web/issues/7030
https://github.com/owncloud/ocis/pull/4031

* Bugfix - Remove unused configuration options: [#3973](https://github.com/owncloud/ocis/pull/3973)

We've removed multiple unused configuration options:

- `STORAGE_SYSTEM_DATAPROVIDER_INSECURE`, see also cs3org/reva#2993 -
`STORAGE_USERS_DATAPROVIDER_INSECURE`, see also cs3org/reva#2993 -
`STORAGE_SYSTEM_TEMP_FOLDER`, see also cs3org/reva#2993 -
`STORAGE_USERS_TEMP_FOLDER`, see also cs3org/reva#2993 - `WEB_UI_CONFIG_VERSION`, see
also owncloud/web#7130 - `GATEWAY_COMMIT_SHARE_TO_STORAGE_REF`, see also
cs3org/reva#3017

https://github.com/owncloud/ocis/pull/3973

* Enhancement - Add capability for alias links: [#3983](https://github.com/owncloud/ocis/issues/3983)

For better UX clients need a way to discover if alias links are supported by the server. We added a
Expand Down
12 changes: 12 additions & 0 deletions changelog/unreleased/fix-remove-unused-config-options.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Bugfix: Remove unused configuration options

We've removed multiple unused configuration options:

- `STORAGE_SYSTEM_DATAPROVIDER_INSECURE`, see also cs3org/reva#2993
- `STORAGE_USERS_DATAPROVIDER_INSECURE`, see also cs3org/reva#2993
- `STORAGE_SYSTEM_TEMP_FOLDER`, see also cs3org/reva#2993
- `STORAGE_USERS_TEMP_FOLDER`, see also cs3org/reva#2993
- `WEB_UI_CONFIG_VERSION`, see also owncloud/web#7130
- `GATEWAY_COMMIT_SHARE_TO_STORAGE_REF`, see also cs3org/reva#3017

https://github.com/owncloud/ocis/pull/3973
7 changes: 7 additions & 0 deletions docs/services/graph-explorer/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ geekdocFilePath: _index.md
geekdocCollapseSection: true
---

## Abstract


This service embeds [Graph-Explorer](https://github.com/owncloud/ocis/tree/master/graph-explorer) to provide a UI for ownCloud Infinite Scale.

## Table of Contents

{{< toc-tree >}}
4 changes: 4 additions & 0 deletions docs/services/graph/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ geekdocFilePath: _index.md
geekdocCollapseSection: true
---

## Abstract

This service provides a simple graph world API which can be used by clients or other extensions.

## Table of Contents

{{< toc-tree >}}
6 changes: 6 additions & 0 deletions docs/services/idp/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ geekdocFilePath: _index.md
geekdocCollapseSection: true
---

## Abstract

This service provides an OpenID Connect provider which is the default way to authenticate in oCIS.

## Table of Contents

{{< toc-tree >}}
1 change: 1 addition & 0 deletions docs/services/ocdav/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ geekdocCollapseSection: true
---

## Abstract
This service provides the WebDAV API which is required by ownCloud clients. Previews (thumbnails) are provided by the [WebDAV service]({{ ../../webdav }}).


## Table of Contents
Expand Down
6 changes: 6 additions & 0 deletions docs/services/ocs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ geekdocFilePath: _index.md
geekdocCollapseSection: true
---

## Abstract

This service provides the OCS API which is required by some ownCloud clients.

## Table of Contents

{{< toc-tree >}}
8 changes: 7 additions & 1 deletion docs/services/proxy/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ geekdocFilePath: _index.md
geekdocCollapseSection: true
---

This service provides a proxy service that routes requests to the correct extensions.
## Abstract

The proxy service acts as an API Gateway and routes requests to the correct target service. It also provides standard proxy services.

## Table of Contents

{{< toc-tree >}}
6 changes: 6 additions & 0 deletions docs/services/search/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ geekdocFilePath: _index.md
geekdocCollapseSection: true
---

## Abstract

This service provides search functionality.

## Table of Contents

{{< toc-tree >}}
4 changes: 4 additions & 0 deletions docs/services/settings/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ The forms are generated from the registered *settings bundles*.
if it's available. The SDK uses sensible defaults when ocis-settings is not part of the setup.

For compatibility with ownCloud 10, a migration of ownCloud 10 settings into the storage of ocis-settings will be available.

## Table of Contents

{{< toc-tree >}}
6 changes: 6 additions & 0 deletions docs/services/sharing/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ geekdocFilePath: _index.md
geekdocCollapseSection: true
---

## Abstract

This service provides sharing functionality.

## Table of Contents

{{< toc-tree >}}
7 changes: 7 additions & 0 deletions docs/services/store/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ geekdocFilePath: _index.md
geekdocCollapseSection: true
---

## Abstract

This service provides ...


## Table of Contents

{{< toc-tree >}}
9 changes: 8 additions & 1 deletion docs/services/thumbnails/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ geekdocFilePath: _index.md
geekdocCollapseSection: true
---

This service provides an ocis extensions which generates thumbnails for image files.
## Abstract

The thumbnail service generates thumbnails for image files.


## Table of Contents

{{< toc-tree >}}
9 changes: 8 additions & 1 deletion docs/services/web/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ geekdocFilePath: _index.md
geekdocCollapseSection: true
---

This service embeds [ownCloud Web](https://github.com/owncloud/web) to provide a UI for ownCloud Infinite Scale.
## Abstract

The web service embeds [ownCloud Web](https://github.com/owncloud/web) to provide a UI for ownCloud Infinite Scale.


## Table of Contents

{{< toc-tree >}}
10 changes: 8 additions & 2 deletions docs/services/webdav/_index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: WebDaV
title: WebDAV
date: 2018-05-02T00:00:00+00:00
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
Expand All @@ -8,4 +8,10 @@ geekdocFilePath: _index.md
geekdocCollapseSection: true
---

This service provides the WebDAV API which is required by some ownCloud clients.
## Abstract

This service provides preview (thumbnails) endpoints on the WebDAV API and therefore extends the main WebDAV API provided by the [oCDAV service]({{ ../../ocdav }}).

## Table of Contents

{{< toc-tree >}}
6 changes: 3 additions & 3 deletions ocis-pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ type Config struct {

Mode Mode // DEPRECATED
File string
OcisURL string `yaml:"ocis_url"`
OcisURL string `yaml:"ocis_url" desc:"URL, where oCIS is reachable for users."`

Registry string `yaml:"registry"`
TokenManager *shared.TokenManager `yaml:"token_manager"`
MachineAuthAPIKey string `yaml:"machine_auth_api_key" env:"OCIS_MACHINE_AUTH_API_KEY" desc:"Machine auth API key used for accessing the 'auth-machine' service to impersonate users."`
TransferSecret string `yaml:"transfer_secret" env:"STORAGE_TRANSFER_SECRET"`
SystemUserID string `yaml:"system_user_id" env:"OCIS_SYSTEM_USER_ID"`
SystemUserAPIKey string `yaml:"system_user_api_key" env:"OCIS_SYSTEM_USER_API_KEY"`
SystemUserID string `yaml:"system_user_id" env:"OCIS_SYSTEM_USER_ID" desc:"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."`
SystemUserAPIKey string `yaml:"system_user_api_key" env:"OCIS_SYSTEM_USER_API_KEY" desc:"API key for the storage-system system user."`
AdminUserID string `yaml:"admin_user_id" env:"OCIS_ADMIN_USER_ID" desc:"ID of a user, that should receive admin privileges."`
Runtime Runtime `yaml:"runtime"`

Expand Down
4 changes: 2 additions & 2 deletions ocis-pkg/shared/shared_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ type Reva struct {
type Commons struct {
Log *Log `yaml:"log"`
Tracing *Tracing `yaml:"tracing"`
OcisURL string `yaml:"ocis_url" env:"OCIS_URL"`
OcisURL string `yaml:"ocis_url" env:"OCIS_URL" desc:"URL, where oCIS is reachable for users."`
TokenManager *TokenManager `yaml:"token_manager"`
Reva *Reva `yaml:"reva"`
MachineAuthAPIKey string `yaml:"machine_auth_api_key" env:"OCIS_MACHINE_AUTH_API_KEY" desc:"Machine auth API key used for accessing the 'auth-machine' service to impersonate users."`
TransferSecret string `yaml:"transfer_secret,omitempty" env:"REVA_TRANSFER_SECRET"`
SystemUserID string `yaml:"system_user_id" env:"OCIS_SYSTEM_USER_ID"`
SystemUserID string `yaml:"system_user_id" env:"OCIS_SYSTEM_USER_ID" desc:"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."`
SystemUserAPIKey string `yaml:"system_user_api_key" env:"SYSTEM_USER_API_KEY"`
AdminUserID string `yaml:"admin_user_id" env:"OCIS_ADMIN_USER_ID" desc:"ID of a user, that should receive admin privileges."`
}
12 changes: 0 additions & 12 deletions ocis/pkg/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ type InsecureProxyExtension struct {
InsecureBackends bool `yaml:"insecure_backends"`
}

type DataProviderInsecureSettings struct {
DataProviderInsecure bool `yaml:"data_provider_insecure"`
}

type LdapSettings struct {
BindPassword string `yaml:"bind_password"`
}
Expand Down Expand Up @@ -114,8 +110,6 @@ type OcisConfig struct {
AuthBearer AuthbearerExtension `yaml:"auth_bearer"`
Users UsersAndGroupsExtension
Groups UsersAndGroupsExtension
StorageSystem DataProviderInsecureSettings `yaml:"storage_system"`
StorageUsers DataProviderInsecureSettings `yaml:"storage_users"`
Ocdav InsecureExtension
Thumbnails ThumbnailExtension
}
Expand Down Expand Up @@ -289,12 +283,6 @@ func CreateConfig(insecure, forceOverwrite bool, configPath, adminPassword strin
cfg.Proxy = InsecureProxyExtension{
InsecureBackends: true,
}
cfg.StorageSystem = DataProviderInsecureSettings{
DataProviderInsecure: true,
}
cfg.StorageUsers = DataProviderInsecureSettings{
DataProviderInsecure: true,
}

cfg.Thumbnails.Thumbnail.WebdavAllowInsecure = true
cfg.Thumbnails.Thumbnail.Cs3AllowInsecure = true
Expand Down
2 changes: 1 addition & 1 deletion services/app-provider/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type Debug struct {
}

type GRPCConfig struct {
Addr string `yaml:"addr" env:"APP_PROVIDER_GRPC_ADDR" desc:"The address of the grpc service."`
Addr string `yaml:"addr" env:"APP_PROVIDER_GRPC_ADDR" desc:"The bind address of the GRPC service."`
Namespace string `yaml:"-"`
Protocol string `yaml:"protocol" env:"APP_PROVIDER_GRPC_PROTOCOL" desc:"The transport protocol of the grpc service."`
}
Expand Down
2 changes: 1 addition & 1 deletion services/app-registry/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ type Debug struct {
}

type GRPCConfig struct {
Addr string `yaml:"addr" env:"APP_REGISTRY_GRPC_ADDR" desc:"The address of the grpc service."`
Addr string `yaml:"addr" env:"APP_REGISTRY_GRPC_ADDR" desc:"The bind address of the GRPC service."`
Namespace string `yaml:"-"`
Protocol string `yaml:"protocol" env:"APP_REGISTRY_GRPC_PROTOCOL" desc:"The transport protocol of the grpc service."`
}
Expand Down
4 changes: 2 additions & 2 deletions services/auth-basic/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Config struct {
TokenManager *TokenManager `yaml:"token_manager"`
Reva *Reva `yaml:"reva"`

SkipUserGroupsInToken bool `yaml:"skip_user_groups_in_token" env:"AUTH_BASIC_SKIP_USER_GROUPS_IN_TOKEN" desc:"Disables the encoding of the user's groupmember ships in the reva access token. To reduces token size, especially when users are members of a large number of groups."`
SkipUserGroupsInToken bool `yaml:"skip_user_groups_in_token" env:"AUTH_BASIC_SKIP_USER_GROUPS_IN_TOKEN" desc:"Disables the encoding of the user's group memberships in the reva access token. This reduces the token size, especially when users are members of a large number of groups."`
AuthProvider string `yaml:"auth_provider" env:"AUTH_BASIC_AUTH_PROVIDER" desc:"The auth provider which should be used by the service (e.g. 'ldap')."`
AuthProviders AuthProviders `yaml:"auth_providers"`

Expand Down Expand Up @@ -51,7 +51,7 @@ type Debug struct {
}

type GRPCConfig struct {
Addr string `yaml:"addr" env:"AUTH_BASIC_GRPC_ADDR" desc:"The address of the grpc service."`
Addr string `yaml:"addr" env:"AUTH_BASIC_GRPC_ADDR" desc:"The bind address of the GRPC service."`
Namespace string `yaml:"-"`
Protocol string `yaml:"protocol" env:"AUTH_BASIC_GRPC_PROTOCOL" desc:"The transport protocol of the grpc service."`
}
Expand Down
4 changes: 2 additions & 2 deletions services/auth-bearer/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Config struct {
TokenManager *TokenManager `yaml:"token_manager"`
Reva *Reva `yaml:"reva"`

SkipUserGroupsInToken bool `yaml:"skip_user_groups_in_token" env:"AUTH_BEARER_SKIP_USER_GROUPS_IN_TOKEN" desc:"Skip storing all groups of a user in the jwt token."`
SkipUserGroupsInToken bool `yaml:"skip_user_groups_in_token" env:"AUTH_BEARER_SKIP_USER_GROUPS_IN_TOKEN" desc:"Disables the encoding of the user's group memberships in the reva access token. This reduces the token size, especially when users are members of a large number of groups."`

OIDC OIDC `yaml:"oidc"`

Expand Down Expand Up @@ -51,7 +51,7 @@ type Debug struct {
}

type GRPCConfig struct {
Addr string `yaml:"addr" env:"AUTH_BEARER_GRPC_ADDR" desc:"The address of the grpc service."`
Addr string `yaml:"addr" env:"AUTH_BEARER_GRPC_ADDR" desc:"The bind address of the GRPC service."`
Namespace string `yaml:"-"`
Protocol string `yaml:"protocol" env:"AUTH_BEARER_GRPC_PROTOCOL" desc:"The transport protocol of the grpc service."`
}
Expand Down
4 changes: 2 additions & 2 deletions services/auth-machine/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Config struct {
TokenManager *TokenManager `yaml:"token_manager"`
Reva *Reva `yaml:"reva"`

SkipUserGroupsInToken bool `yaml:"skip_user_groups_in_token" env:"AUTH_MACHINE_SKIP_USER_GROUPS_IN_TOKEN" desc:"Skip storing all groups of a user in the jwt token."`
SkipUserGroupsInToken bool `yaml:"skip_user_groups_in_token" env:"AUTH_MACHINE_SKIP_USER_GROUPS_IN_TOKEN" desc:"Disables the encoding of the user's group memberships in the reva access token. This reduces the token size, especially when users are members of a large number of groups."`

MachineAuthAPIKey string `yaml:"machine_auth_api_key" env:"OCIS_MACHINE_AUTH_API_KEY;AUTH_MACHINE_API_KEY" desc:"Machine auth API key used for validating requests from other services when impersonating users."`

Expand Down Expand Up @@ -51,7 +51,7 @@ type Debug struct {
}

type GRPCConfig struct {
Addr string `yaml:"addr" env:"AUTH_MACHINE_GRPC_ADDR" desc:"The address of the grpc service."`
Addr string `yaml:"addr" env:"AUTH_MACHINE_GRPC_ADDR" desc:"The bind address of the GRPC service."`
Namespace string `yaml:"-"`
Protocol string `yaml:"protocol" env:"AUTH_MACHINE_GRPC_PROTOCOL" desc:"The transport protocol of the grpc service."`
}
8 changes: 4 additions & 4 deletions services/frontend/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ type Config struct {

// JWTSecret used to verify reva access token

TransferSecret string `yaml:"transfer_secret" env:"STORAGE_TRANSFER_SECRET"`
TransferSecret string `yaml:"transfer_secret" env:"STORAGE_TRANSFER_SECRET" desc:"Transfer secret for signing file up- and download requests."`

TokenManager *TokenManager `yaml:"token_manager"`
Reva *Reva `yaml:"reva"`
MachineAuthAPIKey string `yaml:"machine_auth_api_key" env:"OCIS_MACHINE_AUTH_API_KEY;FRONTEND_MACHINE_AUTH_API_KEY" desc:"Machine auth API key used for accessing the 'auth-machine' service."`
MachineAuthAPIKey string `yaml:"machine_auth_api_key" env:"OCIS_MACHINE_AUTH_API_KEY;FRONTEND_MACHINE_AUTH_API_KEY" desc:"Machine auth API key used for accessing the 'auth-machine' service to impersonate users."`

SkipUserGroupsInToken bool `yaml:"skip_user_groups_in_token" env:"FRONTEND_SKIP_USER_GROUPS_IN_TOKEN" desc:"Disables the encoding of the user's group memberships in the reva access token. This reduces token size, especially when users are members of a large number of groups."`
SkipUserGroupsInToken bool `yaml:"skip_user_groups_in_token" env:"FRONTEND_SKIP_USER_GROUPS_IN_TOKEN" desc:"Disables the loading of user's group memberships from the reva access token."`

EnableFavorites bool `yaml:"enable_favorites" env:"FRONTEND_ENABLE_FAVORITES" desc:"Enables the support for favorites in the frontend."`
EnableProjectSpaces bool `yaml:"enable_project_spaces" env:"FRONTEND_ENABLE_PROJECT_SPACES" desc:"Indicates to clients that project spaces are supposed to be made available."`
Expand Down Expand Up @@ -72,7 +72,7 @@ type Debug struct {
}

type HTTPConfig struct {
Addr string `yaml:"addr" env:"FRONTEND_HTTP_ADDR" desc:"The address of the http service."`
Addr string `yaml:"addr" env:"FRONTEND_HTTP_ADDR" desc:"The bind address of the HTTP service."`
Namespace string `yaml:"-"`
Protocol string `yaml:"protocol" env:"FRONTEND_HTTP_PROTOCOL" desc:"The transport protocol of the http service."`
Prefix string `yaml:"prefix" env:"FRONTEND_HTTP_PREFIX" desc:"The Path prefix where the frontend can be accessed (defaults to /)."`
Expand Down
Loading

0 comments on commit 6b5748e

Please sign in to comment.