commit 3525302160
Merge:03814af648c033e193Author: Benedikt Kulmann <benedikt@kulmann.biz> Date: Mon Feb 6 14:30:10 2023 +0100 Merge pull request #5463 from owncloud/kill-the-settings-ui [full-ci] change: remove the settings ui
This commit is contained in:
1 parent
af8dcb27d9
commit
d8c55caaea
10 files changed
+23
-143
No files matched your search
@@ -131,7 +131,7 @@ a| [subs=-attributes]
|
||||
++groupOfNames ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
The object class to use for groups in the default group search filter ('groupOfNames').
|
||||
The object class to use for groups in the default group search filter ('groupOfNames').
|
||||
|
||||
a| `LDAP_GROUP_SCHEMA_DISPLAYNAME`
|
||||
|
||||
@@ -181,7 +181,7 @@ a| [subs=-attributes]
|
||||
++ownclouduuid ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
LDAP Attribute to use as the unique id for groups. This should be a stable globally unique ID like a UUID.
|
||||
LDAP Attribute to use as the unique id for groups. This should be a stable globally unique id (e.g. a UUID).
|
||||
|
||||
a| `LDAP_GROUP_SCHEMA_ID_IS_OCTETSTRING`
|
||||
|
||||
@@ -197,7 +197,7 @@ a| [subs=-attributes]
|
||||
++false ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
Set this to true if the defined 'id' attribute for groups is of the 'OCTETSTRING' syntax. This is e.g. required when using the 'objectGUID' attribute of Active Directory for the group ID's.
|
||||
Set this to true if the defined 'id' attribute for groups is of the 'OCTETSTRING' syntax. This is e.g. required when using the 'objectGUID' attribute of Active Directory for the group IDs.
|
||||
|
||||
a| `LDAP_GROUP_SCHEMA_MAIL`
|
||||
|
||||
@@ -246,7 +246,7 @@ a| [subs=-attributes]
|
||||
++sub ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
LDAP search scope to use when looking up groups. Supported scopes are 'base', 'one' and 'sub'.
|
||||
LDAP search scope to use when looking up groups. Supported values are 'base', 'one' and 'sub'.
|
||||
|
||||
a| `LDAP_INSECURE`
|
||||
|
||||
@@ -370,7 +370,7 @@ a| [subs=-attributes]
|
||||
++ownclouduuid ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
LDAP Attribute to use as the unique id for users. This should be a stable globally unique id like a UUID.
|
||||
LDAP Attribute to use as the unique id for users. This should be a stable globally unique ID like a UUID.
|
||||
|
||||
a| `LDAP_USER_SCHEMA_ID_IS_OCTETSTRING`
|
||||
|
||||
@@ -386,7 +386,7 @@ a| [subs=-attributes]
|
||||
++false ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
Set this to true if the defined 'id' attribute for users is of the 'OCTETSTRING' syntax. This is e.g. required when using the 'objectGUID' attribute of Active Directory for the user id's.
|
||||
Set this to true if the defined 'id' attribute for users is of the 'OCTETSTRING' syntax. This is e.g. required when using the 'objectGUID' attribute of Active Directory for the user IDs.
|
||||
|
||||
a| `LDAP_USER_SCHEMA_MAIL`
|
||||
|
||||
@@ -440,7 +440,7 @@ a| [subs=-attributes]
|
||||
++sub ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
LDAP search scope to use when looking up users. Supported scopes are 'base', 'one' and 'sub'.
|
||||
LDAP search scope to use when looking up users. Supported values are 'base', 'one' and 'sub'.
|
||||
|
||||
a| `OCIS_ADMIN_USER_ID`
|
||||
|
||||
@@ -466,13 +466,13 @@ a| [subs=attributes+]
|
||||
* xref:{s-path}/storage-users.adoc[storage-users] +
|
||||
|
||||
a| [subs=-attributes]
|
||||
++[]string ++
|
||||
++string ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
++[] ++
|
||||
++ ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
Node addresses to use for the cache store.
|
||||
A comma-separated list of addresses to connect to. Only valid if the above setting is set to "etcd"
|
||||
|
||||
a| `OCIS_CACHE_STORE_SIZE`
|
||||
|
||||
@@ -501,10 +501,10 @@ a| [subs=-attributes]
|
||||
++string ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
++memory ++
|
||||
++ ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
Store implementation for the cache. Valid values are "memory" (default), "redis", and "etcd".
|
||||
The type of the cache store. Valid options are "noop", "ocmem", "etcd" and "memory"
|
||||
|
||||
a| `OCIS_CORS_ALLOW_CREDENTIALS`
|
||||
|
||||
@@ -593,7 +593,7 @@ a| [subs=-attributes]
|
||||
++false ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
Enable TLS for the connection to the events broker. The events broker is the ocis service which receives and delivers events between the services.
|
||||
Enable TLS for the connection to the events broker. The events broker is the ocis service which receives and delivers events between the services..
|
||||
|
||||
a| `OCIS_GRPC_CLIENT_TLS_CACERT`
|
||||
|
||||
@@ -849,7 +849,7 @@ a| [subs=-attributes]
|
||||
++false ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
Whether the ocis server should skip the client certificate verification during the TLS handshake.
|
||||
Whether the NATS server should skip the client certificate verification during the TLS handshake.
|
||||
|
||||
a| `OCIS_JWT_SECRET`
|
||||
|
||||
@@ -1073,7 +1073,7 @@ a| [subs=-attributes]
|
||||
++ ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
Machine auth API key used to validate internal requests necessary to access resources from other services.
|
||||
Machine auth API key used to validate internal requests necessary for the access to resources from other services.
|
||||
|
||||
a| `OCIS_OIDC_ISSUER`
|
||||
|
||||
@@ -1093,7 +1093,7 @@ a| [subs=-attributes]
|
||||
++https://localhost:9200 ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
The identity provider value to set in the group IDs of the CS3 group objects for groups returned by this group provider.
|
||||
The identity provider value to set in the userids of the CS3 user objects for users returned by this user provider.
|
||||
|
||||
a| `OCIS_SYSTEM_USER_API_KEY`
|
||||
|
||||
@@ -1131,7 +1131,7 @@ a| [subs=-attributes]
|
||||
++ ++
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
a| `OCIS_SYSTEM_USER_IDP`
|
||||
|
||||
@@ -1331,10 +1331,10 @@ a| [subs=-attributes]
|
||||
++string ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
++https://127.0.0.1:9200 ++
|
||||
++https://localhost:9200 ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
URL, where oCIS is reachable for users.
|
||||
The identity provider value to set in the userids of the CS3 user objects for users returned by this user provider.
|
||||
|
||||
a| `REVA_GATEWAY`
|
||||
|
||||
@@ -1369,7 +1369,7 @@ a| [subs=-attributes]
|
||||
++127.0.0.1:9142 ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
CS3 gateway used to look up user metadata
|
||||
The CS3 gateway endpoint.
|
||||
|
||||
a| `STORAGE_TRANSFER_SECRET`
|
||||
|
||||
|
||||
@@ -187,15 +187,6 @@ a| [subs=-attributes]
|
||||
a| [subs=-attributes]
|
||||
Subdirectory that serves as the root for this HTTP service.
|
||||
|
||||
a|`SETTINGS_CACHE_TTL` +
|
||||
|
||||
a| [subs=-attributes]
|
||||
++int ++
|
||||
a| [subs=-attributes]
|
||||
++604800 ++
|
||||
a| [subs=-attributes]
|
||||
Browser cache control max-age value in seconds for settings Web UI assets.
|
||||
|
||||
a|`OCIS_CORS_ALLOW_ORIGINS` +
|
||||
`SETTINGS_CORS_ALLOW_ORIGINS` +
|
||||
|
||||
@@ -365,15 +356,6 @@ a| [subs=-attributes]
|
||||
a| [subs=-attributes]
|
||||
ID of the user that should receive admin privileges.
|
||||
|
||||
a|`SETTINGS_ASSET_PATH` +
|
||||
|
||||
a| [subs=-attributes]
|
||||
++string ++
|
||||
a| [subs=-attributes]
|
||||
++ ++
|
||||
a| [subs=-attributes]
|
||||
Serve settings Web UI assets from a path on the filesystem instead of the builtin assets. Can be used for development and customization.
|
||||
|
||||
a|`OCIS_JWT_SECRET` +
|
||||
`SETTINGS_JWT_SECRET` +
|
||||
|
||||
|
||||
@@ -102,9 +102,6 @@ policies:
|
||||
service: com.owncloud.graph.graph
|
||||
- endpoint: /api/v0/settings
|
||||
service: com.owncloud.web.settings
|
||||
- endpoint: /settings.js
|
||||
service: com.owncloud.web.settings
|
||||
unprotected: true
|
||||
oidc:
|
||||
issuer: https://localhost:9200
|
||||
insecure: false
|
||||
|
||||
@@ -23,7 +23,6 @@ http:
|
||||
cert: ""
|
||||
key: ""
|
||||
root: /
|
||||
cache_ttl: 604800
|
||||
cors:
|
||||
allow_origins:
|
||||
- '*'
|
||||
@@ -59,8 +58,6 @@ metadata_config:
|
||||
system_user_idp: internal
|
||||
system_user_api_key: ""
|
||||
admin_user_id: ""
|
||||
asset:
|
||||
path: ""
|
||||
token_manager:
|
||||
jwt_secret: ""
|
||||
set_default_assignments: false
|
||||
@@ -19,7 +19,6 @@
|
||||
| OCIS_HTTP_TLS_CERTIFICATE | string | | Path/File name of the TLS server certificate (in PEM format) for the http services.|
|
||||
| OCIS_HTTP_TLS_KEY | string | | Path/File name for the TLS certificate key (in PEM format) for the server certificate to use for the http services.|
|
||||
| SETTINGS_HTTP_ROOT | string | / | Subdirectory that serves as the root for this HTTP service.|
|
||||
| SETTINGS_CACHE_TTL | int | 604800 | Browser cache control max-age value in seconds for settings Web UI assets.|
|
||||
| OCIS_CORS_ALLOW_ORIGINS<br/>SETTINGS_CORS_ALLOW_ORIGINS | []string | [*] | A comma-separated list of allowed CORS origins. See following chapter for more details: *Access-Control-Allow-Origin* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin|
|
||||
| OCIS_CORS_ALLOW_METHODS<br/>SETTINGS_CORS_ALLOW_METHODS | []string | [GET POST PUT PATCH DELETE OPTIONS] | A comma-separated list of allowed CORS methods. See following chapter for more details: *Access-Control-Request-Method* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Method|
|
||||
| OCIS_CORS_ALLOW_HEADERS<br/>SETTINGS_CORS_ALLOW_HEADERS | []string | [Authorization Origin Content-Type Accept X-Requested-With] | A comma-separated list of allowed CORS headers. See following chapter for more details: *Access-Control-Request-Headers* at https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Request-Headers.|
|
||||
@@ -38,6 +37,5 @@
|
||||
| OCIS_SYSTEM_USER_IDP<br/>SETTINGS_SYSTEM_USER_IDP | string | internal | IDP of the oCIS STORAGE-SYSTEM system user.|
|
||||
| OCIS_SYSTEM_USER_API_KEY | string | | API key for the STORAGE-SYSTEM system user.|
|
||||
| OCIS_ADMIN_USER_ID<br/>SETTINGS_ADMIN_USER_ID | string | | ID of the user that should receive admin privileges.|
|
||||
| SETTINGS_ASSET_PATH | string | | Serve settings Web UI assets from a path on the filesystem instead of the builtin assets. Can be used for development and customization.|
|
||||
| OCIS_JWT_SECRET<br/>SETTINGS_JWT_SECRET | string | | The secret to mint and validate jwt tokens.|
|
||||
| SETTINGS_SETUP_DEFAULT_ASSIGNMENTS<br/>ACCOUNTS_DEMO_USERS_AND_GROUPS | bool | false | The default role assignments the demo users should be setup.|
|
||||
@@ -14,16 +14,8 @@ When using oCIS, the requirement to store settings arises. This extension provid
|
||||
for other extensions to register new settings within oCIS. It is responsible for storing the respective
|
||||
settings values as well.
|
||||
|
||||
For ease of use, this extension provides an ocis-web extension which allows users to change their settings values.
|
||||
Please refer to the [ocis-web extension docs]({{< ref "../../ocis/development/extensions/#external-ownCloud-Web-apps" >}})
|
||||
for running ocis-web extensions.
|
||||
|
||||
{{< mermaid class="text-center">}}
|
||||
graph TD
|
||||
subgraph ow[ocis-web]
|
||||
ows[ocis-web-settings]
|
||||
owc[ocis-web-core]
|
||||
end
|
||||
ows ---|"listSettingsBundles(),<br>saveSettingsValue(value)"| os[ocis-settings]
|
||||
owc ---|"listSettingsValues()"| sdk[oC SDK]
|
||||
sdk --- sdks{ocis-settings<br>available?}
|
||||
@@ -36,15 +28,9 @@ The diagram shows how the settings service integrates into oCIS:
|
||||
|
||||
**Settings management:**
|
||||
- oCIS extensions can register *settings bundles* with the ocis-settings service.
|
||||
- The settings frontend can be plugged into ocis-web, showing forms for changing *settings values* as a user.
|
||||
The forms are generated from the registered *settings bundles*.
|
||||
|
||||
**Settings usage:**
|
||||
- Extensions can query ocis-settings for *settings values* of a user.
|
||||
- The ownCloud SDK, used as a data abstraction layer for ocis-web, will query ocis-settings for *settings values* of a user,
|
||||
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
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@ In the context of this extension and oCIS in general, we are using the following
|
||||
- Application level settings
|
||||
- e.g. default language
|
||||
- Can be modified at runtime without restarting the service
|
||||
- Typically modified in the UI
|
||||
|
||||
### Preferences
|
||||
|
||||
@@ -38,5 +37,4 @@ In the context of this extension and oCIS in general, we are using the following
|
||||
|
||||
- Manifestation of a setting for a specific user
|
||||
- E.g. used for customization (at runtime) in `ocis-web`
|
||||
- `ocis-web-settings` extension for modifying settings values is provided by this service
|
||||
- Can be queried and modified by other oCIS extensions
|
||||
@@ -10,7 +10,7 @@ geekdocFilePath: releasing.md
|
||||
|
||||
## Requirements
|
||||
|
||||
You need a working installation of [the Go programming language](https://golang.org/), [the Node runtime](https://nodejs.org/) and [the pnpm package manager](https://pnpm.io) installed to build the assets for a working release.
|
||||
You need a working installation of [the Go programming language](https://golang.org/).
|
||||
|
||||
## Releasing
|
||||
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
---
|
||||
title: "Tests"
|
||||
weight: 90
|
||||
geekdocRepo: https://github.com/owncloud/ocis
|
||||
geekdocEditPath: edit/master/docs/services/settings
|
||||
geekdocFilePath: tests.md
|
||||
---
|
||||
|
||||
{{< toc >}}
|
||||
|
||||
## Requirements
|
||||
|
||||
You need a working installation of [the Go programming language](https://golang.org/), [the Node runtime](https://nodejs.org/) and [the pnpm package manager](https://pnpm.io/) installed to run the acceptance tests. You may also want to use [Docker](https://www.docker.com/) to start the necessary services in their respective containers.
|
||||
|
||||
## Acceptance Tests
|
||||
|
||||
Make sure you've cloned the [web frontend repo](https://github.com/owncloud/web/) and the [infinite scale repo](https://github.com/owncloud/ocis/) next to each other. If your file/folder structure is different, you'll have to change the paths below accordingly.
|
||||
|
||||
### In the web repo
|
||||
|
||||
#### **Optional:** Build web to test local changes
|
||||
|
||||
Install dependencies and bundle the frontend with a watcher by running
|
||||
|
||||
```bash
|
||||
pnpm install && pnpm build:w
|
||||
```
|
||||
|
||||
If you skip the step above, the currently bundled frontend from the oCIS binary will be used.
|
||||
|
||||
#### Dockerized acceptance test services
|
||||
|
||||
Start the necessary acceptance test services by using Docker (Compose):
|
||||
|
||||
```bash
|
||||
docker compose up selenium middleware-ocis vnc
|
||||
```
|
||||
|
||||
### In the oCIS repo
|
||||
|
||||
#### **Optional:** Build settings UI to test local changes
|
||||
|
||||
Navigate into the settings service via `cd ../settings/` and install dependencies and build the bundled settings UI with a watcher by running
|
||||
|
||||
```bash
|
||||
pnpm install && pnpm watch
|
||||
```
|
||||
|
||||
#### Start oCIS from binary
|
||||
|
||||
Navigate into the oCIS directory inside the oCIS repository and build the oCIS binary by running
|
||||
|
||||
```bash
|
||||
make clean build
|
||||
```
|
||||
|
||||
Then, start oCIS from the binary via
|
||||
|
||||
```bash
|
||||
ocis init
|
||||
OCIS_URL=https://host.docker.internal:9200 OCIS_INSECURE=true PROXY_ENABLE_BASIC_AUTH=true WEB_UI_CONFIG=../../web/dev/docker/ocis.web.config.json ./bin/ocis server
|
||||
```
|
||||
|
||||
If you've built the web bundle locally in its repository, you also need to reference the bundle output in the command above: `WEB_ASSET_PATH=../../web/dist`
|
||||
|
||||
If you've built the settings UI bundle locally, you also need to reference the bundle output in the command above: `SETTINGS_ASSET_PATH=../settings/assets/`
|
||||
|
||||
#### Run settings acceptance tests
|
||||
|
||||
If you want visual feedback on the test run, visit http://host.docker.internal:6080/ in your browser and connect to the VNC client.
|
||||
|
||||
Navigate into the settings service via `cd ../settings/` and start the acceptance tests by running
|
||||
|
||||
```bash
|
||||
SERVER_HOST=https://host.docker.internal:9200 BACKEND_HOST=https://host.docker.internal:9200 RUN_ON_OCIS=true NODE_TLS_REJECT_UNAUTHORIZED=0 WEB_PATH=../../web WEB_UI_CONFIG=../../web/tests/drone/config-ocis.json MIDDLEWARE_HOST=http://host.docker.internal:3000 ./ui/tests/run-acceptance-test.sh ./ui/tests/acceptance/features/
|
||||
```
|
||||
@@ -8,8 +8,7 @@ geekdocFilePath: values.md
|
||||
---
|
||||
|
||||
A **Settings Value** is the value an authenticated user has chosen for a specific setting, defined in a
|
||||
*settings bundle*. For choosing settings values as a user the sole entry point is the ocis-web extension
|
||||
provided by this service.
|
||||
*settings bundle*.
|
||||
|
||||
## Identifying settings values
|
||||
|
||||
@@ -68,8 +67,7 @@ a JWT, providing it in the HTTP header as `x-access-token`. That UUID is then us
|
||||
```
|
||||
|
||||
## gRPC endpoints
|
||||
The obvious way of modifying settings is the ocis-web extension, as described earlier. However, services can
|
||||
use the respective gRPC endpoints of the `ValueService` to query and modify *settings values* as well.
|
||||
Services can use gRPC endpoints of the `ValueService` to query and modify *settings values*.
|
||||
The gRPC endpoints require the same identifier attributes as described above, so for making a request to
|
||||
the `ValueService` you will have to make sure that the accountUuid of the authenticated user is available in
|
||||
your service at the time of the request.
|
||||
Reference in new issue
Block a user