commit 9a5714a26f
Author: Martin <github@diemattels.at> Date: Tue Feb 7 11:21:00 2023 +0100 [docs-only] Replace the legacy Extensions with Services (#5518) * Replace the legacy Extensions with Services * Update docs/ocis/_index.md Co-authored-by: Michael Barz <mbarz@owncloud.com> --------- Co-authored-by: Michael Barz <mbarz@owncloud.com>
This commit is contained in:
1 parent
07fce1dee9
commit
e0cbb26b1d
11 files changed
+26
-26
No files matched your search
@@ -9,7 +9,7 @@ title: ownCloud
|
||||
Welcome to our developer documentation. Here you can find developer documentation on:
|
||||
|
||||
- [oCIS]({{< ref "./ocis" >}}) server
|
||||
- oCIS extensions
|
||||
- oCIS Services
|
||||
- Clients like:
|
||||
- [ownCloud Web](https://github.com/owncloud/web) - the new web frontend for oCIS and ownCloud
|
||||
- [ownCloud Android app](https://github.com/owncloud/android)
|
||||
|
||||
@@ -33,7 +33,7 @@ variables:
|
||||
description: ""
|
||||
do_ignore: true
|
||||
- rawname: MICRO_LOG_LEVEL
|
||||
path: ocis-pkg/log/log.go:35
|
||||
path: ocis-pkg/log/log.go:31
|
||||
foundincode: true
|
||||
name: MICRO_LOG_LEVEL
|
||||
type: ""
|
||||
@@ -41,7 +41,7 @@ variables:
|
||||
description: ""
|
||||
do_ignore: false
|
||||
- rawname: MICRO_LOG_LEVEL
|
||||
path: ocis-pkg/log/log.go:31
|
||||
path: ocis-pkg/log/log.go:35
|
||||
foundincode: true
|
||||
name: MICRO_LOG_LEVEL
|
||||
type: ""
|
||||
|
||||
+4
-4
@@ -35,18 +35,18 @@ When Marie enters that URL she will be presented with a login form on the `https
|
||||
|
||||
### oCIS microservice runtime
|
||||
|
||||
The oCIS runtime allows us to dynamically manage services running in a single process. We use [suture](https://github.com/thejerf/suture) to create a supervisor tree that starts each service in a dedicated goroutine. By default oCIS will start all built-in oCIS extensions in a single process. Individual services can be moved to other nodes to scale-out and meet specific performance requirements. A [go-micro](https://github.com/asim/go-micro/blob/master/registry/registry.go) based registry allows services in multiple nodes to form a distributed microservice architecture.
|
||||
The oCIS runtime allows us to dynamically manage services running in a single process. We use [suture](https://github.com/thejerf/suture) to create a supervisor tree that starts each service in a dedicated goroutine. By default oCIS will start all built-in oCIS services in a single process. Individual services can be moved to other nodes to scale-out and meet specific performance requirements. A [go-micro](https://github.com/asim/go-micro/blob/master/registry/registry.go) based registry allows services in multiple nodes to form a distributed microservice architecture.
|
||||
|
||||
### oCIS extensions
|
||||
### oCIS Services
|
||||
|
||||
Every oCIS extension uses [ocis-pkg](https://github.com/owncloud/ocis/tree/master/ocis-pkg), which implements the [go-micro](https://go-micro.dev/) interfaces for [servers](https://github.com/asim/go-micro/blob/v3.5.0/server/server.go#L17-L37) to register and [clients](https://github.com/asim/go-micro/blob/v3.5.0/client/client.go#L11-L23) to lookup nodes with a service [registry](https://github.com/asim/go-micro/blob/v3.5.0/registry/registry.go).
|
||||
Every oCIS service uses [ocis-pkg](https://github.com/owncloud/ocis/tree/master/ocis-pkg), which implements the [go-micro](https://go-micro.dev/) interfaces for [servers](https://github.com/asim/go-micro/blob/v3.5.0/server/server.go#L17-L37) to register and [clients](https://github.com/asim/go-micro/blob/v3.5.0/client/client.go#L11-L23) to lookup nodes with a service [registry](https://github.com/asim/go-micro/blob/v3.5.0/registry/registry.go).
|
||||
We are following the [12 Factor](https://12factor.net/) methodology with oCIS. The uniformity of services also allows us to use the same command, logging and configuration mechanism. Configurations are forwarded from the
|
||||
oCIS runtime to the individual extensions.
|
||||
|
||||
|
||||
### go-micro
|
||||
|
||||
While the [go-micro](https://go-micro.dev/) framework provides abstractions as well as implementations for the different components in a microservice architecture, it uses a more developer focused runtime philosophy: It is used to download services from a repo, compile them on the fly and start them as individual processes. For oCIS we decided to use a more admin friendly runtime: You can download a single binary and start the contained oCIS extensions with a single `bin/ocis server`. This also makes packaging easier.
|
||||
While the [go-micro](https://go-micro.dev/) framework provides abstractions as well as implementations for the different components in a microservice architecture, it uses a more developer focused runtime philosophy: It is used to download services from a repo, compile them on the fly and start them as individual processes. For oCIS we decided to use a more admin friendly runtime: You can download a single binary and start the contained oCIS services with a single `bin/ocis server`. This also makes packaging easier.
|
||||
|
||||
We use [ocis-pkg](https://github.com/owncloud/ocis/tree/master/ocis-pkg) to configure the default implementations for the go-micro [grpc server](https://github.com/asim/go-micro/tree/v3.5.0/plugins/server/grpc), [client](https://github.com/asim/go-micro/tree/v3.5.0/plugins/client/grpc) and [mdns registry](https://github.com/asim/go-micro/blob/v3.5.0/registry/mdns_registry.go), swapping them out as needed, e.g. to use the [kubernetes registry plugin](https://github.com/asim/go-micro/tree/v3.5.0/plugins/registry/kubernetes).
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ PROXY_TRANSPORT_TLS_CERT=./certs/your-host.crt \
|
||||
|
||||
If you generated these certificates on your own, you might need to set `OCIS_INSECURE` to `true`.
|
||||
|
||||
For more configuration options check the configuration section in [oCIS]({{< ref "../config" >}}) and the oCIS extensions.
|
||||
For more configuration options check the configuration section in [oCIS]({{< ref "../config" >}}) and the oCIS services.
|
||||
|
||||
## Start the oCIS fullstack server with Docker Compose
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ We assume that you already have oCIS deployed on one or multiple servers by usin
|
||||
|
||||
Telegraf will collect host metrics (CPU, RAM, network, processes, ...) and docker metrics (per container CPU, RAM, network, ...). Telegraf is also configured to scrape metrics from Prometheus metric endpoints which oCIS exposes, this is done by the Prometheus input plugin . The metrics from oCIS and all other metrics gathered will be exposed with the Prometheus output plugin and can therefore be scraped by our monitoring & tracing server.
|
||||
|
||||
Jaeger agent is being configured as target for traces in oCIS. It then will receive traces from all oCIS extensions, add some process tags to them and forward them to our Jaeger collector on our monitoring & tracing server.
|
||||
Jaeger agent is being configured as target for traces in oCIS. It then will receive traces from all oCIS services, add some process tags to them and forward them to our Jaeger collector on our monitoring & tracing server.
|
||||
|
||||
For more information and how to deploy it, see [monitoring & tracing client](https://github.com/owncloud-devops/monitoring-tracing-client).
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ To start oCIS server:
|
||||
ocis server
|
||||
{{< / highlight >}}
|
||||
|
||||
The list command prints all running oCIS extensions.
|
||||
The list command prints all running oCIS services.
|
||||
{{< highlight txt >}}
|
||||
ocis list
|
||||
{{< / highlight >}}
|
||||
|
||||
@@ -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 (e.g. a UUID).
|
||||
LDAP Attribute to use as the unique id for groups. This should be a stable globally unique ID like 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 IDs.
|
||||
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.
|
||||
|
||||
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 values are 'base', 'one' and 'sub'.
|
||||
LDAP search scope to use when looking up groups. Supported scopes 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 IDs.
|
||||
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.
|
||||
|
||||
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 values are 'base', 'one' and 'sub'.
|
||||
LDAP search scope to use when looking up users. Supported scopes are 'base', 'one' and 'sub'.
|
||||
|
||||
a| `OCIS_ADMIN_USER_ID`
|
||||
|
||||
@@ -849,7 +849,7 @@ a| [subs=-attributes]
|
||||
++false ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
Whether to verify the server TLS certificates.
|
||||
Disable TLS certificate validation for connections to the IDP. Note that this is not recommended for production environments.
|
||||
|
||||
a| `OCIS_JWT_SECRET`
|
||||
|
||||
@@ -1073,7 +1073,7 @@ a| [subs=-attributes]
|
||||
++ ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
The 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 to access resources from other services.
|
||||
|
||||
a| `OCIS_OIDC_ISSUER`
|
||||
|
||||
@@ -1331,10 +1331,10 @@ a| [subs=-attributes]
|
||||
++string ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
++https://localhost:9200/ ++
|
||||
++https://localhost:9200 ++
|
||||
|
||||
a| [subs=-attributes]
|
||||
Base url to navigate back from the app the containing folder in the file list.
|
||||
The public facing URL of the oCIS frontend.
|
||||
|
||||
a| `REVA_GATEWAY`
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ geekdocFilePath: port-ranges.go
|
||||
geekdocCollapseSection: true
|
||||
---
|
||||
|
||||
oCIS extensions often need a port to expose their services to other services or the outside world.
|
||||
oCIS services often need a port to expose their services to other services or the outside world.
|
||||
As users may have many different extensions running on the same machine, we should track port usage in the oCIS ecosystem. In the best case we ensure that each extension uses a non colliding port range, to make life of users easier.
|
||||
|
||||
This page tracks the knowingly used port ranges.
|
||||
|
||||
@@ -21,13 +21,13 @@ graph TD
|
||||
sdk --- sdks{ocis-settings<br>available?}
|
||||
sdks ---|"yes"| os
|
||||
sdks ---|"no"| defaults[Use set of<br>default values]
|
||||
oa[oCIS extensions<br>e.g. ocis-accounts] ---|"saveSettingsBundle(bundle)"| os
|
||||
oa[oCIS services<br>e.g. ocis-accounts] ---|"saveSettingsBundle(bundle)"| os
|
||||
{{< /mermaid >}}
|
||||
|
||||
The diagram shows how the settings service integrates into oCIS:
|
||||
|
||||
**Settings management:**
|
||||
- oCIS extensions can register *settings bundles* with the ocis-settings service.
|
||||
- oCIS services can register *settings bundles* with the ocis-settings service.
|
||||
|
||||
**Settings usage:**
|
||||
- Extensions can query ocis-settings for *settings values* of a user.
|
||||
|
||||
@@ -9,7 +9,7 @@ geekdocFilePath: bundles.md
|
||||
|
||||
A **Settings Bundle** is a collection of settings, uniquely identified by the key of the
|
||||
extension registering the bundle and the key of the bundle itself. Its purpose is to let
|
||||
oCIS extensions define settings and make them available to users. They are dynamically
|
||||
oCIS services define settings and make them available to users. They are dynamically
|
||||
rendered into forms, available in the frontend.
|
||||
|
||||
As of now we support five different types of settings:
|
||||
|
||||
@@ -37,4 +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`
|
||||
- Can be queried and modified by other oCIS extensions
|
||||
- Can be queried and modified by other oCIS services
|
||||
Reference in new issue
Block a user