Commit Graph

460 Commits

Author SHA1 Message Date
David Christofas 4623b6c8e7 Nats tls (#4781)
* use tls for nats connections

* add config options for nats client tls config

* add nats tls config to CI

* add function to create a certpool

* add option to provide a rootCA to validate the server's TLS certificate

* add option to provide a rootCA to validate the server's TLS certificate

* add option to provide a rootCA to validate the server's TLS certificate

* add option to provide a rootCA to validate the server's TLS certificate

* configure nats clients in reva to use tls
2022-10-12 14:56:47 +02:00
Ralf Haferkamp b5bb6980e2 Fix condition for registry cache
We want caching for all registries except "memory".
2022-10-12 09:28:05 +02:00
Jörn Friedrich Dreyer e9e9947f88 bring back CORS env vars (#4723)
* bring back CORS env vars

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* update CORS descriptions

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* align writing of 'A comma-separated ...'

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix some desc quotes

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* Apply suggestions from code review

Co-authored-by: Martin <github@diemattels.at>

* Apply more suggestions from code review

Co-authored-by: Martin <github@diemattels.at>

* Apply final suggestions from code review

Co-authored-by: Martin <github@diemattels.at>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Co-authored-by: Martin <github@diemattels.at>
2022-10-04 16:56:05 +02:00
David Christofas 3babaf1a4d remove the graph-explorer servier from ocis (#4733) 2022-10-04 15:55:30 +02:00
Ralf Haferkamp c6664cfe61 Fix share/space link in notification mail
Use OCIS_URL as the link base. This change also makes sure that the
top-level OcisURL config value gets a default assigned, even when
OCIS_URL is unset.

Fixes: #4688
2022-09-29 16:26:21 +02:00
Ralf Haferkamp 8f2bf0ed9c Default to in-memory registry in single-binary mode
This avoids various issues of the old "mdns" default. At least for the simple
single process setup (#3134, #4597). When starting the services individually we
still default to "mdns".
2022-09-26 16:25:56 +02:00
Ralf Haferkamp 01650a5023 Use lazy initialization for the default grpc client
This avoids using a public global variable. It allows us to initialize
the default client a bit later (outside of init()). That way we can e.g.
properly initialize the in-memory registry.
2022-09-26 16:25:56 +02:00
Juan Pablo Villafañez 6ee4a084a2 Use go-micro store to cache the roles (#4337)
* Use go-micro store to cache the roles

Add custom in-memory implementation

* replace redis with custom etcd implementation

* adjust table name for the cache in the roles manager

* Fix tests

* Fix sonarcloud issues

* Refactor for sonarcloud

* Allow configuration of cache per service

* Reuse parent context in etcd implementation
2022-09-16 15:42:47 +02:00
Ralf Haferkamp fffd49fc4e Introduce "noop" go-micro broker
This introduces a no op broker for go-micro. It is set as the default
broker for all ocis http services. To avoid starting the default http
broker, which opens an unused random http port.

Fixes: https://github.com/owncloud/ocis/issues/3829
2022-09-14 12:22:23 +02:00
Michael Barz 826d45877c prepare release, bump version 2022-09-13 10:17:43 +02:00
Phil Davis b79de5f356 Merge pull request #4462 from owncloud/fix-typo-2022-08-26
[docs-only] Fix typo 2022-08-26
2022-08-26 18:33:53 +05:45
Phil Davis ef04aebc90 Fix grammar in README 2022-08-26 10:35:47 +05:45
Benedikt Kulmann 590f3bcbaa chore: prepare release bump version 2022-08-25 21:40:08 +02:00
Willy Kloucek 9f2be9f4f9 remove Log prefix from configlog functions 2022-08-22 08:08:18 +02:00
Willy Kloucek e58eaabdeb move config parse error logging into function to ensure new lines and don't parse config for help 2022-08-18 15:27:28 +02:00
Willy Kloucek 6154466bbc rename extensions to services (leftover occurences) 2022-08-17 15:36:52 +02:00
Michael Barz 7c31082ed5 prepare release, bump version 2022-08-11 15:29:00 +02:00
jkoberg f64ea7dc1b make runset a map
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-07-21 16:19:36 +02:00
kobergj db363b6800 Update ocis-pkg/config/config.go
Co-authored-by: Phil Davis <phil@jankaritech.com>
2022-07-21 15:54:56 +02:00
jkoberg 4b8d1acdf4 allow providing list of services not to start
Signed-off-by: jkoberg <jkoberg@owncloud.com>
2022-07-21 15:51:17 +02:00
Michael Barz 4340711b15 prepare release, bump version 2022-07-19 12:35:13 +02:00
Ralf Haferkamp 946f3e8feb Remove unused BindEnv code
We dropped this in favour of envdecode a while ago.
2022-07-14 16:34:25 +02:00
Willy Kloucek 9f0a31140f Merge pull request #4102 from wkloucek/fix-logging-levels
fix logging levels and go micro default log level
2022-07-11 09:31:19 +02:00
Bishop Clark 001b4301ab adjective order
Adjective order nit-correction in prepositions.
2022-07-09 12:48:15 -07:00
Ralf Haferkamp 875ad911db Fixup previous commit to avoid using blank imports 2022-07-07 17:16:28 +02:00
Willy Kloucek ab960dcf97 fix OCIS_RUN_SERVICES 2022-07-07 15:21:29 +02:00
David Christofas ce6f85de61 Merge pull request #4117 from owncloud/ldap-escape-dn
escape DN attribute values
2022-07-07 09:25:23 +02:00
David Christofas 00a27bfff4 fix the null byte replace 2022-07-06 17:25:49 +02:00
David Christofas 2707c2f4b4 escape DN attribute values 2022-07-06 15:16:43 +02:00
Willy Kloucek 33f6ee34fc fix logging levels and go-micro logging format 2022-07-05 13:49:30 +02:00
André Duffeck c2b163afe6 Improve description of the machine auth api key config options 2022-07-05 11:05:33 +02:00
Willy Kloucek 627c79dea1 mask sensitive values in /config proxy debug server endpoint 2022-07-04 14:22:44 +02:00
Ralf Haferkamp 8d11ba02d3 Remove unused OpenID connect middleware
The proxy comes with it's own middleware. This implementation was used
by the graph service at some point but that went away with commit
5070941dc4.
2022-06-30 16:04:34 +02:00
Willy Kloucek 8f3b0c50cd Merge branch 'master' into config-doc-descriptions 2022-06-28 13:03:19 +02:00
Willy Kloucek 6bebfabb65 improve descriptions 2022-06-28 08:19:13 +02:00
Christian Richter 0ebfb89083 readd OCIS_RUN_EXTENSIONS
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-06-27 14:07:03 +02:00
Christian Richter 3b87f75132 further refactoring & add changelog
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-06-27 14:07:02 +02:00
Christian Richter f8f1320501 refactor extensions -> services
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-06-27 14:05:36 +02:00
Willy Kloucek 8e19a83e36 Merge branch 'master' into config-doc-descriptions 2022-06-27 10:56:16 +02:00
Ralf Haferkamp ca5952fe34 Improve LDAP CA cert check
The check was still racy as it could return early if the cert file
exists but was not fully written yet.
2022-06-23 15:38:08 +02:00
Michael Barz 30e924bcdf prepare release, bump version 2022-06-22 12:01:41 +02:00
Willy Kloucek 9bf2661395 add more config doc descriptions 2022-06-21 09:13:38 +02:00
Jörn Friedrich Dreyer 9cc450fec5 update reva to v2.5.2-0.20220616180355-84264e82e451
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-06-16 18:05:10 +00:00
Willy Kloucek 444ffa5e75 add more configuration descriptions 2022-06-14 14:58:27 +02:00
Willy Kloucek 7bc96443f6 unify log and tracing descriptions 2022-06-14 11:48:46 +02:00
Willy Kloucek 61e89ea48f fix tracing collecotr and endpoint descriptions 2022-06-14 10:57:36 +02:00
Willy Kloucek 751b90f332 add more config option documentation 2022-06-13 15:45:24 +02:00
Benedikt Kulmann 5c38d7ce75 Prepare release v2.0.0-beta.3 2022-06-08 14:58:21 +02:00
Willy Kloucek 27b2fbe7e0 fix configuration validation for extensions' server commands 2022-06-02 09:57:45 +02:00
Willy Kloucek 88830425cc allow overwriting a default value by setting an empty envirionment variable 2022-05-30 16:19:54 +02:00